First I follow the DS-5 start demo and can debug my code correctly on the ARM FVP -> VE_Coretex_A9x1.
Then I follow the link to enable NEON and it needs to set CPU target in the build, the axf file has been built correctly but the debugger stops to work. The CA9_FVP hangs after connected to board. It shows 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
As the results of debug from entry:
_fp_init S:0x80002B88 : MOV r0,#0x3000000 S:0x80002B8C : VMSR FPSCR,r0 --> this line will cause PC jump to 0x00000004 and them stuck S:0x00000000 : DCI 0xe7ff0010 ; ? Undefined S:0x00000004 : STMDA r0,{r11,sp-pc} S:0x00000008 : DCI 0xe7ff0010 ; ? Undefined S:0x0000000C : STMDA r0,{r11,sp-pc} S:0x00000010 : DCI 0xe7ff0010 ; ? Undefined S:0x00000014 : STMDA r0,{r11,sp-pc}