Downloaded code does not seem to run.
Hello Everyone,
I am running CubeIDE on Windows 10. It installed easily and from the little that I know it runs ok.
I have the official ST-Link interface for OTHER THAN the Nucleo board and I have upgraded the firmware in there to current release.
I have been working on programming an embedded board for 3 weeks now, with only a little bit of success.
=== NUCLEO
I have Nucleo-stm32H743 board.
I wrote a simple blinky-light program.
It compiles (Release) with no errors or warnings.
I download with CubeIDE. CubeIDE says it downloaded ok.
If I press Reset button on Nucleo board, LED does not blink.
If I power down the Nucleo board, then back on, LED does not blink.
I repeated the above download by first connecting Boot0 to 3.3vdc.
Then when programming complete, remove the 3.3vdc jumper. Note on Nucleo board Boot0 is tied low with a pernament 10k ohm resistor.
LED does not blink.
I quit the CubeIDE program and ran CubeProgrammer.
As above, I get the result that the file (.elf) was downloaded ok.
Reset (button) or power down does not cause LED to blink.
I connect a FDTI USB-to-Serial to my computer and the available USART pins on the Nucleo board.
I used CubeProgrammer in Serial mode and downloaded the file (.elf), and it reported download successful.
Reset or power down does not cause the LED to blink.
=== BluePill
I wrote and successfully compiled a (Release) blinky program.
I wired a BluePill to the STLink interface.
Using CubeIDE I programmed BluePill with Boot0 tied High.
CubeIDE reports download was successful.
Then I made Boot0 Low.
Reset (button) or power down does not cause LED to blink.
I quit the CubeIDE program and ran CubeProgrammer.
As above, using the STLink interface, I get the result that the file (.elf) was downloaded ok.
Reset (button) or power down and THE LED NOW BLINKS.
=== Question
Rather than bother everyone with 20 questions about the above failures to run, I will just take a baby step and ask 1 question.
Later I might post another new question.
In the mind-numbing mountain of docs (User Manuals, Reference Manuals, App Notes, etc.) that I have read in the past 3 weeks, I did not find any "instruction" to tie Boot0 High when programming, FOR THE NUCLEO board.
Why?
All other boards, like BluePill, BlackPill, Olimex F407 board, all make it clear that the Boot0 must be High to program and Low to run.
That's my question.
Not sure where to go from here but maybe the answer to my question will help.
Thank you.
XST