nRF52810 boot loader over UART from external mcu

Hello,

Currently using a custom board that has the nRF52810 onboard along side an ESP32. I am wanting to update the firmware for the nrf chip from the ESP32 over UART. The idea is the ESP32 will make a GET request and transfer the firmware over.

I am aware of the DFU examples provided and so and do not think there is one for UART and between two micros. I am thinking of implementing a custom boot loader. Is my thinking correct on the matter to go about this by creating a child image and having the boot loader on there? If so I don’t particularly understand the documentation around a multi image build or how to go about implementation.

Currently as well I am using the Bluetooth EnOcean example for the PTM switches.

Is this the right way forward for this application?

Thanks

  • Hello,

    I am not sure why you are considering a custom bootloader here. Have you seen the sample Central SMP client? See this sample where my colleague is doing DFU between two nRF DKs.

    Kind Regards,

    Abhijith

  • Hi Abhijith,

    Thank you for your reply, apologies, struggling to understand and was not familiar with that sample nor did not find it previously. 

    I was considering one as was unsure / if possible (I assume so) that would be able to place the nRF52810 into bootloader mode, from a command via the esp32 and then the esp32 would feed the nRF52810 uart data so it will be able to overwrite its existing application. Apologies as I am relatively new, would this example be tweakable to achieve this?

    Thank you again

  • Hello,

    Not exactly like what you explained. The sample I mentioned here (smp_client) expects a board running with smp_server. Please go through my colleague's sample and let me know if this will be suitable for your use case.

    Kind Regards,

    Abhijith

  • Hello again,

    Thank you I have had a read through and I also found this ticket submitted before: Perform DFU to nRF52840 from ESP32

    Seems to be a similar situation I am in, has that changed now in regards to the protocol that could be implemented or available? Have to use the arduino framework for now for the esp32, but will be transitioning towards the IDF in a period of time.

  • Hello,

    Darrenaw said:
    Seems to be a similar situation I am in, has that changed now in regards to the protocol that could be implemented or available?

    My colleague´'s sample is built with an old version of nRF connect SDK, so following the Central SMP_client sample I pointed in my first response will be a better idea.

    Darrenaw said:
    Have to use the arduino framework for now for the esp32, but will be transitioning towards the IDF in a period of time.

    I have never worked with ESP32 before so I am not familiar with the things you mentioned here. I can help you with the nRF side. Sorry as I couldn't have anything more to share on this.

    Kind Regards,

    Abhijith

Related