-
Notifications
You must be signed in to change notification settings - Fork 32
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
Should build work for frdm_k64f board? #17
Comments
My guess is you need to run There are no special commands for the zephyr-rust build procedure, other than adding this repo to ZEPHYR_MODULES in the project's cmake file, so you'd probably get the same problem building zephyr proper. Could try that as a baseline. |
FWIW, I'm getting similar when I try to build zephyr-rust for any real targets. (can't find nrfx.h for Nordic targets, and fsl_common.h for NXP targets). Non-rust application builds work fine.
|
Update: I was able to fix this error by changing CMakeLists.txt to add Update2: With that change, I was able to write a rust-blinky app (GPIO controlled via a C function pointer) and run it on nrf52840_pca10059! |
ZEPHYR_EXTRA_MODULES should be used when the intention is to add an extra module to those already found by west.
|
I switched the samples to ZEPHYR_EXTRA_MODULES and that does indeed seem to fix the targets that use west modules. That driver example has been around for a while, not sure how I missed that, but thanks everyone! |
So I successfully ran the sample app for BOARD=qemu_cortex_m3 in Qemu with Zephyr v2.1.0. Now I want to switch to my little embedded board supported by Zephyr. So I was expecting
cmake -GNinja -DBOARD=frdm_k64f ..
ninja flash
to work. But instead it fails like this:
Is this expected to work and if yes, how can I fix it?
Thanks in advance
Detlev
The text was updated successfully, but these errors were encountered: