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

Flashing a firmware by a nrf52

Dear Nordic team,

Is it possible to flash a nrf52 by using an other nrf52 ? If yes, do you have a sample code ?

Best regards.

Parents
  • Hi Juba,

    Before Nordic support guys answer your question then my brief answer: I believe it's YES and NO. However you are asking for pretty generic JTAG/SWD functionality so you should be able to find some open source project and port it to nRF5x if you really need to. Honestly one would ask why you don't use some existing bootloader and implement bootloading from other MCU over UART/SPI/I2C/whatever else which would save you some time for dealing with SWD commands and timing, but you probably have your reasons...

    Cheers Jan

  • I pointed someone to CMSIS-DAP the other day. That's has a generic bit banging algorithm for SWD in it and it's written by ARM so it works. You just need to strip out the USB driver piece you don't need and you have an SWD driver. As Jan says however you're probably better off using the normal bootloader and resurrecting the serial driver for it, unless you are really space constrained.

Reply
  • I pointed someone to CMSIS-DAP the other day. That's has a generic bit banging algorithm for SWD in it and it's written by ARM so it works. You just need to strip out the USB driver piece you don't need and you have an SWD driver. As Jan says however you're probably better off using the normal bootloader and resurrecting the serial driver for it, unless you are really space constrained.

Children
No Data
Related