Flash addresses?

Post Reply
Ampchamp
Posts: 10
Joined: Tue Jan 15, 2019 1:53 pm
Location: Karlsruhe, Germany

Flash addresses?

Post 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.
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: Flash addresses?

Post by dima »

boot loader starts @ 0x08000000
flash starts @ 0x08001000

.bin do not have address info coded .hex do.
Ampchamp
Posts: 10
Joined: Tue Jan 15, 2019 1:53 pm
Location: Karlsruhe, Germany

Re: Flash addresses?

Post 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.
User avatar
johu
Site Admin
Posts: 5824
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 162 times
Been thanked: 1044 times
Contact:

Re: Flash addresses?

Post by johu »

You can use completely blank device, no initial stuff needed.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: Flash addresses?

Post by dima »

Hook up your ST-LinkV2 (instructions here) Flash boot-loader first and then firmware.

stlinkv2.png
stlinkv2.png (7.27 KiB) Viewed 1037 times
Post Reply