source /home/linux/workspace/fs_assembly_led/s5p6818.init
0x0000000000000000 in ?? ()
Loading section .text, size 0x70 lma 0x40008000
Start address 0x40008000, load size 112
Transfer rate: 896 bits in <1 sec, 112 bytes/write.
load
break _start
Breakpoint 1 at 0x40008000: file fs_assembly_led.s, line 4.
Warning:
Cannot insert breakpoint 1.
Cannot access memory at address 0x40008000
错误
寻找解决方法中
source /home/linux/workspace/fs_led/s5p6818.init
/home/linux/workspace/fs_led/s5p6818.init:1: Error in sourced command file:
Remote communication error. Target disconnected.: Broken pipe.
load
You can't do that when your target is `exec'
break _start
Breakpoint 1 at 0x49000000: file fs_led.s, line 5.
错误二
找到问题了是之前一个debug忘记关了
关上之后再debug结果是
source /home/linux/workspace/fs_led/s5p6818.init
0x0000000000000000 in ?? ()
load
Loading section .text, size 0x478 lma 0x49000000
Start address 0x49000000, load size 1144
Transfer rate: 9152 bits in <1 sec, 1144 bytes/write.
break _start
Breakpoint 1 at 0x49000000: file fs_led.s, line 5.
然后是发现自己不小心把后台的FS_JTAG关掉了
直接点调试跳过断点即可
注意电源的链接和
结果:
source /home/linux/workspace/fs_led/s5p6818.init
0x000000007da5cd00 in ?? ()
Loading section .text, size 0x478 lma 0x49000000
load
Start address 0x49000000, load size 1144
Transfer rate: 9152 bits in <1 sec, 1144 bytes/write.
break _start
Breakpoint 1 at 0x49000000: file fs_led.s, line 5.
monitor halt
Program received signal SIGINT, Interrupt.
_start () at fs_led.s:5
5 ldr w0,=0xC001A024 /* RGB ->R */
Program received signal SIGINT, Interrupt.
main () at main.c:79
79 unsigned int reg = 0;
总结:
首先是硬件方面电源的链接和接线
然后是软件方面
代码的正确和调试变量的正确
最后是debug和调试跳过断点
最后不要忘记挂着FS_JTAG
看,有的时候并不是代码的问题
浙公网安备 33010602011771号