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:
Erwan Gouriou 2022-01-27 10:05:00 +01:00 committed by Maureen Helm
parent 6a6c47b619
commit ad12eef3f6
2 changed files with 14 additions and 1 deletions

View file

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

View file

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