A Bootloader App running on the RP2040 should be easy enough but there are certain design aspects which need to be considered; running parts of it in RAM so the Flash can be erased and written, ensuring the Bootloader App which is presumably held in Flash cannot be overwritten and can always be entered whenever the RP2040 boots up, plus making sure that executables to be uploaded and run are compatible with having this Bootloader App in place.
I would start with a Bootloader App which can merely load stuff to beyond the first 1MB of Flash, get that working then move on from there. In the first instance I'd probably not actually write to Flash, would just check that it would if it were allowed to.
That can be treated as just another RP2040 user program rather than anything special, can be debugged just like any other user program.
So what do you have, what isn't working, and what part of this do you need help with ?
I would start with a Bootloader App which can merely load stuff to beyond the first 1MB of Flash, get that working then move on from there. In the first instance I'd probably not actually write to Flash, would just check that it would if it were allowed to.
That can be treated as just another RP2040 user program rather than anything special, can be debugged just like any other user program.
So what do you have, what isn't working, and what part of this do you need help with ?
Statistics: Posted by hippy — Mon Aug 05, 2024 3:25 pm