This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

usart base address is overwritten

I've one problem with buffer overflow - I don't know which buffer it could be.

I always get a error if I want to write something to the usart. The pointer to the usart base address is not overwritten but the base address of the usart is overwritten.

Everything (with the usart) works fine, until I added a new c-file to my project with a struct array, a few defines and so on... the error occured bevor any function of the new file will be executed.

My stack size is very big 0x00004000 and when I take a look into the map-file I can see a size for the stack 0x00001508 (in the RAM).

I've no IRQs or FIQs installed, so that their size of code is not interested.

If I debug the program I could see the place of all variables and function in the memory (everything seems to be fine to me). And the end size listend in the map file is not so big that the flash or ram would be too small for the code.

Could there be another possibility for overwritten the usart base address?

Bernd

0