kamal1 wrote on Tuesday, May 07, 2019:
I used the port files from Thomas following the thread link I fist posted and then to this download link:
https://interactive.freertos.org/hc/en-us/community/posts/210027446-LPC32xx-ARM9-with-FPU-support-using-GCC
I was looking in other Arm demo port files and found some of my undefined symbols but they are not for my processor.
Including the heap_4.c file resolved 2 of the 9 errors. I attached the port files. Another file was includsed with the port files, portISR.c, which would resolve some of my error but when I try to build the portISR.c file I get these errors and warnings:
src\portISR.c(68): warning: #1207-D: unknown attribute “interrupt”
void vPortYieldProcessor( void ) attribute((interrupt(“SWI”), naked));
src\portISR.c(68): warning: #1207-D: unknown attribute “naked”
void vPortYieldProcessor( void ) attribute((interrupt(“SWI”), naked));
src\portISR.c(71): warning: #1207-D: unknown attribute “interrupt”
void vPortIRQHandler( void ) attribute((interrupt(“IRQ”), naked));
src\portISR.c(71): warning: #1207-D: unknown attribute “naked”
void vPortIRQHandler( void ) attribute((interrupt(“IRQ”), naked));
src\portISR.c(90): warning: #223-D: function “portRESTORE_CONTEXT” declared implicitly
portRESTORE_CONTEXT();
src\portISR.c(107): error: #20: identifier “LR” is undefined
__asm volatile ( “ADD LR, LR, #4” );
src\portISR.c(110): warning: #223-D: function “portSAVE_CONTEXT” declared implicitly
portSAVE_CONTEXT();
src\portISR.c(116): warning: #223-D: function “portRESTORE_CONTEXT” declared implicitly
portRESTORE_CONTEXT();
src\portISR.c(123): warning: #223-D: function “portSAVE_CONTEXT” declared implicitly
portSAVE_CONTEXT();
src\portISR.c(128): warning: #1267-D: Implicit physical register R2 should be defined as a variable
" LDR r2, =0x40008000 \n\t" /* Base address of MIC */
src\portISR.c(128): error: #29: expected an expression
" LDR r2, =0x40008000 \n\t" /* Base address of MIC */
src\portISR.c(161): warning: #223-D: function “portRESTORE_CONTEXT” declared implicitly
portRESTORE_CONTEXT();
src\portISR.c(228): error: #20: identifier “SP” is undefined
“STMDB SP!, {R0} \n\t” /* Push R0. */
src\portISR.c(253): error: #20: identifier “SP” is undefined
“STMDB SP!, {R0} \n\t” /* Push R0. */
src\portISR.c(271): warning: #1267-D: Implicit physical register R0 should be defined as a variable
“MOV R0, #0 \n\t”