Merge pull request #1075 from alx741/stlink

Stlink: add pages
This commit is contained in:
Agniva De Sarker 2016-09-21 09:45:55 +05:30 committed by GitHub
commit fbac2453be
3 changed files with 45 additions and 0 deletions

15
pages/common/st-flash.md Normal file
View File

@ -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`

15
pages/common/st-info.md Normal file
View File

@ -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`

15
pages/common/st-util.md Normal file
View File

@ -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}}`