boards/nucleo-l552ze-q: add notes in doc about patched openocd
This commit is contained in:
parent
94e63253d7
commit
bc06a08844
@ -5,14 +5,30 @@
|
|||||||
|
|
||||||
## Flashing the device
|
## Flashing the device
|
||||||
|
|
||||||
The ST Nucleo-L552ZE-Q board includes an on-board ST-LINK V2.1 programmer. The
|
The ST Nucleo-L552ZE-Q board includes an on-board ST-LINK programmer and can be
|
||||||
easiest way to program the board is to use OpenOCD. Once you have installed
|
flashed using OpenOCD.
|
||||||
OpenOCD (look [here](https://github.com/RIOT-OS/RIOT/wiki/OpenOCD) for
|
@note The upstream version of OpenOCD doesn't contain yet support for this board,
|
||||||
installation instructions), you can flash the board simply by typing
|
so the source code version from http://openocd.zylin.com/#/c/5510
|
||||||
|
must be built to be able to flash this board (adapt the configure command with
|
||||||
|
your preferred installation directory):
|
||||||
|
|
||||||
|
```
|
||||||
|
$ git clone https://git.code.sf.net/p/openocd/code openocd
|
||||||
|
$ cd openocd
|
||||||
|
$ git fetch http://openocd.zylin.com/openocd refs/changes/10/5510/5 && git checkout FETCH_HEAD
|
||||||
|
$ ./bootstrap
|
||||||
|
$ ./configure --prefix=<installation directory>
|
||||||
|
$ make -j
|
||||||
|
$ sudo make install
|
||||||
|
```
|
||||||
|
|
||||||
|
Once the patched OpenOCD is built and installed, you can flash the board simply
|
||||||
|
by typing
|
||||||
|
|
||||||
```
|
```
|
||||||
make BOARD=nucleo-l552ze-q flash
|
make BOARD=nucleo-l552ze-q flash
|
||||||
```
|
```
|
||||||
|
|
||||||
and debug via GDB by simply typing
|
and debug via GDB by simply typing
|
||||||
```
|
```
|
||||||
make BOARD=nucleo-l552ze-q debug
|
make BOARD=nucleo-l552ze-q debug
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user