i have look for many DFU examples in NCS1.5.0 , but samples are Abstract ,and can not to start . a ble test app in phone have a menu that can send file to nrf5340 through ble , when ble of nrf5340 receive this file ,file can as a new image.
i have look for many DFU examples in NCS1.5.0 , but samples are Abstract ,and can not to start . a ble test app in phone have a menu that can send file to nrf5340 through ble , when ble of nrf5340 receive this file ,file can as a new image.
Simon thank you!!
i place v1.5.1 directly in diak D ,all error like "can not find files" disappear . I have tested your project . i first load D:\v1.5.1\nrf\samples\bluetooth\peripheral_uart\build\hci_rpmsg\zephyr\merged_CPUNET.hex in nrf5340 net core ,then load merged.hex in nrf5340 app core .run the program ,find that nrf5340 can use BLE send uart data to app .but when app send data to nrf5340 through ble ,nrf5340 reset.
Do the following:
west build -b nrf5340dk_nrf5340_cpuapp -p
nrfjprog --com
and open three terminals with these com ports, the log output will show up in one of themwest flash
You should see the following log:
*** Booting Zephyr OS build v2.4.99-ncs2 *** I: Starting bootloader I: Primary image: magic=unset, swap_type=0x1, copy_done=0*** Booting Zephyr OS build v2.4.99-ncs2 *** I: Starting bootloader I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 I: Boot source: none I: Swap type: none I: Bootloader chainload address offset: 0xc000 *** Booting Zephyr OS build v2.4.99-ncs2 *** Application version 1.0.0 Starting Nordic UART service example
west build -b nrf5340dk_nrf5340_cpuapp -d build_2
*** Booting Zephyr OS build v2.4.99-ncs2 *** I: Starting bootloader I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 I: Boot source: none I: Swap type: none I: Bootloader chainload address offset: 0xc000 *** Booting Zephyr OS build v2.4.99-ncs2 *** Application version 1.0.0 Starting Nordic UART service example *** Booting Zephyr OS build v2.4.99-ncs2 *** I: Starting bootloader I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 I: Secondary image: magic=good, swap_type=0x2, copy_done=0x3, image_ok=0x3 I: Boot source: none I: Swap type: test I: Bootloader chainload address offset: 0xc000 *** Booting Zephyr OS build v2.4.99-ncs2 *** Application version 2.0.0 Starting Nordic UART service example
I did all this and it worked perfectly for me.
Best regads,
Simon
Here is the application in zipped format: peripheral_uart_dfu.zip
Here is the application in zipped format: peripheral_uart_dfu.zip