boards: nucleo_wl55jc: Fix openocd configuration
'connect_assert_srst' is preventing openocd to connect to the board in debug mode. To enable debug, fix openocd configuration to propose two configurations: - Debug compatible (default) - Sleep mode compatible (commented) Sleep mode compatible configuration should be used when flashing over board's stock firmware. A note has been added in board documentation to detail this. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
6a6c47b619
commit
ad12eef3f6
|
@ -291,6 +291,15 @@ You should see the following message on the console:
|
|||
|
||||
Hello World! arm
|
||||
|
||||
.. Note:
|
||||
|
||||
Nucleo WL55JC board is provided with a stock firmware which demonstrates
|
||||
sleep mode. Unfortunately, default openocd configuration, which is debug
|
||||
compatible, doesn't allow flashing when SoC is in sleep mode.
|
||||
As a consequence, when flashing Nucleo WL55JC board over a stock firmware,
|
||||
please update board's openocd.cfg configuration file to select sleep mode
|
||||
compatible configuration.
|
||||
|
||||
Debugging
|
||||
=========
|
||||
|
||||
|
|
|
@ -4,4 +4,8 @@ transport select hla_swd
|
|||
|
||||
source [find target/stm32wlx.cfg]
|
||||
|
||||
reset_config srst_only srst_nogate connect_assert_srst
|
||||
# Debug compatible reset configuration (default)
|
||||
reset_config srst_only srst_nogate
|
||||
|
||||
# Sleep mode compatible reset configuration (stock firmware compatible)
|
||||
# reset_config srst_only srst_nogate connect_assert_srst
|
||||
|
|
Loading…
Reference in a new issue