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
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)