How can I read and/or write registers belonging to the Network core from the application core. I would like to do it without modifying the hci_rpmsg that is built by default. Is there a hci api to do this?
How can I read and/or write registers belonging to the Network core from the application core. I would like to do it without modifying the hci_rpmsg that is built by default. Is there a hci api to do this?
But that replace the entire hci_rpmsg child image, in fact that sample doesn't even use the application core. What we need is to use the current hci_rpmsg image in the network core and add the capabiliy to modify the registers from the Application core.
Where's the hci_rpmsg source code?
How can we create a project that compiles a custom child image?
nvelozsavino said:Where's the hci_rpmsg source code?
zephyr/samples/bluetooth/hci_rpmsg is the location.
nvelozsavino said:How can we create a project that compiles a custom child image?
First, open a command prompt in the build folder of the network sample and enter the following command to erase the flash memory of the network core and program the network sample:
nrfjprog -f NRF53 --coprocessor CP_NETWORK --program zephyr/zephyr.hex --chiperase
Then navigate to the build folder of the application sample and enter the following command to erase the flash memory of the application core and program the application sample:
nrfjprog -f NRF53 --program zephyr/zephyr.hex --chiperase
Finally, reset the development kit:
nrfjprog --pinreset
You can build app core and net core separately and flash with nrfjprog.
Regards,
Jonathan