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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

371 次查看
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 项奖励
回复
2 回复数

338 次查看
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 项奖励
回复

297 次查看
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 项奖励
回复