We would like to use the nRF52840 to upload compiled Arduino firmware in hex file to atmega328p over serial port.
The latest version of the Arduino firmware would be stored on a nRF52840 powered device. This device acts as a charger/reader for smaller devices with atmega328p that are connected to the hub for charging and data exchange. The hub would detect the firmware version on atmega328p and upload a new firmware if needed.
How to do such a firmware uploader on nRF52840? We would need some guidance how to implement this.
Best regards,
Damir