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

buttonless app jlink dfu

I try create my own app based on buttonless app. I've tested dfu over the air it's ok. But for that I need to firmware bootloader (with security key) before. It's ok for production, but while I work on my app I need to firmware chip very many times and of course do it through jlink debugger much more convenient. With previous SDK versions I could do it, I just didn't load the bootloader into chip and it's ok, now I got error in log "no bootloader", if I load BL I can't load my app via Jlink. What's the best way of doing my thing?

  • sorry for long delay. After I commented part of code where we check crc ( if (crc != s_dfu_settings.bank_0.image_crc)), I can program app via Jlink. But I loose ability to do it wirelessly via smartphone. Now after flash bootloader I can see only led 2 on my nrf52dk and can't see now DfuTarg while scanning in nrfconnect. Is it ok? After I uncommented crc checking part of code, I can see both leds and DfuTarg advertises me.

    About change crc to 0. if I understood correct we need to change that in settings file generate based on our_app.hex file so in my case it's 0x82461E8A. I've found it in settings.hex. How I have to change it to 0? I tried just replase 82461E8A to 00000000. After that I was not able to merge it with bootoader.hex

  • Hi @Stas, If I understand your first post correctly you simply want to develop and debug your code without the bootloader in place?

    You say that you get the message "no bootloader" when you run your app. If my memory serves me right I believe you will see this message if you try to add the dfu ble service (ble_dfu) without having a valid bootloader in flash. If all this is the case, would it be possible for you to simply avoid adding the dfu service while developing and debugging?

Related