bfeb6f0db9 | ||
---|---|---|
.. | ||
Makefile | ||
README.md | ||
efm32.c | ||
efm32.stub | ||
lmi.c | ||
lmi.stub | ||
nrf51.c | ||
nrf51.stub | ||
stm32f1.c | ||
stm32f1.stub | ||
stm32l4.c | ||
stm32l4.stub | ||
stub.h |
README.md
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
.