0
\$\begingroup\$

I managed to write a script for flashing hex file into STM microcontroller.

"C:\Program Files\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\ST-Link_CLI.exe" -c UR FREQ=80 -ME -P "C:\Usr\someHex.hex" 0x08000000 -V -TVolt

Although it is showing that the process has completed and flashed the program. I can not see anything when I manually connect to the STM32 ST-Link Utility.

1

Although the command line is showing that the HEX file has flashed properly but STM32 ST-Link shows that the script did not flash the hex file properly.

2

Can anyone recommend me the solution?

asked Jun 22, 2022 at 13:57
\$\endgroup\$
1
  • 2
    \$\begingroup\$ What does your hex file contain? How big it is? Why the address reported by programmer is 0x08001000, does the hex start at that address or 0x08000000? \$\endgroup\$ Commented Jun 22, 2022 at 14:59

1 Answer 1

0
\$\begingroup\$

I would say that your program starts at 0x08001000 probably because of a bootloader so if you want to see what you wrote you have to start reading from that point because you are showing a few bytes starting at 0x08000000 and they have not been written.

answered Jun 22, 2022 at 15:27
\$\endgroup\$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.