/board/pin_mux.c:202: undefined reference to `Chip_GetVersion'

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

/board/pin_mux.c:202: undefined reference to `Chip_GetVersion'

1,097 次查看
jgreen
Contributor III

Hi, I just downloaded latest latest SDK 'SDK_2.6.3_LPC55S69', now when I use pin config tool to autogenerate pin_mux.c etc. I get build error...

>>>  ../board/pin_mux.c:202: undefined reference to `Chip_GetVersion'

The autogenerated file pin_mux.c has added some extra code like this, which fails to compile...

    if (Chip_GetVersion()==1)

    {

<snip>

    }

   

Any idea what I need to do to get it working?

Thanks

Jon

标记 (1)
0 项奖励
3 回复数

973 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Jon,

Regarding your question, pls refer to the screenshot, the Chip_GetVersion() function is located at LPC55S69_cm33_core0.h. Pls add the line

#include "LPC55S69_cm33_core0.h"

in this way, the compiler can get the function.

BTW, I use SDK_2.6.3_LPCXpresso55S69.zip package.

Hope it can help you

BR

XiangJun Rong

pastedImage_1.png

0 项奖励

973 次查看
jgreen
Contributor III

Hi XiangJun,

I found the proper way to resolve this issue.

First thing to note is that my file 'LPC55S69_cm33_core0.h' had no such function of `Chip_GetVersion'.

It seems that after installing new SDK, existing project doesn't automatically use the new SDK.

In "Installed SDKs" view, need to 'uncheck' older SDK, then opening existing project will prompt to switch to new SDK. This will refresh SDK components including updating the file of  'LPC55S69_cm33_core0.h'

Now code will build ok with no change needed to pin_config.c

Thanks

Jon

0 项奖励

973 次查看
jgreen
Contributor III

Hi XiangJun,

Thanks for your reply.

While your suggestion will work, it's not the full solution.

This issue is caused by some problem in the pin config tool that results in incorrect autogenerated file of pin_mux.c

There needs to be some update to SDK that will allow pin config tool to generate files that will compile with no problem.

I raise this issue to make NXP aware of the problem so they can fix it.

BR

Jon

0 项奖励