0

is it possible to Flash firmware in nrf51422 from another MCU over UART interface?

pranay.dhuri gravatar image

asked 2018-01-12 06:32:03 +0100

Hi there,

I want to flash nrf51 firmware from another MCU which is connected to nrf51 with UART interface. I have seen dual bank serial bootloader examples, in that firmware is flashed over uart by using utility tools...

I need this to be happen from MCU connected to nrf51, which will receive binary for nrf51 also and then it should be able to flash that in nrf51.

edit retag flag offensive close delete report spam

Comments

So is your question just "Is it possible to flash firmware to nRF5x chips from another MCu over UART?" - which obvious answer is YES - or you are asking "will someone do this for me"? If you have serial bootloader which supports UART then you should just use the bootloading protocol to start the procedure, transport the binary and kick start the actual FW swap.

endnode ( 2018-01-12 08:33:19 +0100 )editconvert to answer

Thanks @endnode, and yes I was seeking for the more details, where can i get the details about Nrf51's booatloading protocol, to initiate update from another MCU (may be ESP8266)

Pranay ( 2018-01-12 09:06:52 +0100 )editconvert to answer

That depends on where you got the bootloader;) The generic one from Nordic nRF5 SDK? Which exact version and source code files you use?

endnode ( 2018-01-12 09:09:11 +0100 )editconvert to answer

Ever heard about Nordic Infocenter? Here is part with bootloader examples, there should be all you need.

endnode ( 2018-01-12 09:10:25 +0100 )editconvert to answer

I am using nRF5_SDK_11.0.0. The examples on serial bootloader in SDK uses ZIP files and python script (nrfutil) to flash firmware over uart

Pranay ( 2018-01-12 11:01:48 +0100 )editconvert to answer

1 answer

Sort by » oldest newest most voted
0
hungbui gravatar image

answered 2018-01-12 14:40:15 +0100

@Pranay: We don't have example of using an MCU to act as DFU Master yet. You may need to implement that on your own. The protocol is available on our info center here.

This is one example of SPI DFU update for SDK v8.0, the DFU master is included.

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

User menu

    or sign up

Recent questions

Question Tools

2 followers

Stats

Asked: 2018-01-12 06:32:03 +0100

Seen: 140 times

Last updated: jan. 12