Hello,
My use case is the exact same use case as this forum post. I'd like to run BLE and Radio Test sample on the nRF5340. The device would be in 2 modes:
- BLE
- Radio Test (customized. I don't do shell, just enable the radio test mode and it'll do a `start_tx_carrier` continuously until I disable it).
The device will never have to run these 2 at the same time.
One of the answers:
If the use case is to use BLE only and disable BLE before using radio test mode, then you do not need MPSL. In that sense, it is bit easier to integrate the two features as they are then mutually exclusive for chip resources.
That sounds ideal, but I’m not sure how to wire this up on nRF5340 with sysbuild. I’m moving from single-core nRF52840 to nRF5340 and I understand sysbuild will build multiple images. When I enable CONFIG_BT=y on the application core, the network core automatically brings in the Bluetooth Controller(HCI over RPMsg).
What I’m confused about:
- Where/how should I add the Radio Test logic so that the NET core can run either the BLE controller or Radio Test?
- Do I extend the auto-provided IPC image with extra code (copy-paste)?
- Or should I write my own RPMsg for both bluetooth and custom radio test?
- My application core must decide when to switch and also send parameters/data to the NET core. I cannot move the whole app to net core because I need to send data/parameters to the netcore. Hence my confusion with (1).
If there's a sample that does this or I can use as a starting point, please point me to the right direction. Any help is appreciated. Thank you so much.