cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H743ZITx_FLASH.ld || STM32CubeMX destroy project after rebuild/ Generate Code?!

Rene_HST
Associate

Hey everybody. 

i have the following problem, after updating my System Workbench for STM32 and my STM32CubeMX I got the same error every time (see below). When I create a project with Cube, the first time works well. But if I want to add some options like SPI and generate a second time, CubeMx deletes all the code in STM32H743ZITx_FLASH.ld. Which leads to an error after build and run like this:

** Programming Finished **

** Verify Started **

Error: checksum mismatch - attempting binary compare

diff 0 address 0x00000000. Was 0x2d instead of 0xf8

diff 1 address 0x00000001. Was 0xa8 instead of 0xb5

diff 2 address 0x00000002. Was 0x03 instead of 0x00

diff 3 address 0x00000003. Was 0x67 instead of 0xbf

diff 4 address 0x00000004. Was 0xc9 instead of 0xf8

diff 5 address 0x00000005. Was 0xb8 instead of 0xb5

diff 6 address 0x00000006. Was 0x64 instead of 0x00

diff 7 address 0x00000007. Was 0x19 instead of 0xbf

No more differences found.

** Verify Failed **

shutdown command invoked

It is of course possible for me to avoid this error by manually adding the code again, but this can't be intentional ?! 

Is this a bug from the update ?

My program versions are:

SW4STM32: Neon.3 Release (4.6.3)

STM32CubeMX: 5.1.0 and firmware: 1.3.2

Hardware: NUCLEO-H743ZI Board

Thanks for help

regards 

Rene

3 REPLIES 3
Johny
Associate

I hope this one gets answered, I suffer from the very same problem on NUCLEO-F746ZG and DISCO-F746G. The interesting thing that after build I can see the following output in system workbench:

Finished building target: test.elf

make --no-print-directory post-build

Generating hex and Printing size information:

arm-none-eabi-objcopy -O ihex "test.elf" "test.hex"

arm-none-eabi-size "test.elf"

  text   data   bss   dec   hex filename

   8    0    0    8    8 test.elf

As I see the entire size of the elf is 8 bytes. And this always occures after i modify something in cubeMX. Even if I change it back it can't be fixed.

CubeMX: 5.1.0

I get the same problem. Hope somebody could help. My temporary solution: delete STM32F091RCTx_FLASH.ld before regenerate the source from cubemx.

karkam
Associate

Had the same problem, temporary solution of @Jean-Sébastien Castonguay​ works fine...