|
发表于 2017-10-26 18:34:17
18032 浏览 6 回复
无法访问DMA寄存器
直接访问DMA的寄存器,比如INTEN -->0x12840020,无法读写.
不知道为什么出在哪里?是需要其他什么设置吗?
|
|
|
|
|
|
|
|
楼主|
发表于 2017-10-26 18:40:31
DMA_INTEN (*(volatile unsigned long *)(DMAC_BASE_0 + 0x0020)
DMA_INTEN |= 1 << 2;
这样无法读写..每次调试到这句话就会报错.
Jlink报错为 :
ERROR: Can not read register 0 (R0) while CPU is running
ERROR: Can not read register 1 (R1) while CPU is running
ERROR: Can not read register 2 (R2) while CPU is running
ERROR: Can not read register 3 (R3) while CPU is running
ERROR: Can not read register 4 (R4) while CPU is running
ERROR: Can not read register 5 (R5) while CPU is running
ERROR: Can not read register 6 (R6) while CPU is running
ERROR: Can not read register 7 (R7) while CPU is running |
|
|
|
|
|
|
|
楼主|
发表于 2017-10-28 09:25:30
|
|
|
|
|
|
|
楼主|
发表于 2017-10-31 09:19:05
|
|
|
|
|
|
|
楼主|
发表于 2017-11-2 09:09:38
|
|
|
|
|
|
|
发表于 2018-4-9 11:06:48
|
|
|
|
|
|
登录或注册
扫一扫关注迅为公众号
|