diff --git a/pages/common/st-flash.md b/pages/common/st-flash.md new file mode 100644 index 0000000000..957bb89306 --- /dev/null +++ b/pages/common/st-flash.md @@ -0,0 +1,15 @@ +# st-flash + +> Flash binary files to STM32 ARM Cortex microcontrollers. + +- Read 4096 bytes from the device starting from 0x8000000: + +`st-flash read {{firmware}}.bin {{0x8000000}} {{4096}}` + +- Write firmware to device starting from 0x8000000: + +`st-flash write {{firmware}}.bin {{0x8000000}}` + +- Erase firmware from device: + +`st-flash erase` diff --git a/pages/common/st-info.md b/pages/common/st-info.md new file mode 100644 index 0000000000..3cfe37a407 --- /dev/null +++ b/pages/common/st-info.md @@ -0,0 +1,15 @@ +# st-info + +> Provides information about connected STLink and STM32 devices. + +- Display amount of program memory available: + +`st-info --flash` + +- Display amount of sram memory available: + +`st-info --sram` + +- Display summarized information of the device: + +`st-info --probe` diff --git a/pages/common/st-util.md b/pages/common/st-util.md new file mode 100644 index 0000000000..4cef470cd2 --- /dev/null +++ b/pages/common/st-util.md @@ -0,0 +1,15 @@ +# st-util + +> Run GDB (GNU Debugger) server to interact with STM32 ARM Cortex microcontoller. + +- Run GDB server on port 4500: + +`st-util -p {{4500}}` + +- Connect to GDB server: + +`(gdb) target extended-remote {{localhost}}:{{4500}}` + +- Write firmware to device: + +`(gdb) load {{firmware.elf}}`