Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues after upgrading the SDK #1

Open
linhz0hz opened this issue Aug 17, 2022 · 2 comments
Open

Issues after upgrading the SDK #1

linhz0hz opened this issue Aug 17, 2022 · 2 comments

Comments

@linhz0hz
Copy link

After upgrading your usb virtual com example to the 2.12.0 version of the SDK on MCUXpresso, I got the following compile error:

/lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./component/serial_manager/fsl_component_serial_manager.o: in functionSerialManager_StartWriting':
C:\Users\linhz\Documents\MCUXpressoIDE_11.6.0_8187\workspace\teensy_hello_world_virtual_com\Debug/../component/serial_manager/fsl_component_serial_manager.c:289: undefined reference to Serial_UartWrite' c:/nxp/mcuxpressoide_11.6.0_8187/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.6.0.202112161359/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./component/serial_manager/fsl_component_serial_manager.o: in function SerialManager_StartReading':
C:\Users\linhz\Documents\MCUXpressoIDE_11.6.0_8187\workspace\teensy_hello_world_virtual_com\Debug/../component/serial_manager/fsl_component_serial_manager.c:356: undefined reference to Serial_UartRead' c:/nxp/mcuxpressoide_11.6.0_8187/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.6.0.202112161359/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./component/serial_manager/fsl_component_serial_manager.o: in function SerialManager_IsrFunction':
C:\Users\linhz\Documents\MCUXpressoIDE_11.6.0_8187\workspace\teensy_hello_world_virtual_com\Debug/../component/serial_manager/fsl_component_serial_manager.c:517: undefined reference to Serial_UartIsrFunction' c:/nxp/mcuxpressoide_11.6.0_8187/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.6.0.202112161359/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./component/serial_manager/fsl_component_serial_manager.o: in function SerialManager_Init':
C:\Users\linhz\Documents\MCUXpressoIDE_11.6.0_8187\workspace\teensy_hello_world_virtual_com\Debug/../component/serial_manager/fsl_component_serial_manager.c:1247: undefined reference to Serial_UartInit' c:/nxp/mcuxpressoide_11.6.0_8187/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.6.0.202112161359/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\linhz\Documents\MCUXpressoIDE_11.6.0_8187\workspace\teensy_hello_world_virtual_com\Debug/../component/serial_manager/fsl_component_serial_manager.c:1251: undefined reference to Serial_UartInstallTxCallback'
c:/nxp/mcuxpressoide_11.6.0_8187/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.6.0.202112161359/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\linhz\Documents\MCUXpressoIDE_11.6.0_8187\workspace\teensy_hello_world_virtual_com\Debug/../component/serial_manager/fsl_component_serial_manager.c:1254: undefined reference to Serial_UartInstallRxCallback'
I have to admit that I am not so familiar with how the NXP SDK files are structured, and not really an expert on MCU programming in general. It would be great if there is an hint what might be wrong. Thanks a lot!

And this example project is really helpful for me as I start to explore more complex MCUs with the Teensy!

@linhz0hz
Copy link
Author

I think for some reason three files fsl_component_serial_port_uart.c, fsl_adapter_lpuart.c, fsl_lpuart.c are excluded from the build in eclipse. After going to the properties of each file and tick off the exclusion, it compiles again. This is strange. I would leave the information here for others.

@crane-soft
Copy link
Owner

The components for the uart device are originally not used for the usb virtual comport project.
Only for the iled blinky project the uart is enabled.
In the lwip_http project there are two build configurations one for debug output over uart and another over usb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants