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

NRF52 linker script is incomplete for ARMCC and IAR #7006

Closed
pan- opened this issue May 24, 2018 · 4 comments
Closed

NRF52 linker script is incomplete for ARMCC and IAR #7006

pan- opened this issue May 24, 2018 · 4 comments

Comments

@pan-
Copy link
Member

pan- commented May 24, 2018

Description

The latest softdevice and nordic SDK have introduced a new way of registering event handlers: Event handlers are not registered in RAM at runtime, they are registered in flash at compile time. Unfortunately this mechanism requires some help from the linker script to group events handlers in specific program sections. This is correctly done in GCC linker script (see here) but not done at all with ARMCC or IAR linker scripts. As a result BLE doesn't work properly on those targets when an application is compiled with ARMCC or GCC.

This issue also applies for NRF52840 targets.

Issue request type

[ ] Question
[ ] Enhancement
[X] Bug

@pan-
Copy link
Member Author

pan- commented May 24, 2018

@marcuschangarm Could you review this issue ?

@marcuschangarm
Copy link
Contributor

I didn't find the equivalent sections in the ARMCC and IAR linker script examples so I assumed they weren't necessary. What linker errors are you getting?

@donatieng
Copy link
Contributor

Hi @marcuschangarm, it's a placement issue: the new Nordic SDK places event handlers in a specific linker section. As those sections are not present in the ARMCC and IAR linker scripts, these handlers end up in other sections and the SDK cannot see them (and they therefore never get called).

@ciarmcom
Copy link
Member

ciarmcom commented Jun 1, 2018

ARM Internal Ref: MBOTRIAGE-17

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

No branches or pull requests

5 participants