Hi Vojtech,
I created an entirely new PEx project in DS-5 this time, called 'SecondPE' to make sure I didn't mess something up: New --> Project --> Processor Expert Project --> (Processor MVF61NN151MK50) --> Use current perspective, Initialize all peripherals -> GNU C Compiler.
When it created the project, I looked at the properties for the PEx project. In the Tool Chain Editor, for "Current toolchain", I selected "DS-5 GCC". For "Current builder", I selected "Processor Expert Configuration Debug Builder". Is this what you mean by using the "PEx generated linker file"?
Under "Build Options" in the PEx projects, "Generate linker file" is already set to "yes"
I added "Generated_Code" and "Sources" to the include paths.
I then cleaned and then built the project and I get these messages when it tries to link
Building target: SecondPE
Invoking: GCC C++ Linker
arm-linux-gnueabihf-g++ -o "SecondPE" ./Sources/Events.o ./Sources/Exceptions.o ./Sources/ProcessorExpert.o ./Project_Settings/Startup_Code/startupA5.o ./Generated_Code/ADC0.o ./Generated_Code/ADC1.o ./Generated_Code/AFE.o ./Generated_Code/ASRC.o ./Generated_Code/CAN0.o ./Generated_Code/CAN1.o ./Generated_Code/CMU.o ./Generated_Code/CRC.o ./Generated_Code/Cpu.o ./Generated_Code/DAC0.o ./Generated_Code/DAC1.o ./Generated_Code/DCU0.o ./Generated_Code/DCU1.o ./Generated_Code/DDR_mc1.o ./Generated_Code/DMA0.o ./Generated_Code/DMA1.o ./Generated_Code/ENET0.o ./Generated_Code/ENET1.o ./Generated_Code/ESAI.o ./Generated_Code/ESW.o ./Generated_Code/EWM.o ./Generated_Code/FB.o ./Generated_Code/FTM0.o ./Generated_Code/FTM1.o ./Generated_Code/FTM2.o ./Generated_Code/FTM3.o ./Generated_Code/GIC.o ./Generated_Code/GPC.o ./Generated_Code/GPIO0.o ./Generated_Code/GPIO1.o ./Generated_Code/GPIO2.o ./Generated_Code/GPIO3.o ./Generated_Code/GPIO4.o ./Generated_Code/I2C0.o ./Generated_Code/I2C1.o ./Generated_Code/I2C2.o ./Generated_Code/I2C3.o ./Generated_Code/I2S0.o ./Generated_Code/I2S1.o ./Generated_Code/I2S2.o ./Generated_Code/I2S3.o ./Generated_Code/LPTMR0.o ./Generated_Code/MSCM.o ./Generated_Code/NFC.o ./Generated_Code/OCOTP.o ./Generated_Code/PDB.o ./Generated_Code/PE_LDD.o ./Generated_Code/PIT.o ./Generated_Code/Pins1.o ./Generated_Code/QuadSPI0.o ./Generated_Code/QuadSPI1.o ./Generated_Code/RLE_DEC.o ./Generated_Code/SDHC0.o ./Generated_Code/SDHC1.o ./Generated_Code/SPDIF.o ./Generated_Code/SPI0.o ./Generated_Code/SPI1.o ./Generated_Code/SPI2.o ./Generated_Code/SPI3.o ./Generated_Code/SRC.o ./Generated_Code/TCON0.o ./Generated_Code/TCON1.o ./Generated_Code/UART0.o ./Generated_Code/UART1.o ./Generated_Code/UART2.o ./Generated_Code/UART3.o ./Generated_Code/UART4.o ./Generated_Code/UART5.o ./Generated_Code/USB0.o ./Generated_Code/USB1.o ./Generated_Code/USBPHY0.o ./Generated_Code/USBPHY1.o ./Generated_Code/VDEC.o ./Generated_Code/VIU3.o ./Generated_Code/Vectors.o ./Generated_Code/WDOG_A5.o ./Generated_Code/WDOG_M4.o ./Generated_Code/WKPU.o
./Project_Settings/Startup_Code/startupA5.o: In function `endless_loop':
(.text._startup_code+0x80): undefined reference to `__stack_und_end__'
./Project_Settings/Startup_Code/startupA5.o: In function `endless_loop':
(.text._startup_code+0x84): undefined reference to `__stack_abt_end__'
./Project_Settings/Startup_Code/startupA5.o: In function `endless_loop':
(.text._startup_code+0x88): undefined reference to `__stack_fiq_end__'
./Project_Settings/Startup_Code/startupA5.o: In function `endless_loop':
(.text._startup_code+0x8c): undefined reference to `__stack_irq_end__'
./Project_Settings/Startup_Code/startupA5.o: In function `endless_loop':
(.text._startup_code+0x90): undefined reference to `__stack_svc_end__'
./Project_Settings/Startup_Code/startupA5.o: In function `endless_loop':
(.text._startup_code+0x94): undefined reference to `__stack_top__'
./Project_Settings/Startup_Code/startupA5.o: In function `endless_loop':
(.text._startup_code+0x9c): undefined reference to `_sidata'
./Project_Settings/Startup_Code/startupA5.o: In function `endless_loop':
(.text._startup_code+0xa0): undefined reference to `_sdata'
./Project_Settings/Startup_Code/startupA5.o: In function `endless_loop':
(.text._startup_code+0xa8): undefined reference to `__START_BSS'
./Project_Settings/Startup_Code/startupA5.o: In function `endless_loop':
(.text._startup_code+0xac): undefined reference to `__END_BSS'
./Generated_Code/Cpu.o: In function `__init_hardware':
/home/thu/DS-5-Workspace-oobedemo/SecondPE/Linux_C_Debug/../Generated_Code/Cpu.c:259: undefined reference to `__vector_table'
collect2: error: ld returned 1 exit status
make: *** [SecondPE] Error 1
**** Build Finished ****
I suspect that the DS-5 GCC compiler isn't the right choice? It's the only GCC compiler available besides the Timestorm GCC compiler. When I try to use the Timestorm GCC compiler, Eclipse says: "java.lang.NullPointerException" so I can't use the Timestorm GCC compiler.
Do I need to specify to the compiler the CPU type? I also tried adding this to the GCC compiler and GCC assembler configs in the project:
-mcpu=cortex-a5 -mfpu=vfpv4-d16
and got the same result.
Is there some linker config I need to set up?
Thanks.