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 very much!!!

     I am testing your suggestion .neither using  git-bash.exe nor  using SEGGER Embeedded studio in v1.5.1 toolchain folder ,include a header file always is a tough thing to me. results of compile always are  like below shortcut:  . every time when i encount this situation,i alway add a absolute path . in this compounded  peripheral_ uart project ,i must add os_mgmt.c  smp_bt.c and img-mgmt.c in project ,later found there is many other c files to support this project using  this method . is there a few techniques i do not know? 

     I change project prj.conf same to  prj.conf your modified,delete all sources file i added to the project in CMakeLists.txt .only a main.c in project . this main.c file i changed same as you told .i use git-bash.exe in v1.5.1 toolchain folder and west build -b nrf5340dk_nrf5340_cpuapp -d build_nrf5340dk_nrf5340_cpuapp -p ,below is the build result shortcut: ,there is   No such file or directory error

Reply
  • Simon thank you very much!!!

     I am testing your suggestion .neither using  git-bash.exe nor  using SEGGER Embeedded studio in v1.5.1 toolchain folder ,include a header file always is a tough thing to me. results of compile always are  like below shortcut:  . every time when i encount this situation,i alway add a absolute path . in this compounded  peripheral_ uart project ,i must add os_mgmt.c  smp_bt.c and img-mgmt.c in project ,later found there is many other c files to support this project using  this method . is there a few techniques i do not know? 

     I change project prj.conf same to  prj.conf your modified,delete all sources file i added to the project in CMakeLists.txt .only a main.c in project . this main.c file i changed same as you told .i use git-bash.exe in v1.5.1 toolchain folder and west build -b nrf5340dk_nrf5340_cpuapp -d build_nrf5340dk_nrf5340_cpuapp -p ,below is the build result shortcut: ,there is   No such file or directory error

Children
Related