Linker Error Messages IAR Tools -> ST712

phil4321 wrote on Wednesday, June 13, 2007:

Hopefully this is a basic error?

I am using the IAR Workbench with the ST712 i have created a new project with all the latest release files required to run the RTOS. All of the files compile with no errors but I get several linker error messages:

Error[e46]: Undefined external "vPortStartFirstTask" referred in port ( C:\SoftwareProjects\Firmware\MyFirst\Debug\Obj\port.r79 )

Error[e46]: Undefined external "pvPortMalloc" referred in tasks ( C:\SoftwareProjects\Firmware\MyFirst\Debug\Obj\tasks.r79 )

Error[e46]: Undefined external "vPortFree" referred in tasks ( C:\SoftwareProjects\Firmware\MyFirst\Debug\Obj\tasks.r79 )

Error[e46]: Undefined external "vPortYieldProcessor" referred in vect ( C:\SoftwareProjects\Firmware\MyFirst\Debug\Obj\vect.r79 )

Error[e46]: Undefined external "vPortPreemptiveTickISR" referred in vect ( C:\SoftwareProjects\Firmware\MyFirst\Debug\Obj\vect.r79 )

Error[e46]: Undefined external "vSerialISREntry" referred in vect ( C:\SoftwareProjects\Firmware\MyFirst\Debug\Obj\vect.r79 )

Can anyone point me in the right direction to fix this problem.

Thanks

Phil

davedoors wrote on Wednesday, June 13, 2007:

Looks like you forgot to add the source\portable\iar\str71x\portasm.s79 file to your project.

Why have you created a new project rather than just using the one in the download?

Dave.

phil4321 wrote on Wednesday, June 13, 2007:

Dave,

Thanks for the pointer I did forget the portasm.s79 file that fixed some of the error I am now left with the ones below. My first project was one of the demo application i down loaded that run great on my dev board. I decided that I would like to build a project from start as it would help me to understand the settings in the IAR workbench and the RTOS system. I am nearly there just got stuck with the linker error.

Thanks Phil.

Error[e46]: Undefined external "pvPortMalloc" referred in tasks ( C:\SoftwareProjects\Firmware\MyFirst\Debug\Obj\tasks.r79 )

Error[e46]: Undefined external "vPortFree" referred in tasks ( C:\SoftwareProjects\Firmware\MyFirst\Debug\Obj\tasks.r79 ) 

Error[e46]: Undefined external "vSerialISREntry" referred in vect ( C:\SoftwareProjects\Firmware\MyFirst\Debug\Obj\vect.r79 )

davedoors wrote on Wednesday, June 13, 2007:

You also need to include either heap_1, heap_2 or heap_3.c.  Not sure about the vSerialISREntry one, but I would guess that this is also in an assembler file as the IAR tool needs assembler entry points to ISR’s.  Is there another assembly file with the serial driver?

phil4321 wrote on Thursday, June 14, 2007:

Thanks Dave,

All linking now with no errors.

Phil