STM32 nucleo boards

For general Flowcode discussion that does not belong in the other sections.
Post Reply
davidkilshaw2
Posts: 7
http://meble-kuchenne.info.pl
Joined: Fri Oct 01, 2021 4:35 pm
Has thanked: 1 time

STM32 nucleo boards

Post by davidkilshaw2 »

Ive been working with pic micros for a long time and have been asked recently to compile some code onto and STM 32 so have used the Nucleo F030r8 board,

All i am trying to do at the moment is flash an led. Once thats working then move onto other things

I can compile and create hex but i cannot flash to Nucleo board. It claims Nucleo board is not connected.

Do i have to do anything to the setup for it wo work wioth a nucleo board via USB cable ?

Thanks

LeighM
Valued Contributor
Posts: 394
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 69 times
Been thanked: 208 times

Re: STM32 nucleo boards

Post by LeighM »

When you plug the Nucleo board into the PC USB port it should appear as a virtual drive.
Does this happen, and what name does it give itself?
If you have chosen the Nucleo board as the target, rather than the chip, Flowcode should detect this and copy the project.bin file to the drive.
This can also be done manually.

davidkilshaw2
Posts: 7
Joined: Fri Oct 01, 2021 4:35 pm
Has thanked: 1 time

Re: STM32 nucleo boards

Post by davidkilshaw2 »

it does detect a drive

NODE_F030RD (D:)

can you explain how to do it manually please?

davidkilshaw2
Posts: 7
Joined: Fri Oct 01, 2021 4:35 pm
Has thanked: 1 time

Re: STM32 nucleo boards

Post by davidkilshaw2 »

OK ive managed to copy the BIN accross manually and it programs correctly.

So how do i point the program to write the file to the drive ?

I have selected the Nucleo version of the chip

text from window as programming

"
4048 4 1644 5696 1640 ..\flashled.elf
Compilation successful
Using FCD settings for linker
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode v9\data\tools\DoNothing\DoNothing.exe
Using FCD settings for programmer
Launching the programmer...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ARM\batch\driveprog.bat "C:\Users\dkilshaw\Documents\" "flashled" NUCLEO "C:\Program Files (x86)\Flowcode\Common\Compilers\starm\"
C:\Users\dkilshaw\Documents>REM CRC: 1CECFE3DB3A1BD5169AEA98AD43ADE6371C8447FBA07C8BF0BD6E7AE19E8F6A496F6C05065F4991793C5C83FFE45655705C640EF477B79E0C7881D2E5EEC9BD6A32B46A47AAB2D21848A68B9581D31BC91C05B2A7E3ADB3C4D00059D795899823A891A54B4B493452EB1C11B032DEB4F48964A4946E9E967AD67165EF1B2CA2741E321E235B5D82AEDD0653E7416DD247686A1F15CB23683367137F193807202A2A2149CFFE6928BA806A833F8E81DD4FFAC23CD7F1BB6B52C3050DA273BE4EE0738BAFEFCB75BE6BD724F97D5387A2A285F9441D42E940F14E084950FA5CC8F5270B55B262AFD36
C:\Users\dkilshaw\Documents>REM REVISION: 3.0
C:\Users\dkilshaw\Documents>REM GUID: EE9EDEE2-BCED-4931-9EF5-83E73A7868BD
C:\Users\dkilshaw\Documents>REM DATE: 09\03\2021
C:\Users\dkilshaw\Documents>REM DIR: FCD\ARM\batch\driveprog.bat
NUCLEO board is not connected.

LeighM
Valued Contributor
Posts: 394
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 69 times
Been thanked: 208 times

Re: STM32 nucleo boards

Post by LeighM »

Hi,

Could you please drop the attached file into ...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ARM
Then re-start Flowcode.
That should fix the problem until we get this into the auto update system.
Attachments
32F030Nucleo64.fcdx
(29.13 KiB) Downloaded 92 times

davidkilshaw2
Posts: 7
Joined: Fri Oct 01, 2021 4:35 pm
Has thanked: 1 time

Re: STM32 nucleo boards

Post by davidkilshaw2 »

Thankyou.

That worked

Post Reply