6 years ago.

mbed iar export linker problem

hello, I have project nimbelink skywire demo https://os.mbed.com/teams/Nimbelink/code/Skywire_Demo/ using nucleo l476 and iar compiler 7.80.4. and mbed version whatever is out there today 2018-04-19. this program will compile in mbed but i want to do real time debug in iar so i export to iar with updated libraries then try to make in iar. 1) can.h has many issues so i comment it out in the mbed.h. -this solves many compile errors. 2) then after commenting out the can.h include i get linker errors.

Error[Li005]: no definition for "__iar_system_Mtxlock" [referenced from xsyslock_mtx.o(dl7M_tlf.a)] 
Error[Li005]: no definition for "__iar_file_Mtxinit" [referenced from xsyslock_mtx.o(dl7M_tlf.a)] 
Error[Li005]: no definition for "__iar_system_Mtxinit" [referenced from xsyslock_mtx.o(dl7M_tlf.a)] 
Error[Li005]: no definition for "__iar_file_Mtxdst" [referenced from xsyslock_mtx.o(dl7M_tlf.a)] 
Error[Li005]: no definition for "__iar_system_Mtxdst" [referenced from xsyslock_mtx.o(dl7M_tlf.a)] 
Error[Li005]: no definition for "__iar_system_Mtxunlock" [referenced from xsyslock_mtx.o(dl7M_tlf.a)] 
Error[Li005]: no definition for "__iar_file_Mtxunlock" [referenced from xsyslock_mtx.o(dl7M_tlf.a)] 
Error[Li005]: no definition for "__iar_file_Mtxlock" [referenced from xsyslock_mtx.o(dl7M_tlf.a)] 
Error while running Linker 
 
Total number of errors: 8 
Total number of warnings: 0 

i can't find a xsyslock_mtx file I really have no idea how to debug this.

1 Answer

4 years, 11 months ago.

I have the same problem.