cancel
Showing results for 
Search instead for 
Did you mean: 

How do i boot from one of two locations on the STM32L072RBT6? I

HElHa
Associate

have a default location X. If want to update the code, i download it to location Y and expect the STM32 to start at location Y after reboot. However, the routine keeps rebooting from X. what am i missing?

15 REPLIES 15
JMani.14
Associate II

I have hex file that the filesize is 40kByte. I am not clear about what the last line is.

Why is this such an uphill ski?

:020000040800F2  << SEGMENT ADDRESS INFO
:1000000058330020D5000008C1410008993E00087F  << BODY DATA
:1000100000000000000000000000000000000000E0
:100020000000000000000000000000000F47000872
:10003000000000000000000065430008295E000881
:10004000E7000008E7000008BF450008E7000008D7
...
:1089F0000000000000000000000000000000000077
:108A00000000000000000000000000000000000066
:108A10000000000000000000000000000000000056
:108A20000000000000000000000000000000000046  << END OF BODY DATA
:04000005080000C12E  << YOU COULD LOSE THIS 05 RECORD
:00000001FF  << THIS 01 RECORD LINE AT THE END OF THE FILE

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
JMani.14
Associate II

Which tool should I use? I used winhex for merging 3 hex files - bootloader, app1, app2.

Winhex does not display data as you showed.

JMani.14
Associate II

Which tool should I use? I used winhex for merging 3 hex files - bootloader, app1, app2.

Winhex does not display data as you showed.

JMani.14
Associate II

This is my hex file which is opened in STM32CubeProgrammer.

0690X0000088sX2QAI.png

Could you please let me know where the last line is?

Thank you.

They are in ASCII, use notepad or some text editor

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..