cancel
Showing results for 
Search instead for 
Did you mean: 

What does the data at the end of the inserted code mean when downloading the code?

Ekim.1
Associate II

Hello, everyone.

I downloaded the code to STM32H753 and then used STM32 Community to look at the data on the flash memory and suddenly I got one question.

0693W000000Tj0sQAC.png

I downloaded my code on flash memory bank 2 sector 0 (address 0x08100000) and found that the data value was written on the area that is supposed to be the last part of the code I downloaded.

The constant area was filled with 0xF7FFBFFE before the data appeared

This was also found in the source code .bin file I downloaded

0693W000000Tj0xQAC.png

What do these data mean?

1 ACCEPTED SOLUTION

Accepted Solutions

Your project, check the .MAP file

Beyond the CODE/TEXT section is usually the BSS/STATIC section which copies into RAM every time you start. This would be initialized data in global variables, arrays, bitmaps, etc.

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

View solution in original post

3 REPLIES 3

Your project, check the .MAP file

Beyond the CODE/TEXT section is usually the BSS/STATIC section which copies into RAM every time you start. This would be initialized data in global variables, arrays, bitmaps, etc.

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

Thanks for your help!

If you don't mind, may I ask you one more question?

I didn’t download it when I downloaded it with IAR, so I checked it out, and there were cases where data was not written down in this area. Can you tell why this is happening?

No idea, STM32 Cube Programmer is going to write whatever is in the .BIN file.

The .BIN is 0xD4F8 bytes in size, neither screen shot seems to exceed that, so not exactly sure what behaviour you're flagging here.

Review how you're generating the .BIN file if the content is not what you expect.

The static area might be compressed, not sure about IAR, but KEIL does, and the startup code unpacks it.

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