Forum Discussion
Hi Mohammad_lami
Could you try removing the vector portion in the scat file?
I see that vector table in the startup.s is not set up to point to any portion in the code.
By removing the vector table we could start directly to the code.
Regards
Jingyang, Teh
- Mohammed_Lami3 years ago
Occasional Contributor
Hi @JingyangTeh_Altera , thanks for your suggestion
I removed the vector portion in the scatter file according to your suggestion, but I got the errors shown below when I tried to build the project, any suggestion please?
------------ Errors after building the project -----------------------------------------------
01:03:34 **** Build of configuration Debug for project startup_Cortex-A9_AC6 ****
make all
'Building file: ../sorts.c'
'Invoking: Arm C Compiler 6'
armclang --target=arm-arm-none-eabi -mcpu=cortex-a9 -mfpu=neon-fp16 -mfloat-abi=hard -marm -O0 -g -MD -MP -c -o "sorts.o" "../sorts.c"
'Finished building: ../sorts.c'
' '
'Building file: ../startup.S'
'Invoking: Arm Assembler 6'
armclang.exe --target=arm-arm-none-eabi -mcpu=cortex-a9 -mfpu=neon-fp16 -mfloat-abi=hard -marm -g -c -o "startup.o" "../startup.S"
'Finished building: ../startup.S'
' '
'Building target: ../startup_Cortex-A9_AC6.axf'
'Invoking: Arm Linker 6'
armlink.exe --entry=Vectors --scatter="../scatter.scat" --info=sizes -o "../startup_Cortex-A9_AC6.axf" ./sorts.o ./startup.o
Error: L6218E: Undefined symbol Image$$VECTORS$$Base (referred from startup.o).
Finished: 0 information, 0 warning and 1 error messages.
make: *** [makefile:31: ../startup_Cortex-A9_AC6.axf] Error 1
"make all" terminated with exit code 2. Build might be incomplete.01:03:42 Build Failed. 2 errors, 0 warnings. (took 8s.186ms)
- Mohammed_Lami3 years ago
Occasional Contributor
Also, I tried to run the project (with the vector) in steps to see where is the problem, I got the following error in the command view and Disassembly view, apparently, the system couldn't access the two addresses 0x80000068 and 0x8000006C. For your information and support please.
------------------- Error in the Disassembly view --------------------------
---------------- Error in the command view ------------------------
ERROR(CMD440-TAD10-NAL18):
! Stepping failed
! Failed to read 4 bytes from address S:0x8000006C
! Bus error on memory operation.
Target Message: Memory access caused precise abort.
Debug Precise Abort Registers : DFSR = 0x00001008, DFAR = 0x80000000
Target Message: Memory access caused precise abort.
Debug Precise Abort Registers : DFSR = 0x00001008, DFAR = 0x80000068
Target Message: Memory access caused precise abort.
Debug Precise Abort Registers : DFSR = 0x00001008, DFAR = 0x8000006C