Hi Experts
I am using NXP Mpc5748g, embedded with external flash AT25DF041B. Communication between controller and flash is done through SPI with DMA where Mpc5748g is configured as master and AT25 as slave in the application.
It is observed that when our application project is run without bootloader, communication between external flash and NXP is correct and every time we read and write correct data. But when we run our application with bootloader, communication is only normal for the first operation cycle and abnormal for the second, third, and so on operation cycle and we always fetch incorrect data. And if we remove the bootloader and reprogramming only the application, it will correctly read the last data in the AT25 when it is saved in normal operation cycle.
SPI waveforms have been captured and verified. They are always correct in both cases but actual data read and write from SPI is not correct at all when we use it with bootloader. There is no initialization of the specific SPI and DMA in bootloader.
Are there any experiences can be shared for this case? Is it possible for uninitialized RAM impacting on the SPI and DMA operation?
Please let me know what can be the possible reasons for that error.
Thanks