nRF5340 : How to transfer custom data between app core and net core using IPC when Bluetooth also ON

Hello,

Currently In nRF5340DK, we are trying to transfer custom data(ver. info) between app core and net-core.

With IPC_service, we can transfer/communicate between app-core and net-core. But when we add ipc_service logic into BT enabled code, it did not work. With BT enabled code, didn't receive ep(ipc0) bound/received callback.

Could you please help us with communication between app & net core for nRF5340DK ?

Parents Reply
  • OK, thanks for confirming. I've created an example now to demonstrate how you can retrieve the version number from the fw_info struct (Firmware information) located in the net core image. The example is included below. 

    Demo project

    read_fw_info_from_netcore_demo.zip

    For this example I ended up using the Remote procedure call library (nRF RPC). This allowed me to create a callable function for the app core to read the version number while the BLE stack is enabled. It can also be expanded to include more functions if needed.

    Code used to read the FW version number from the main app:

    	...
    	
    	printk("Advertising successfully started\n");
    
    	err = netcore_fw_version_get(&version_number);
    	if (err) {
    		printk("Failed to read FW version from network core. (%d)\n", err);
    	}
    	else {
    		printk("HCI RPMsg FW version: %d\n", version_number);
    	}
    	...

    The returned version number will correspond to the value of the CONFIG_FW_INFO_FIRMWARE_VERSION symbol used in the HCI RPMsg build.

    Best regards,

    Vidar

     

Children
Related