cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to correctly debug my board

Sandro Sartoni
Associate II
Posted on July 14, 2017 at 21:55

Hi,

I've uploaded STM32CubeMX to 4.22.0 version and the firmware for F1 family to 1.6.0 version. I used Cube software to update the HAL libraries in my project and since then I'm unable to correctly debug my board.

The error reported is:

Error: address + size wrapped(0xffffffff, 0x00000004)

Error: address + size wrapped(0xffffffff, 0x00000002)

I checked the .elf file size and it's 1.129.552  bytes. What can I do?

#stm32f1-debug-problem
4 REPLIES 4
Posted on July 14, 2017 at 23:35

The size of the .ELF isn't a useful metric, it contains a lot of crap that doesn't go into the part. Review the .MAP file.

Consider defining your compilation tools, no idea of the context for this message.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on July 14, 2017 at 23:59

Output.map's size is 432.068  bytes.

You can see my tool chain editor in the pic below:0690X00000607TKQAY.png

Posted on July 15, 2017 at 00:22

Not the size the content! 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on July 15, 2017 at 11:26

While troubleshooting online I saw other people had the same issue, and this is because the binary file size is greater than 10.164 bytes; mine is 15.132 bytes. I think this is due to the new firmware version so I'll just stick to the older version if nothing can be done to overcome this issue, even if I'd prefer to work with the newer tools.

Regarding the .map file, there're 5217 lines and I'm still a newbie so I don't know what to check exactly.

Other infos I forgot to mention: I work with SWSTM32 and my debugger is ST-Link/V2 isol.