AnsweredAssumed Answered

Freemaster build in frdm-k20d50m-demo failed

Question asked by Kai Liu on Jan 31, 2014
Latest reply on Jan 31, 2014 by Kai Liu

I am interested in Freemaster in FRDM-K20D50M-DEMO project. After enabling MACRO in source, IAR shows the following build errors by linker.

 

Error[Li005]: no definition for "FMSTR_Poll" [referenced from E:\OpenSDA\kinetis_50MHz_sc\k20d50m_sc_baremetal\build\iar\frdm-k20d50m-demo\FLASH_128KB_PFLASH\Obj\frdm-k20d50m-demo.o] 
Error[Li005]: no definition for "FMSTR_InitScope" [referenced from E:\OpenSDA\kinetis_50MHz_sc\k20d50m_sc_baremetal\build\iar\frdm-k20d50m-demo\FLASH_128KB_PFLASH\Obj\freemaster_protocol.o] 
Error[Li005]: no definition for "FMSTR_InitRec" [referenced from E:\OpenSDA\kinetis_50MHz_sc\k20d50m_sc_baremetal\build\iar\frdm-k20d50m-demo\FLASH_128KB_PFLASH\Obj\freemaster_protocol.o] 
Error[Li005]: no definition for "FMSTR_InitAppCmds" [referenced from E:\OpenSDA\kinetis_50MHz_sc\k20d50m_sc_baremetal\build\iar\frdm-k20d50m-demo\FLASH_128KB_PFLASH\Obj\freemaster_protocol.o] 
Error[Li005]: no definition for "FMSTR_InitSerial" [referenced from E:\OpenSDA\kinetis_50MHz_sc\k20d50m_sc_baremetal\build\iar\frdm-k20d50m-demo\FLASH_128KB_PFLASH\Obj\freemaster_protocol.o]

 

Actually these functions are defined in freemaster.h and freemaster_private.h.

 

I checked the include path:

 

...
$PROJ_DIR$\..\..\..\src\projects\frdm-k20d50m-demo\fft_test
$PROJ_DIR$\..\..\..\src\projects\frdm-k20d50m-demo\freemaster
$PROJ_DIR$\..\..\..\src\projects\frdm-k20d50m-demo\freemaster\common
$PROJ_DIR$\..\..\..\src\projects\frdm-k20d50m-demo\freemaster\Kxx
$PROJ_DIR$\..\..\..\src\projects\frdm-k20d50m-demo\I2C
...

 

I can find two identical freemaster.h under freemaster\common and freemaster\Kxx, and freemaster\common\freemaster_private.h, which are listed in include path.

 

Why does IAR report that? Or it can not be built with 32KB EV version?

Outcomes