Hi Jiri,
Thanks for your reply.
To be more specific:
I do a SPI DMA transfer using SDK DMA_TRANSFER routine. This function takes SPI instance, pointer to TX buffer and a pointer to RX_buffer and the number of the bytes to be transferred as inputs
I use the SPI complete call back to call this routine to avoid bottle neck since I don't want to wait to trigger the next transfer(NONE BLOCKING).
It works fine as long as I pass the RX_BUFFER pointer where it is declared as a global variable in the file where the transfer_complete call back is defined. if I declare it in some other file and refer to it as external where it is used ,It trips an exception. The issue is that I don't know which exception is triggered.
All the exceptions are defined as a while(1) That's where I end up.
There is no build error and MAP file looks good . the bss section has the right alignment.
If I want to reach here , I would say may be the DMA works on certain areas of the RAM and not all the section defined in the linker file.
I just hope my description is not too confusing to understand.
Thanks,