Page 1 of 1

Flash addresses?

Posted: Thu Jul 18, 2019 9:30 pm
by Ampchamp
Hi all,

in the meantime I've ordered a ST-Link/V2-Programmer and an Olimex STM32-H103 Board and installed the "ST-Link Utility" tool.
Now, I wanted to program the application and the bootloader.
Therefore, I downloaded for both the *.bin file as well as the *.hex file.

But what was surprising to me: All files, when loaded into the "ST-Link Utility" tool, have different starting addresses:
The "stm32_sine.bin" file comes up with starting address 0x0000 0000, the "stm32_sine.hex" with 0x0800 1000.
Also the "stm32_loader.bin" file comes up with starting address 0x0000 0000, the "stm32_sine.hex" however with 0x0800 0000.

From my understanding, the bootloader should start at 0x0000 0000 and the application at 0x0800 0000.
Or am I completely wrong?
What is the reason for the different addresses?

Could someone help and tell me the correct programming addresses for the bootloader and the application?

Unfortunately, I erased the original Olimex-Programming (bootloader?) before saving it to disk. :?
Does this cause any problem at all?

Thanks to all,
Fabian.

Re: Flash addresses?

Posted: Fri Jul 19, 2019 2:03 am
by dima
boot loader starts @ 0x08000000
flash starts @ 0x08001000

.bin do not have address info coded .hex do.

Re: Flash addresses?

Posted: Fri Jul 19, 2019 9:50 am
by Ampchamp
Thanks dima for the information.
Now it is clear, why both *.bin files come up with address 0x0000 0000.

As I wrote, I unfortunately erased the initial programming of the Olimex, does this may cause any problems or side-effects?
Is the initial programming or parts of it needed for the correct functionality of the inverter?

Thanks,
Fabian.

Re: Flash addresses?

Posted: Fri Jul 19, 2019 11:23 am
by johu
You can use completely blank device, no initial stuff needed.

Re: Flash addresses?

Posted: Fri Jul 19, 2019 3:20 pm
by dima
Hook up your ST-LinkV2 (instructions here) Flash boot-loader first and then firmware.

stlinkv2.png
stlinkv2.png (7.27 KiB) Viewed 1536 times