Need help from the collective group. I've been working on this problem for over a week now, and the solution evades me.
SAMS70Q21 processor, 300/150MHz, an FRAM SPI part on SPI0. Performing a memory test on the FRAM part (Cypress FM25L16B part) is successful for all 2048 byte locations while executing under the debugger in AS7. But if I run the code in real time, the memory test fails immediately. It also will fail if running under the debugger, and I step over a function that reads or writes the data buffer to or from the SPI part. The chip select line after that stops working, but if I step back thru the code under the debugger, then it starts to work again. The memory test is a do .. while() loop, so I can break at the bottom of the loop and begin to single step again. The other thing to note here is, the code I'm using is imported from a AVR32 project that works all the time. So It is not may code failing, especially in light of the fact it works while stepping under the debugger. There must be something specific to the SAM S70 part that's causing this to happen, but what???
Does anyone have any thoughts or possible solution??
Thanks for your help.