bldc/blackmagic/target/flashstub
Benjamin Vedder 1161f8417c Added SWD programming support (based on Black Magic Probe) and open loop duty cycle control 2019-03-31 10:49:18 +02:00
..
Makefile Added SWD programming support (based on Black Magic Probe) and open loop duty cycle control 2019-03-31 10:49:18 +02:00
README.md Added SWD programming support (based on Black Magic Probe) and open loop duty cycle control 2019-03-31 10:49:18 +02:00
nrf51.c Added SWD programming support (based on Black Magic Probe) and open loop duty cycle control 2019-03-31 10:49:18 +02:00
nrf51.stub Added SWD programming support (based on Black Magic Probe) and open loop duty cycle control 2019-03-31 10:49:18 +02:00
stub.h Added SWD programming support (based on Black Magic Probe) and open loop duty cycle control 2019-03-31 10:49:18 +02: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.