2024-06-10 08:35 AM
2024-06-10 08:44 AM - edited 2024-06-10 08:45 AM
The ROM based loader is minimally aware, it's not designed for exotic behaviour, or RS485 connectivity.
It can check for a valid location/image in either bank, but you've got no particular management of that.
It would be better if you made a small stub-loader (several KB), placed at the front of each bank, that could test which is the most update and valid image and then fork to that and do the bank-switching where necessary.
The UART protocol is well documented (15+ years), and there's several code examples using it.
For your OWN loader, perhaps pick something robust and standard like X-MODEM, where there is Terminal support via app's generally available to technicians, et al.
For best user experiences be able to code on deployment platforms like Windows, Mac, Linux, etc.