This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340 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.

Parents
  • Simon ,thank you .

         the way you have tested of DFU maybe only load the image of \ncs\v1.4.0\zephyr\samples\subsys\mgmt\mcumgr\smp_sv to the nrf5340dk board . when you want to run  your own project ,you must first download  the  smp_sv  image to nrf5340dk board  ,later palce your own project image in a phone using this method to  loaddown to nrf5340dk board  .

        but a project   always need to revise . improve ,debug , when debugging ,i should directly download new image to nrf5340dk using debug tool , rather than  place new image in a phone .to use the method you have told to load in nrf5340dk board. 

       how  to creat a project  that   not only can update image using a phone app through bluetooth as you have told , but also can update image through debug tools like PCA10095 ?

  • zhouhaifang said:
       how  to creat a project  that   not only can update image using a phone app through bluetooth as you have told , but also can update image through debug tools like PCA10095 ?

    If you're struggling with programming the chip, you may have to recover it first, check out Readback protection for instructions how to do it.

    If you are programming a BLE application, you need to program the network core manually first, check out 2.2 nRF5340 DK-->2.2.1 Build a BLE example for instructions how to do this

    You can flash the image using the debugger/programmer in many different ways:

    • Segger Embedded Studio: Simply click 'Build and run'

    • West
      • cd <name of build folder>
      • west flash
        • If you're programming a ble application, the network core will automatically get programmed with the appropriate firmware
    • nrfjprog:
      • cd <name of build folder>/zephyr
      • Single image build: nrfjprog --program zephyr.hex --sectorerase 
      • Multi image build: nrfjprog --program merged.hex --sectorerase 

    Best regards,

    Simon

Reply
  • zhouhaifang said:
       how  to creat a project  that   not only can update image using a phone app through bluetooth as you have told , but also can update image through debug tools like PCA10095 ?

    If you're struggling with programming the chip, you may have to recover it first, check out Readback protection for instructions how to do it.

    If you are programming a BLE application, you need to program the network core manually first, check out 2.2 nRF5340 DK-->2.2.1 Build a BLE example for instructions how to do this

    You can flash the image using the debugger/programmer in many different ways:

    • Segger Embedded Studio: Simply click 'Build and run'

    • West
      • cd <name of build folder>
      • west flash
        • If you're programming a ble application, the network core will automatically get programmed with the appropriate firmware
    • nrfjprog:
      • cd <name of build folder>/zephyr
      • Single image build: nrfjprog --program zephyr.hex --sectorerase 
      • Multi image build: nrfjprog --program merged.hex --sectorerase 

    Best regards,

    Simon

Children
No Data
Related