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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,000 Views
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

Tags (1)
0 Kudos
3 Replies

876 Views
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 Kudos

876 Views
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 Kudos

876 Views
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 Kudos