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

Support for nRF52 without soft devices #460

Open
edwardalee opened this issue Jul 1, 2024 · 0 comments
Open

Support for nRF52 without soft devices #460

edwardalee opened this issue Jul 1, 2024 · 0 comments
Assignees
Labels
enhancement Enhancement of existing feature

Comments

@edwardalee
Copy link
Contributor

The support for bare-metal code generation for nRF52 currently only works when soft devices are used. This is not unreasonable because the wireless capabilities of the nRF52 are unlikely to work without the soft devices. Nevertheless, for generality, there should be an option in the target's platform attribute to not use a soft device. In particular, the lf_nrf52_support.c uses functions sd_nvic_critical_region_exit and sd_nvic_critical_region_enter that will not be available if a soft device is not used, resulting in a linker error on the generated code. Those functions will need to be replaced with the lower-level ARM function __enable_irq and __disable_irq.

@edwardalee edwardalee added the enhancement Enhancement of existing feature label Jul 1, 2024
@edwardalee edwardalee self-assigned this Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing feature
Projects
None yet
Development

No branches or pull requests

1 participant