完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
LED的示例代码,我是用NANDFLASH启动的,出错代码如下
------------------------------------------------------------------------------------------------------------------------------- target remote localhost:3333 warning: while parsing target memory map (at line 2): Required element _start () at crt0.S:9 9 ldr r0, =0x53000000 @ WATCHDOG274304264346306367265330326267 Current language: auto; currently asm monitor halt monitor ARM920t cp15 2 0 2: 00000000 monitor arm7_9 sw_bkpts enable software breakpoints enabled load Loading section .text, size 0xac lma 0x0 Start address 0x0, load size 172 Transfer rate: 1376 bits in <1 sec, 172 bytes/write. break main Breakpoint 1 at 0x4c: file leds.c, line 17. continue Address translation failure memory read caused data abort (address: 0x0000004c, size: 0x4, count: 0x1) Unable to set 32 bit software breakpoint at address 0000004c timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 4 timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 4 timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 4 timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 4 Program received signal SIGTRAP, Trace/breakpoint trap. 0xffffffe8 in ?? () --------------------------------------------------------------------------------------------------------------------------------- 我的DEBUG配置中COMMAND是: target remote localhost:3333 monitor halt monitor arm920t cp15 2 0(因为每次一上电,MMU和D-CACHE都是enable) monitor arm7_9 sw_bkpts enable load break main continue |
|
相关推荐
5个回答
|
|
|
|
|
|
加上了了step,还有其他的问题,好像是设置断点和continue的时候出了问题,console信息如下:
target remote localhost:3333 warning: while parsing target memory map (at line 2): Required element _start () at crt0.S:9 9 ldr r0, =0x53000000 @ WATCHDOG274304264346306367265330326267 Current language: auto; currently asm monitor halt monitor arm920t cp15 2 0 2: 00000000 monitor step monitor poll target state: halted target halted in ARM state due to single step, current mode: User cpsr: 0x60000010 pc: 0x401517e8 MMU: disabled, D-Cache: disabled, I-Cache: disabled monitor arm7_9 sw_bkpts enable software breakpoints enabled load Loading section .text, size 0xac lma 0x0 Start address 0x0, load size 172 Transfer rate: 1376 bits in <1 sec, 172 bytes/write. break main Breakpoint 1 at 0x4c: file leds.c, line 17. continue Program received signal SIGTRAP, Trace/breakpoint trap. 0x4100004c in ?? () 这个错误我就真的有点莫名其妙了,还请高手指点一下。 把continue换成monitor resume 0x0倒是能正常跑起来,不过这样子就没有单步调试的界面了。 |
|
|
|
请联系QQ 17653039;我与你一起试验
|
|
|
|
谢谢大侠的支持,我前两天又试了一下,已经能够成功地进行调试了,只是还有点不熟悉而已.
我把debug里command的最后一条指令continue去掉了,换成了monitor halt,然后debug之后选择suspend,再继续,好像就可以了。。。不过前两天好像是直接在continue前加上monitor halt,也能够成功调试,今晚再试忽然就不行了,按照我刚才的说法弄了一遍才行,不过总归比书上介绍的调试方法多了一步。 command的continue是啥意思? |
|
|
|
continue 是继续运行
|
|
|
|
只有小组成员才能发言,加入小组>>
197个成员聚集在这个小组
加入小组为什么点亮LED的例子放在NORFlash上跑会出现奇怪的现象?
2156 浏览 6 评论
1962 浏览 5 评论
韦东山老师推出的《玩转ARM裸机实战》课程将帮你以上问题一扫而光!
4520 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-21 16:30 , Processed in 0.799515 second(s), Total 87, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号