From: Fabien Le Mentec Date: Sun, 16 Oct 2011 20:36:53 +0000 (-0500) Subject: [fix] missing stlink_fwrite_flash decl X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=27cbec5d271d7479ec1a54a05c901c1fd01c1041;p=fw%2Fstlink [fix] missing stlink_fwrite_flash decl --- diff --git a/TODO b/TODO index d715eb0..4d1929c 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,7 @@ . flash writing is not working from GDB +add a standalone application, flash/ + +. add a startup.S based example . remove libsg dependency using: https://github.com/afaerber/stlink/tree/master/libstlink diff --git a/src/stlink-common.h b/src/stlink-common.h index 6110875..cb6c6cc 100644 --- a/src/stlink-common.h +++ b/src/stlink-common.h @@ -211,6 +211,7 @@ extern "C" { // unprocessed int stlink_erase_flash_mass(stlink_t* sl); int stlink_write_flash(stlink_t* sl, stm32_addr_t address, uint8_t* data, unsigned length); + int stlink_fwrite_flash(stlink_t *sl, const char* path, stm32_addr_t addr); // PUBLIC uint16_t stlink_chip_id(stlink_t *sl);