Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Not able to flash signed firmware through pc-nrf-dfu-js nodejs library.

We're building a cryptocurrency hardware wallet. And we're using the secure bootloader provided by nrf5 SDK, to only upload signed firmwares to the device. We are using nodejs to build all our applications, so we're using the pc-nrf-dfu-js nodejs library to upload the firmware. As the library was not working and it had some issues, we modified it. The link to the modified version is given below 

https://github.com/gauravggg21/nrf-dfu-modified/blob/master/nrf-dfu.cjs.js

One of our signed firmwares got flashed, but the other is being stuck on 51%. And we don't know what else to do. 

Any help would be greatly appreciated.

Related