BL0061 USB drivers

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

User avatar
fotios
Posts: 398
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 80 times
Been thanked: 97 times
Contact:

BL0061 USB drivers

Postby fotios » Mon May 07, 2018 6:37 pm

Hello

I received the new E-blocks2 ST-ARM programming board BL0061 but cannot find its USB driver.

The mLoader (v 4.0.0.1) does not recognize the BL0061 as well.

Could you help me, please?

Thanks
Best Regards FOTIS ANAGNOSTOU

User avatar
Benj
Matrix Staff
Posts: 14219
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4361 times
Been thanked: 4096 times
Contact:

Re: BL0061 USB drivers

Postby Benj » Tue May 08, 2018 9:53 am

Hello,

Thanks for letting us know. I have now added the latest USB drivers to this page.

http://www.matrixtsl.com/eblocks/resources/

Let us know how you get on.

User avatar
fotios
Posts: 398
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 80 times
Been thanked: 97 times
Contact:

Re: BL0061 USB drivers

Postby fotios » Wed May 09, 2018 6:37 am

Hi Ben

Thank you for the reply

I purchased the bundle BL0596 which except the BL0061, also includes the E-blocks2 BL0114 Combo board with multiple LEDs, Switches, LCD etc.

I did manually the installation of BL0061 USB drivers, using the device manager of windows with success.
However, I don't know if the installed driver is the 64bit or the 32bit. I hope it is the amd64, as the OS of my PC is Win7 x64.
In Devices Manager, the installed driver is referred to:
Custom USB Devices
BL0061 Ghost2 STM32 Programmer
Supplier Matrix Technology Solutions Ltd
Date 6/1/2015
Version 1.0.0.5

The mLoader recognizes the BL0061 board, but when I try the autodetection of installed CHIP it reports "Chip = BL0061(6241).

In FC7 (v 7.3.0.5 / License version Proffesional / PIC / ARM) the board is listed on "Project Options / Choose a Target" in both: "Target / ARM / Misc", OR "Target / Free".
You could select BL0061 from either ARM or Free.
In FC7 main window, the built on micro STM32F401RC appears correctly.

Now the problems:

a) Ghost is not activated in FC7.

b) I tried to compile an elementary code and got several error messages from the compiler:

Code: Select all

c:\progra~2\flowco~1\compil~1\starm\stm32cubef4\drivers\cmsis\device\st\stm32f4xx\include\stm32f4xx.h:186:3: error: #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
  #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"

Code: Select all

c:\progra~2\flowco~1\compil~1\starm\stm32cubef4\drivers\stm32f4xx_hal_driver\inc\stm32f4xx_hal_rcc_ex.h:6240:45: error: unknown type name 'RCC_PeriphCLKInitTypeDef'

Code: Select all

c:\progra~2\flowco~1\compil~1\starm\stm32cubef4\drivers\stm32f4xx_hal_driver\inc\stm32f4xx_hal_gpio.h:243:21: error: unknown type name 'GPIO_TypeDef'

Code: Select all

c:\progra~2\flowco~1\compil~1\starm\stm32cubef4\drivers\stm32f4xx_hal_driver\inc\stm32f4xx_hal_dma.h:159:3: error: unknown type name 'DMA_Stream_TypeDef'


The error messages are too many and impossible to include all.

From a first view, it looks like that all #defines are missing.

If you know a way to post you the whole compiler report, please let me know.

Thanks

Fotis
Best Regards FOTIS ANAGNOSTOU

User avatar
LeighM
Matrix Staff
Posts: 1870
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 438 times
Been thanked: 625 times
Contact:

Re: BL0061 USB drivers

Postby LeighM » Wed May 09, 2018 8:42 am

Hi Fotis,

Could you apply the update patches from here ...
viewtopic.php?f=63&t=19743
then see if you get any further errors.

The error report is saved to your project directory with the project name and the suffix .msg.txt

Thanks,
Leigh

User avatar
Benj
Matrix Staff
Posts: 14219
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4361 times
Been thanked: 4096 times
Contact:

Re: BL0061 USB drivers

Postby Benj » Wed May 09, 2018 10:02 am

Hello,

To reprogram the BL0061 board you will need the latest version of mLoader (4.0) which can be downloaded from here.
http://www.matrixtsl.com/resources/getr ... hp?id=1113

You can add this to your Flowcode installation if you wish by overwriting the files in the "Flowcode 7/tools/mLoader" directory.

The BL0061 definition file is in the update link Leigh posted.

I'm afraid that Flowcode 7.3 only supports ICD and ICT on the following boards: BL0011, BL0055, BL0080. More might be included but the BL0061 was a late development and so was not included. We might be able to release a minor update executable to add this but this could take a couple of weeks.

User avatar
fotios
Posts: 398
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 80 times
Been thanked: 97 times
Contact:

Re: BL0061 USB drivers

Postby fotios » Wed May 09, 2018 10:59 am

Hi everyone

Thanks for the link.

I installed the patch but still receive errors from the compiler. However, many of the initial errors have been removed. The error report text from the compiler is the half now :D

Here is the latest compiler text file
Fotis_0.msg.txt
(49.16 KiB) Downloaded 59 times


As for the mLoader, the installed version is the latest v 4.0.0.1.
It still autodetects CHIP as BL0061.

Regarding the Ghost ICD and ICT there is no problem. I could wait for the release.

Thanks a lot
These users thanked the author fotios for the post:
Benj (Wed May 09, 2018 12:47 pm)
Rating: 5.26%
 
Best Regards FOTIS ANAGNOSTOU

User avatar
LeighM
Matrix Staff
Posts: 1870
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 438 times
Been thanked: 625 times
Contact:

Re: BL0061 USB drivers

Postby LeighM » Wed May 09, 2018 11:08 am

Hi,
Please put the latest attached files into your Flowcode \CAL\STARM directory, this should fix the compiler issues
Attachments
STARM_CAL_IO.h
(5.41 KiB) Downloaded 50 times
STARM_CAL_IO.c
(22.06 KiB) Downloaded 48 times

User avatar
fotios
Posts: 398
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 80 times
Been thanked: 97 times
Contact:

Re: BL0061 USB drivers

Postby fotios » Thu May 10, 2018 7:45 am

Hi everyone

I followed your suggestions and now the compiler does not show error messages, and that the file has been sent to target.

See please:
Fotis_0.msg.txt
(7.37 KiB) Downloaded 46 times


However, the code actually is not compiled in the onboard micro STM32F401. During compiling, i can see the onboard LED USB to flicker.
But the code is not compiled.

It should be noted that with the bundle BL0596 (BL0061 and BL0114) i also purchased the new E-blocks2 BL0080 PIC multiprogrammer.
I tried the BL0114 combo board with the BL0080 and can confirm you that both are working flawlessly.
BL0114 is OK, but with the BL0061 doesn't work.

I tried all available configurations of STM32F401 oscillator without luck.

Please check the simple FCF that i created to test the micro:
Fotis_0.fcfx
(10.54 KiB) Downloaded 50 times


Thanks for any help
Best Regards FOTIS ANAGNOSTOU

User avatar
LeighM
Matrix Staff
Posts: 1870
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 438 times
Been thanked: 625 times
Contact:

Re: BL0061 USB drivers

Postby LeighM » Thu May 10, 2018 8:56 am

Hi,
I have not yet tested this on a target board yet,
but I presume you don't see the LED flash?
could this be due to missing delay after setting B0 to 0?

User avatar
fotios
Posts: 398
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 80 times
Been thanked: 97 times
Contact:

Re: BL0061 USB drivers

Postby fotios » Thu May 10, 2018 10:22 am

LeighM wrote:Hi,
I have not yet tested this on a target board yet,
but I presume you don't see the LED flash?
could this be due to missing delay after setting B0 to 0?

Hi,
No, LEDs doesn't flash, neither turned on.
I have connected the BL0114 either in ports A and B, or B and C.
After compiling, all LEDs are steady off.
There is not any activity of BL0114 is what i meant.

Thanks
Best Regards FOTIS ANAGNOSTOU

User avatar
Benj
Matrix Staff
Posts: 14219
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4361 times
Been thanked: 4096 times
Contact:

Re: BL0061 USB drivers

Postby Benj » Fri May 11, 2018 12:16 pm

Hello,

Here is a slightly modified CAL file you can try which hopefully should solve the problem. We were calling the none DDR version of the I/O functions before which mean the pins were remaining in input mode.

STARM_CAL_IO.h
(5.42 KiB) Downloaded 35 times

User avatar
fotios
Posts: 398
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 80 times
Been thanked: 97 times
Contact:

Re: BL0061 USB drivers

Postby fotios » Fri May 11, 2018 6:54 pm

Hi Ben
Thanks for the file but the problem remains the same.
Best Regards FOTIS ANAGNOSTOU

User avatar
Benj
Matrix Staff
Posts: 14219
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4361 times
Been thanked: 4096 times
Contact:

Re: BL0061 USB drivers

Postby Benj » Mon May 14, 2018 11:01 am

Aha the default configs in the v7 FCD are wrong.

Here are what they should be.

BL0061Config.jpg
BL0061Config.jpg (116.01 KiB) Viewed 3209 times


Here is a new FCD with the config defaults fixed and also enabling the PortD clock which was previously missing.

BL0061.fcdx
(49.8 KiB) Downloaded 33 times


Let us know how you get on.
These users thanked the author Benj for the post:
fotios (Tue May 15, 2018 9:09 am)
Rating: 5.26%
 

User avatar
fotios
Posts: 398
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 80 times
Been thanked: 97 times
Contact:

Re: BL0061 USB drivers

Postby fotios » Mon May 14, 2018 8:53 pm

Hi Ben
Thanks for the new config table.
It looks that is correct.
However the BL0114 board is working now... partially :D
Only PortA.0 and PortB.0 LEDs are working as in the program loop.
I tried to output "1" in entire PortA and PortB, or PortA.1 and PortB.1, or PortA.7 and PortB.7 without success.
The same applies for PortC.
It looks like that all rest pins, except A.0, B.0, C0 are not enabled.
Here the new fcf:
Fotis_0.fcfx
(10.54 KiB) Downloaded 38 times


P.S.
Unfortunately, I haven't previous experience with STM32 micros to give a little help. However, I did a reading of the project C file and looks that a lot of defines are missing. There are not defines for other components than LEDs. I will try to take a look at the STM32F401 datasheet.
Best Regards FOTIS ANAGNOSTOU

User avatar
Benj
Matrix Staff
Posts: 14219
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4361 times
Been thanked: 4096 times
Contact:

Re: BL0061 USB drivers

Postby Benj » Tue May 15, 2018 10:03 am

Hello,

If your outputting a value to an 8-bit port then you need to send the value 255 to set all the port pins. Sending the value 1 will simply output a high to pin 0 and a low to the rest of the pins.

You can output a 1 or 0 to higher pins using the output icon in single pin mode.

Here's another test you can try, should output high to PortA and PortC and count up on PortB.

Fotis_0-1.fcfx
(10.71 KiB) Downloaded 30 times

User avatar
fotios
Posts: 398
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 80 times
Been thanked: 97 times
Contact:

Re: BL0061 USB drivers

Postby fotios » Tue May 15, 2018 12:03 pm

Hi Ben
Sorry, my mistake. I forgot it. :oops:
I can confirm that all LEDs are working just fine and as in the code.
That resolved.
Just now i tried the LCD display of BL0114 without success.
I will give again a try after a couple of hours and will let you know.
Thanks
These users thanked the author fotios for the post:
Benj (Wed May 16, 2018 11:19 am)
Rating: 5.26%
 
Best Regards FOTIS ANAGNOSTOU

User avatar
fotios
Posts: 398
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 80 times
Been thanked: 97 times
Contact:

Re: BL0061 USB drivers

Postby fotios » Wed May 16, 2018 11:00 am

Benj wrote:Hello,

If your outputting a value to an 8-bit port then you need to send the value 255 to set all the port pins. Sending the value 1 will simply output a high to pin 0 and a low to the rest of the pins.

You can output a 1 or 0 to higher pins using the output icon in single pin mode.

Here's another test you can try, should output high to PortA and PortC and count up on PortB.

Hi Ben
Thanks a lot for the help.
Unfortunately, I had no luck with the LCD display of BL0114.
As i wrote in the other today post, the LCD is working with the BL0080 and the stocked P16F18877
Thanks again
Best Regards FOTIS ANAGNOSTOU

User avatar
Benj
Matrix Staff
Posts: 14219
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4361 times
Been thanked: 4096 times
Contact:

Re: BL0061 USB drivers

Postby Benj » Wed May 16, 2018 11:21 am

Hello,

Thanks for letting us know, glad the I/O is now working correctly. Please can you send me your BL0061 program for the BL0114 driving the LCD which isn't working and I'll see if I can find the cause of the issue for you.
These users thanked the author Benj for the post:
fotios (Wed May 16, 2018 5:58 pm)
Rating: 5.26%
 

User avatar
fotios
Posts: 398
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 80 times
Been thanked: 97 times
Contact:

Re: BL0061 USB drivers

Postby fotios » Wed May 16, 2018 5:54 pm

Hi Ben
Thanks a lot for the help
Here the simple fcf code for the LCD
Fotis_0.fcfx
(10.54 KiB) Downloaded 62 times
Best Regards FOTIS ANAGNOSTOU

User avatar
Benj
Matrix Staff
Posts: 14219
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4361 times
Been thanked: 4096 times
Contact:

Re: BL0061 USB drivers

Postby Benj » Wed May 16, 2018 7:28 pm

Hi Fotios,

Is this the right program? no LCD there? Looks like the IO program you sent last time.

User avatar
fotios
Posts: 398
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 80 times
Been thanked: 97 times
Contact:

Re: BL0061 USB drivers

Postby fotios » Wed May 16, 2018 7:58 pm

Oh sorry :oops:
Here the right fcf
Fotis_0.fcfx
(10.16 KiB) Downloaded 73 times
Best Regards FOTIS ANAGNOSTOU

User avatar
fotios
Posts: 398
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 80 times
Been thanked: 97 times
Contact:

Re: BL0061 USB drivers

Postby fotios » Fri May 25, 2018 7:17 pm

Hi Ben
Any good news for LCD?
I'm going to develop a project that will also include 2-3 PWM channels, 2 ADC channels, SPI or I2C bus.
I had in mind to give a try in the Cortex M4 micro STM32F303RE which is supported by FC7.
Thanks for any help
Best Regards FOTIS ANAGNOSTOU

User avatar
fotios
Posts: 398
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 80 times
Been thanked: 97 times
Contact:

Re: BL0061 USB drivers

Postby fotios » Tue May 29, 2018 9:43 am

The preinstalled STM32F401RC micro on BL0061, can also be programmed using the ST-LINK/V2 and the ST Visual Programmer application.
You have to solder a 5-pin header on BL0061 and to assemble a 20p flat ribbon cable, terminated at a 20p IDC socket on one end (ST-LINK side) and a 5-pin housing on the other end.
The interconnections are shown in this picture (Updated. I forgot to include the RST connection in yesterday post)
STLINK.png
STLINK.png (9.41 KiB) Viewed 2852 times

You could still use the Flow Code to build projects and to compile in hex format. Later, with the ST Visual Programmer, you can open the hex file and flash the code in the STM32F401 with the ST-LINK. It is tested and working.
Pictures attached:

IMG_20180529_111839.jpg
IMG_20180529_111839.jpg (126.17 KiB) Viewed 2879 times


IMG_20180529_111942.jpg
IMG_20180529_111942.jpg (91.7 KiB) Viewed 2879 times
These users thanked the author fotios for the post:
Benj (Tue May 29, 2018 10:02 am)
Rating: 5.26%
 
Best Regards FOTIS ANAGNOSTOU

User avatar
Benj
Matrix Staff
Posts: 14219
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4361 times
Been thanked: 4096 times
Contact:

Re: BL0061 USB drivers

Postby Benj » Thu May 31, 2018 4:31 pm

Hello,

I have now found and fixed the LCD problem with the BL0061, there was a glitch on the Enable pin which was forcing the display to get out of sync. I'll push the fix to the Flowcode 8 update system in the next half hour or so. edit - done.

Here is the fixed component for v7.
LCD.fcpx
(7.57 KiB) Downloaded 35 times

User avatar
fotios
Posts: 398
Joined: Mon Feb 08, 2010 10:17 am
Location: Greece
Has thanked: 80 times
Been thanked: 97 times
Contact:

Re: BL0061 USB drivers

Postby fotios » Fri Jun 01, 2018 7:25 am

Hi Ben
Unfortunately, the 4X20 LCD doesn't work. It remains blank.
Did you use the BL0114 combo like me?
I did copy/paste of your file and the old LCD.fcpx in FC7 has been replaced.
Now I also have a problem with the BL0080 programmer which worked just fine with the P16F18877 so far. The display of BL0114 prints, but wrong.
I will upload the fcf in the other thread.
Here my simple fcf for ARM:
Fotis_0.fcfx
(7.82 KiB) Downloaded 38 times
Best Regards FOTIS ANAGNOSTOU