zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.71k stars 6.54k forks source link

mimxrt1010_evk: soc/nxp/imxrt/imxrt10xx/soc.c:364: undefined reference to `SystemInit' #78961

Closed galexite closed 3 weeks ago

galexite commented 3 weeks ago

Describe the bug

I'm unable to build the 'hello_world' example for the mimxrt1010_evk board.

I get the following error at link time:

/Users/georgewhite/.local/zephyr-sdk-0.16.8/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/libzephyr.a(soc.c.obj): in function `soc_reset_hook':
/Volumes/Passport/Repositories/zephyrproject/zephyr/soc/nxp/imxrt/imxrt10xx/soc.c:364: undefined reference to `SystemInit'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

To Reproduce

cd zephyr/samples/hello_world
west build -b mimxrt1010_evk -p always

Expected behavior

I expected the hello_world example to build without modification for this board.

Impact

I'm unable to build the hello_world example.

Logs and console output

Environment (please complete the following information):

Additional context

I encountered the issue during my novice attempt at trying to port Zephyr to the Adafruit Metro M7 development board here: https://github.com/galexite/zephyr/tree/galexite/adafruit-metro-m7 ā€“ I thought it was a misconfiguration on my part (though I'm sure there's some to come!).

github-actions[bot] commented 3 weeks ago

Hi @galexite! We appreciate you submitting your first issue for our open-source project. šŸŒŸ

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. šŸ¤–šŸ’™

pdgendt commented 3 weeks ago

No issues on main, is your HAL up to date?

west update hal_nxp
galexite commented 3 weeks ago

Yep, that'll be it, thanks! šŸ¤¦