Automatically reading .HEX file from USB drive

Hello, everyone

I've been doing a project using Arduino UNO. I connected a USB Module (CH376S) to it, and my objective now is to put a .HEX file in an USB drive and, connecting it to the USB Module, it would automatically recognize the file name and flash it on to the Arduino UNO.
I've been researching for the past week and have not found anything on how to do this, so I'd appreciate if someone her could help me with this problem.

https://github.com/JAndrassy/ArduinoOTA/blob/master/examples/Advanced/SD2Flash2BootAVRHex/SD2Flash2BootAVRHex.ino

I have a version for CH376S, but I can't share it.. It is not my code.

Edit: sorry, it is possible that it will not work on Uno. and it requires to change the bootloader.

Welcome to the forum

Have you tried searching this forum for CH376S ?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.