04-29-2022 08:19 PM
Hi guys,
I've made a mistake and erased the bootloader from my brand new Application Board 3.0 with J-link while I was trying to debug my firmware. Could you please help me with this? Is there a .bin or .hex file in COINES SDK? How do I flash the bootloader?
Thanks!
Hugo
Solved! Go to Solution.
05-03-2022 11:18 PM
Hi Hlopes,
There is bootloader update in \COINES\v2.6.0\firmware\app3.0\bootloader_update
Thank you.
05-04-2022 03:24 PM
As of COINES v2.6, only bootloader update package is available. Hence, no way to restore the board to original state. You can take a flash memory image of another Application Board 3.0 and apply on yours.
I have created a HEX image of my APP3.0 board memory - Bosch_Sensortec_APP3.0_board_image.hex
# Write APP3.0 board image
nrfjprog -f nrf52 --program Bosch_Sensortec_APP3.0_board_image.hex --sectorerase --verify
# Write Bootloader start address 0xF0000 to UICR.BOOTLOADERADDR(0x10001014)
nrfjprog -f nrf52 --memwr 0x10001014 --val 0x000F0000
05-04-2022 03:32 PM
All done!
Thank you so much!
04-23-2023 09:19 PM
Is there a way to do this without jlink. I just have a usb connection and accidentally erased the firmware when loading a example to memory. I used target=flash instaed of target=ram. Thank you for your help in advance.