boards: arm: 96b_wistrio: Use stm32flash runner

Now that stm32flash runner is available, let's use it.

Signed-off-by: Kwon Tae-young <tykwon@m2i.co.kr>
This commit is contained in:
Kwon Tae-young 2020-01-10 10:39:52 +09:00 committed by Ioannis Glaropoulos
parent ca795434c9
commit f2c345a407
2 changed files with 10 additions and 16 deletions

View file

@ -0,0 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
board_runner_args(stm32flash "--baud-rate=115200" "--start-addr=0x08000000")
include(${ZEPHYR_BASE}/boards/common/stm32flash.board.cmake)

View file

@ -123,16 +123,6 @@ The default SPI mapping is:
Programming and Debugging
*************************
Building
========
Here is an example for building the :ref:`hello_world` application.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: 96b_wistrio
:goals: build
Flashing
========
@ -161,13 +151,12 @@ More detailed information on activating the ROM bootloader can be found in
Chapter 29 of Application note `AN2606`_. The ROM bootloader supports flashing
via UART, and I2C protocols.
For flashing, `stm32flash`_ command line utility can be used. The following
command will flash the ``zephyr.bin`` binary to the WisTrio board using UART
and starts its execution:
Here is an example for building and flashing the :ref:`hello_world` application using `stm32flash`_ command line utility:
.. code-block:: console
$ stm32flash -w zephyr.bin -v -g 0x08000000 -e 255 /dev/ttyUSB0
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: 96b_wistrio
:goals: build flash
Using SWD debugger:
-------------------