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

samples: application_development: code_relocation_nocopy: sample.application_development.code_relocation_nocopy fails #71511

Closed
katgiadla opened this issue Apr 15, 2024 · 0 comments · Fixed by #71590
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx

Comments

@katgiadla
Copy link
Contributor

Describe the bug
The test sample.application_development.code_relocation_nocopy fails.

Observed for nrf5340dk/nrf5340/cpuapp.

To Reproduce
Steps to reproduce the behavior:

  1. have nrf5340dk/nrf5340/cpuapp connected
  2. go to your zephyr dir
  3. call ./scripts/twister -T samples/application_development/code_relocation_nocopy -p nrf5340dk/nrf5340/cpuapp --device-testing --device-serial /dev/ttyACM1 -v --inline-logs
  4. See console output with error

Expected behavior
Valid console output

Impact
Not clear

Logs and console output

/toolchains/d738e9cb55/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a(reset.S.obj): in function `__start':
zephyr/zephyr/twister-out/nrf5340dk_nrf5340_cpuapp/tests/net/mld/net.mld/../../../../../../zephyr/arch/arm/core/cortex_m/reset.S:97: undefined reference to `z_arm_platform_init'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Environment (please complete the following information):

  • OS: Ubuntu 20.04.1 LTS
  • Toolchain Zephyr SDK 0.16.5
  • Commit SHA or Version used: v3.6.0-2418-gb573f447f04f
@katgiadla katgiadla added the bug The issue is a bug, or the PR is fixing a bug label Apr 15, 2024
@nordicjm nordicjm self-assigned this Apr 15, 2024
@nordicjm nordicjm added the platform: nRF Nordic nRFx label Apr 15, 2024
57300 added a commit to 57300/zephyr that referenced this issue Apr 17, 2024
Fixes zephyrproject-rtos#71511
Follow-up to zephyrproject-rtos#70977

Update the approach by moving the `PROVIDE` directive to a separate
linker script added using `zephyr_linker_sources()`. This makes the
change more likely to propagate to existing samples which are using
CONFIG_CUSTOM_LINKER_SCRIPT.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
fabiobaltieri pushed a commit that referenced this issue Apr 19, 2024
Fixes #71511
Follow-up to #70977

Update the approach by moving the `PROVIDE` directive to a separate
linker script added using `zephyr_linker_sources()`. This makes the
change more likely to propagate to existing samples which are using
CONFIG_CUSTOM_LINKER_SCRIPT.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
SebastianBoe pushed a commit to SebastianBoe/zephyr that referenced this issue Apr 24, 2024
Fixes zephyrproject-rtos#71511
Follow-up to zephyrproject-rtos#70977

Update the approach by moving the `PROVIDE` directive to a separate
linker script added using `zephyr_linker_sources()`. This makes the
change more likely to propagate to existing samples which are using
CONFIG_CUSTOM_LINKER_SCRIPT.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
(cherry picked from commit f16b33e)
jman168 pushed a commit to Gator-Motorsports/zephyr that referenced this issue Apr 25, 2024
Fixes zephyrproject-rtos#71511
Follow-up to zephyrproject-rtos#70977

Update the approach by moving the `PROVIDE` directive to a separate
linker script added using `zephyr_linker_sources()`. This makes the
change more likely to propagate to existing samples which are using
CONFIG_CUSTOM_LINKER_SCRIPT.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
markaj-nordic pushed a commit to markaj-nordic/zephyr that referenced this issue May 6, 2024
Fixes zephyrproject-rtos#71511
Follow-up to zephyrproject-rtos#70977

Update the approach by moving the `PROVIDE` directive to a separate
linker script added using `zephyr_linker_sources()`. This makes the
change more likely to propagate to existing samples which are using
CONFIG_CUSTOM_LINKER_SCRIPT.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
(cherry picked from commit f16b33e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx
Projects
None yet
2 participants