Hi to you all,
still working on the LPC4370 and optimal memory configuration.
This is my current setup
I want to use a buffer in RamAHB32 (RAM3) to acquire data using the GPDMA + ADCHS.
The problem is that while the system works fine if I use RAM2 or RAM4, I got an hardfault error while using RAM3. Is there something special about this memory region that I am missing?
I declare my buffer like this:
__DATA(RAM3) int32_t buffer1[BUFF_SIZE] __attribute__ ((aligned (MEMORY_BOUNDARY))) ={0};
And here's the report from the linker script:
Any ideas?:)
Thanks,
Andrea
Ok so apparently I solved the problem avoiding to use the lower half of RamAHB32.
So I declared a new memory section RAM_00 which goes from 0x20000000 to 0x20004000 and placed my buffer there.
I still have no idea why the first half is not working though.
Hello Andrea Bettati
Thank you for your interest in NXP Semiconductor products and the opportunity to serve you.
According to this figure, the 32kB block of the AHB SRAM is divided into two blocks of 16kB.
For more information about this issue, you can check this post: https://community.nxp.com/thread/435084
Let me know if this is helpful, if you have more questions do not hesitate to ask me.
Best regards,
Omar