Hello Nordic Community,
I am currently working on developing and programming applications for the nRF5340 using C, and I've encountered some challenges with cross-compilation that I hope to get some assistance with.
My development setup includes a non-ARM MacBook Pro. As part of my code, I've included some ARM assembly snippets. To compile my code, I initiated the shell with
nrfutil toolchain-manager launch --shell
However, I am facing difficulties in performing ARM cross-compilation. My first question is: Does the nrfutil toolchain-manager
environment include a specific cross-compilation toolchain for ARM? If so, are there any additional configurations or steps that I might be missing to enable successful compilation for the nRF5340?
Additionally, I observed an interesting scenario. In an attempt to troubleshoot, I removed the ARM assembly parts from my code. During compilation, I noticed that __arm__
is automatically defined, even though my MacBook Pro does not have an ARM processor. I am puzzled about why this would be the case and am unable to locate where this definition is being set. Could someone please explain why __arm__
is defined in a non-ARM environment and how I might address any related issues?
Any insights or guidance on these matters would be greatly appreciated. I am eager to resolve these issues and continue my work on the nRF5340 platform.
Thank you in advance for your support!
Best regards,
Runqi