tested on win10, will work on *nix with minor changes. Or it might work right out of the box, I don't know how glob modules behave on *nix.
-
Program runs in constant loop, looking for a specifed filename (.bin) in specified folder.
-
If there is something present (downloaded by mbed online compiler), it beeps (warning beep) and performs action specific to the board. Board recognition is done my mean of searching for known board name in the . You are free to add your own boards cases. When done, beeps (during beep).
-
As a next step it moves the file (shutil package) to the board and beeps (finished beep).