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

Keil MDK Compilation for CM0 core reports L6286E: Relocation #REL:0 in portasm.o #1130

Closed
TomasGalbickaNXP opened this issue Aug 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@TomasGalbickaNXP
Copy link
Contributor

Describe the bug

When building portasm.c after update with adding MPU port see commit bellow:
345a86d

The build with Keil MDK reports following error.

Error: L6286E: Relocation #REL:0 in portasm.o(.text.SVC_Handler) with respect to vPortSVCHandler_C. Value(0x19dc) out of range(-0x800 - 0x7fe) for (R_ARM_THM_JUMP11)

Target

  • Development board: FRDM-K32L3A6, CM0 - In general any CM0 core
  • Instruction Set Architecture: Cortex-M0
  • IDE and version: uVision V5.38, MDK Professional V5.38,
  • Toolchain and version: ARMClang.exe V6.19 for Windows or ArmCompilerforEmbedded6.22 - ARMClang 6.22.0 for Linux

Host

  • Host OS: Linux, Windows
  • Version: Ubuntu 22.04

To Reproduce
git clone https://github.com/TomasGalbickaNXP/freertos-port-cm0-core-issue.git
Checkout the Example with added CM0 MPU port.
git checkout 40af92d06408450e11ca10ad17cd578760fd861a
Open MDK Project and build. It will fail with error reported above.
Checkout fix
git checkout 72a9d6246277ae32594bab69fef66c6e13af3cd1
Open MDK Project and build.
The build reports no Errors.

Expected behavior
The linking step reports no Errors.

@felicityzhao9
Copy link
Member

Hi @TomasGalbickaNXP, thank you for notifying us about your issue and pointing out the bug. We’ll include it in our queue and work on a solution shortly.

@TomasGalbickaNXP
Copy link
Contributor Author

Hello, issue si being solved in this PR #1131.

@aggarg aggarg closed this as completed Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants