ADCHS DMA does not work after LPC4370 remaps the base address?

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

ADCHS DMA does not work after LPC4370 remaps the base address?

368 Views
xieweiming
Contributor I
After copying the code from ROM to RAM (from 0x14000000 to 0x10000000) and remapping the base address (0x10000000), the DMA of ADCHS cannot trigger interrupts properly.(When compiling my project, the base address is set to 0)
I tested that the FIFO interrupt of ADCHS can be triggered, indicating that the mapping of the interrupt vector is correct, but the DMA interrupt cannot be triggered properly.
If I remap to 0x14000000 or 0x80000000 again, DMA will work properly.
Requesting help, why?
Help me, I've been spending weeks on this issue.
Thank you.
0 Kudos
Reply
2 Replies

335 Views
xieweiming
Contributor I
I have made some new discoveries after debugging.
The inability to trigger DMA interrupt is due to ADCHS descriptor not sampling properly. When the base address mapping is performed, it cannot function properly when MATCH-VALUE>0. I don't know the reason.
0 Kudos
Reply

294 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Have you changed the Vector Table Offset Register? After you change the code address, you have to change the Vector Table Offset Register so that the code can find the correct interrupt vector table.

xiangjun_rong_0-1721200148002.png

Hope it can help you

BR

XiangJun Rong

BR

XiangJun Rong

0 Kudos
Reply