blackmagic/src/target/flashstub
dragonmux c530bd077b misc: Switched to using C11 2022-07-18 20:59:15 -07:00
..
Makefile nrf51: Use buffered direct write to flash. 2019-03-10 21:45:47 +01:00
README.md Move flash stubs to target directory and update readme. 2016-07-13 08:31:09 +12:00
efm32.c [efm32] add new devices PG12B, JG12B, GG11B, TG11B, GG12B 2019-12-08 15:55:12 +01:00
efm32.stub [efm32] add new devices PG12B, JG12B, GG11B, TG11B, GG12B 2019-12-08 15:55:12 +01:00
lmi.c Move flash stubs to target directory and update readme. 2016-07-13 08:31:09 +12:00
lmi.stub Move flash stubs to target directory and update readme. 2016-07-13 08:31:09 +12:00
nrf51.stub nrf51: Replace stub with C version and pass params in registers 2017-05-03 13:10:01 -07:00
stub.h misc: Switched to using C11 2022-07-18 20:59:15 -07:00

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.