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.