Freemaster build in frdm-k20d50m-demo failed

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Freemaster build in frdm-k20d50m-demo failed

ソリューションへジャンプ
799件の閲覧回数
kai_liu
Senior Contributor I

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?

ラベル(2)
タグ(2)
0 件の賞賛
返信
1 解決策
534件の閲覧回数
kai_liu
Senior Contributor I

The frdm-k20d50m-demo has not included the source files listed as following:

common\freemaster_appcmd.c (FMSTR_InitAppCmds)

common\freemaster_rec.c (FMSTR_InitRec)

common\freemaster_scope.c (FMSTR_InitScope)

common\freemaster_serial.c (FMSTR_Poll, FMSTR_InitSerial)

After including these source files, it can be built successfully. So the project actually is not a tested complete FreeMaster application.

Also I found that the existing Freemaster doesn't support POLL over USB-CDC. Only SCI is working. And I am studying the code to find out which serial port is considered as SCI console.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
535件の閲覧回数
kai_liu
Senior Contributor I

The frdm-k20d50m-demo has not included the source files listed as following:

common\freemaster_appcmd.c (FMSTR_InitAppCmds)

common\freemaster_rec.c (FMSTR_InitRec)

common\freemaster_scope.c (FMSTR_InitScope)

common\freemaster_serial.c (FMSTR_Poll, FMSTR_InitSerial)

After including these source files, it can be built successfully. So the project actually is not a tested complete FreeMaster application.

Also I found that the existing Freemaster doesn't support POLL over USB-CDC. Only SCI is working. And I am studying the code to find out which serial port is considered as SCI console.

0 件の賞賛
返信