* DI layout is identified by attempting to read OUI from both layouts * MSC address is passed to flashstub in r3 Retested EZR32LG230 (EZR Leopard Gecko M3) Tested EFR32BG13P532F512GM32 (EFR Blue Gecko) Achieves aims of PR #264 (I think) Thanks to @dholth and @ryankurte for inspiration Fixes Issue #226
Flash Stubs
These are simple routines for programming the flash on various Cortex-M
microcontrollers. The routines should be provided with the naked attribute
as the stack may not be available, and must not make any function calls.
The stub must call stub_exit(code)
provided by stub.h
to return control
to the debugger. Up to 4 word sized parameters may be taken.
These stubs are compiled instructions comma separated hex values in the
resulting *.stub
files here, which may be included in the drivers for the
specific device. The drivers call these flash stubs on the target by calling
cortexm_run_stub
defined in cortexm.h
.