Skip to content

Conversation

hakonfam
Copy link
Contributor

See last commit message for instructions on how to use BLE with IRONside v22.0.0+8

hakonfam added 4 commits June 5, 2025 10:04
Ref: NCSDK-NONE
Signed-off-by: Håkon Amundsen <[email protected]>
Ref: NCSDK-NONE
Signed-off-by: Håkon Amundsen <[email protected]>
The canpll IRQ triggers a fault when being allocated.
No need for can in this sample, so remove it.

Ref: NCSDK-NONE
Signed-off-by: Håkon Amundsen <[email protected]>
The file my_periphconf.c is generated using nrf-regtool v9.2.0rc1.
To generate an equivalent file for any project, perform the following:

- Ensure that IRONside version is correct
-> nrfutil device x-read --direct --address 0x2f88fd04 --bytes 4 \
   --traits jlink
  # Expected output (22.0.0+8):
  # 0x2F88FD04: 16000008

- Install nrf-regtool v9.2.0rc1
-> pip3 install --upgrade nrf-regtool==9.2.0rc1

- Perform the cmake stage of building the sample you want to port to IRONside
  for NON iron variant
-> west build -d ~/ncs/build_app -b nrf54h20dk/nrf54h20/cpuapp --cmake-only \
   ~/ncs/nrf/samples/bluetooth/peripheral_rscs --pristine

- Input all generated uicr hex files to the nrf-regtool migrate command.
  Note that the output file is stored in the source directory for the
  target sample.
-> PYTHONPATH="$(west topdir)/zephyr/scripts/dts/python-devicetree/src" \
   nrf-regtool uicr-migrate  \
   --uicr-hex-file ~/ncs/build_app/peripheral_rscs/zephyr/uicr.hex \
   --uicr-hex-file ~/ncs/build_app/ipc_radio/zephyr/uicr.hex \
   --edt-pickle-file ~/ncs/build_app/peripheral_rscs/zephyr/edt.pickle \
   --output-periphconf-file \
   ~/ncs/nrf/samples/bluetooth/peripheral_rscs/src/my_periphconf.c

- MANUAL STEP: Update the samples CMakeLists.txt to include the
  'my_periphconf.c' file:
-> cat ~/ncs/nrf/samples/bluetooth/peripheral_rscs/CMakeLists.txt
(...)
target_sources(app PRIVATE
  src/main.c
  src/my_periphconf.c # <-- add something like this
)
(...)

- Build the target sample for the iron variant. Note that we need to
  enable an option to boot the radio core for BLE samples.
-> west build -d ~/ncs/build_app -b nrf54h20dk/nrf54h20/cpuapp/iron \
   ~/ncs/nrf/samples/bluetooth/peripheral_rscs --pristine \
   -DCONFIG_SOC_NRF54H20_CPURAD_ENABLE=y

- Invoke west flash the normal way
-> west flash -d ~/ncs/build_app

Ref: NCSDK-NONE

Signed-off-by: Håkon Amundsen <[email protected]>
@github-actions github-actions bot added manifest changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. labels Jun 16, 2025
@NordicBuilder
Copy link
Contributor

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
zephyr nrfconnect/sdk-zephyr@c3a2b10 nrfconnect/sdk-zephyr#2959 nrfconnect/sdk-zephyr#2959/files

DNM label due to: 1 project with PR revision

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@NordicBuilder
Copy link
Contributor

CI Information

To view the history of this post, clich the 'edited' button above
Build number: 1

Inputs:

Sources:

more details

Github labels

Enabled Name Description
ci-disabled Disable the ci execution
ci-all-test Run all of ci, no test spec filtering will be done
ci-force-downstream Force execution of downstream even if twister fails
ci-run-twister Force run twister
ci-run-zephyr-twister Force run zephyr twister
List of changed files detected by CI (0)

Outputs:

Toolchain

Version:
Build docker image:

Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped; ⚠️ Quarantine

  • ❌ Toolchain
  • ❌ Build twister
  • ❌ Integration tests

Note: This message is automatically posted and updated by the CI

@NordicBuilder
Copy link
Contributor

This pull request has been marked as stale because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 7 days. Note, that you can always re-open a closed pull request at any time.

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

Labels

changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. DNM manifest manifest-zephyr Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants