cancel
Showing results for 
Search instead for 
Did you mean: 

Can't program stm32f072 with CubeProgrammer or J-Flash Pro; only J-Flash Light

stefan_luik
Visitor

when trying to program our hex file in the microcontroller with the actual version 2.21 of programmer, I get following error:

failed to download Sector[0].

in hex file the sector 0 starting from address 0x0 is used.

wondering, that this could not be programmed with stm tools.

sw toolhw toolresult
stm programmerst-linkerror
stm programmerj-linkerror
j-flash proj-linkerror
j-flash lightj-linkgood

in my opinion, the definition file for programmer isn't correct.

the sector 0 is missing. why?

shall it be corrected?

thanks for fast help.

Stefan

2 REPLIES 2
TDK
Super User

> in hex file the sector 0 starting from address 0x0 is used.

Address 0 is not always a valid flash address. Your hex file should write to 0x08000000. Perhaps your linker file has mistakes.

If you feel a post has answered your question, please click "Accept as Solution".
stefan_luik
Visitor

thanks for the answer. what I now better understand:

- the memory at address 0 is mapped from sram, system memory or main flash memory.

- we have set nBOOT1 to one. so we use system memory to boot-up from.

- to flash, we want to reprogram the system memory area to write our own bootloader and startup

- there is no "normal" way to program this system memory area.

- so now I think the system area shall be added into the definition file?

- or does stm don't want to let user write into this area?

Thanks for responding

Stefan