blackmagic/src/target/flashstub
Piotr Esden-Tempski 31adb2f94d misc: Cleanup include guards.
Using underscore prefixes is not allowed for include guards as all
defines starting with underscore are reserved. At the same time made
file ends and spacing and style of include guards consistent in all
headers.

The new style of include guards also includes the directory of the
include file relative to `src` directory to prevent potential future
issues where we might end up with a name clash across directories.
2022-08-23 15:06:21 -04: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: Cleanup include guards. 2022-08-23 15:06:21 -04: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.