首先,我按照 DS-5开始演示,可以在 ARM FVP -> VE_Coretex_A9x1 上正确调试我的代码。
然后我按照链接启用 NEON,它需要在构建中设置 CPU 目标,axf 文件已正确构建,但调试器停止工作。CA9_FVP 连接到板后挂起。它显示waitForTargetToStop
.
Connected to stopped target ARM FVP (Installed with DS-5) - VE_Cortex_A9x1
Execution stopped at: S:0x00000000
loadfile "test.axf"
S:0x00000000 DCI 0xe7ff0010 ; ? Undefined
Loaded section ER_RO: S:0x80000000 ~ S:0x80002C0B (size 0x2C0C)
Loaded section ER_RW: S:0x80002C0C ~ S:0x80002C1F (size 0x14)
Entry point S:0x80000000
cd "Documents\DS-5 Workspace"
Semihosting server socket created at port 8001
Semihosting enabled automatically due to semihosting symbol detected in image 'math_neon.axf'
Working directory "Documents\DS-5 Workspace"
set debug-from main
start
Starting target with image test.axf
Running from entry point
wait
作为条目调试的结果:
_fp_init S:0x80002B88 : MOV r0,#0x3000000 S:0x80002B8C : VMSR FPSCR,r0 --> 此行将导致 PC 跳转到 0x00000004 并卡住 S:0x00000000:DCI 0xe7ff0010;? 不明确的 S:0x00000004 : STMDA r0,{r11,sp-pc} S:0x00000008 : DCI 0xe7ff0010 ; ? 不明确的 S:0x0000000C : STMDA r0,{r11,sp-pc} S:0x00000010 : DCI 0xe7ff0010 ; ? 不明确的 S:0x00000014 : STMDA r0,{r11,sp-pc}