cpu: at91sam7x256
I have in my project some global objects, they are by default placed at address 0x200000. My program seems to work properly but occasionally beginning of RAM is filled with zeros by Keil library function at label: __decompress1 in deassembly window. It makes some my variables and pointers are useles and program stops responding. The worst is, that pointers are defined as const and they are not expected to change.
Any idea how to solve this error?
I haven't checked the datasheet for your processor - have you verified if it is safe/allowed to use the same address for SPI receive and SPI transmit?
I dont remember but when I use SPI without DMA it changes nothing ;)
If you get the same problem with or without DMA, then maybe you should point out that the function was just an example, and you got the same problem in other functions and with or without DMA transfers.
The goal is to try to find the smallest possible program that has the problem, just so that you can eliminate as much code as possible.