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

DFU on SDK v14.0 or v15.1 question, doing everything by the book but can't get it to work.

Hi All, I have tried to follow DFU documentation as well as many other things but nothing really worked well, I have some results but still cannot make my own code to be updatable wirelessly. I also studied questions and answers others had here on this forum but it looks like either not many people tried that or I don't know why but it is a bit too dry on this subject, I can be wrong, I hope I am wrong, if there any better tutorial on how to make it work can someone please point me to it?

Here is what I have: our current code of the application that we have is build with SDK 14.0, S132 v5.0.01, everything working fine, the goal is to either make FDU working with same SDK version, or to migrate everything to SDK 15.1 and s132 v6.0.0. 

To start somewhere to see if I can get DFU to work  I started with SDK 15.1, if I take DFU example from sdk and use only provided HEX images there and burn soft device and provided bootloader image, seem to work, I also used standalone nrfutil.exe to generate private key, then I took their provided "hrs" hex file and was able go generate .zip package and everything worked fine. I was able to connected in nRF Connect and uploaded the package just fine.

However, when I tried to generate another test, for example I tried to take Nordic BLE UART example and generated HEX file and when I tried to use nrfutil.exe to make .zip package it does make it but it won't work in nRF connect, it will say "invalid object". Per my research, that could happen because an example bootloader and example code images were made on another machine and since my code was made on my machine they just don't work together, so I need to make my own bootloader. The example code in DFU example is not compiling, it gives about 32 errors, so I cannot use that, then I tried to use their bootloader image and generate my settings hex, then merge them with mergehex command, etc. Still no luck. I am stuck, I really need to make it to work.

Can some one please suggest proper sequence of steps to make DFU to work on SDK 14 o SDK 15 with s132  so I can take our program and make it uploadable in nRF connect?

Thank you in advance.

Parents Reply Children
No Data
Related