LPC4370 issue with 32 KB AHB SRAM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC4370 issue with 32 KB AHB SRAM

1,066 Views
a_bet
Contributor IV

Hi to you all,
still working on the LPC4370 and optimal memory configuration.
This is my current setup
Selection_087.png

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:
Selection_089.png
Any ideas?:)

Thanks,
Andrea

Labels (4)
0 Kudos
2 Replies

1,005 Views
a_bet
Contributor IV

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.

Selection_090.png

0 Kudos

1,005 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

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.

 pastedImage_2.png

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

0 Kudos