Browse Source

boards: adi: Add erase command for max32xxx boards

This commit enable erase command for max32xxx/max78xxx boards.
Erase command shall be passed to west flash as below

west flash --erase

Console output will like:
......
[max32xxx.cpu] halted due to breakpoint, current mode: Thread
xPSR: 0x01000000 pc: 0x000001b4 msp: 0x20004000
max32xxx mass erase complete
wrote XXXX bytes from file YYYY
Enable debug to connect in low-power mode
shutdown command invoked

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
pull/85274/head
Sadik Ozer 5 months ago committed by Benjamin Cabé
parent
commit
19b7eec08c
  1. 3
      boards/adi/apard32690/doc/index.rst
  2. 3
      boards/adi/max32655evkit/doc/index.rst
  3. 3
      boards/adi/max32655fthr/doc/index.rst
  4. 3
      boards/adi/max32662evkit/doc/index.rst
  5. 3
      boards/adi/max32666evkit/doc/index.rst
  6. 3
      boards/adi/max32666fthr/doc/index.rst
  7. 3
      boards/adi/max32670evkit/doc/index.rst
  8. 3
      boards/adi/max32672evkit/doc/index.rst
  9. 3
      boards/adi/max32672fthr/doc/index.rst
  10. 3
      boards/adi/max32675evkit/doc/index.rst
  11. 3
      boards/adi/max32680evkit/doc/index.rst
  12. 3
      boards/adi/max32690evkit/doc/index.rst
  13. 3
      boards/adi/max32690fthr/doc/index.rst
  14. 3
      boards/adi/max78000evkit/doc/index.rst
  15. 3
      boards/adi/max78000fthr/doc/index.rst
  16. 3
      boards/adi/max78002evkit/doc/index.rst
  17. 1
      boards/common/openocd-adi-max32.boards.cmake

3
boards/adi/apard32690/doc/index.rst

@ -190,7 +190,8 @@ SWD port. SWD debug can be accessed through the Cortex 10-pin connector, P9. @@ -190,7 +190,8 @@ SWD port. SWD debug can be accessed through the Cortex 10-pin connector, P9.
Logic levels are either 1.8V or 3.3V (based on P51 selection).
Once the debug probe is connected to your host computer, then you can simply run the
``west flash`` command to write a firmware image into flash.
``west flash`` command to write a firmware image into flash. To perform a full erase,
pass the ``--erase`` option when executing ``west flash``.
.. note::

3
boards/adi/max32655evkit/doc/index.rst

@ -169,7 +169,8 @@ SWD port. SWD debug can be accessed through the Cortex 10-pin connector, JH3. @@ -169,7 +169,8 @@ SWD port. SWD debug can be accessed through the Cortex 10-pin connector, JH3.
Logic levels are fixed to VDDIO (1.8V).
Once the debug probe is connected to your host computer, then you can simply run the
``west flash`` command to write a firmware image into flash.
``west flash`` command to write a firmware image into flash. To perform a full erase,
pass the ``--erase`` option when executing ``west flash``.
.. note::

3
boards/adi/max32655fthr/doc/index.rst

@ -191,7 +191,8 @@ The MAX32625 microcontroller on the board is flashed with DAPLink firmware at th @@ -191,7 +191,8 @@ The MAX32625 microcontroller on the board is flashed with DAPLink firmware at th
It allows debugging and flashing the MAX32655 Arm Core over USB.
Once the USB cable is connected to your host computer, then you can simply run the
``west flash`` command to write a firmware image into flash.
``west flash`` command to write a firmware image into flash. To perform a full erase,
pass the ``--erase`` option when executing ``west flash``.
Debugging
=========

3
boards/adi/max32662evkit/doc/index.rst

@ -212,7 +212,8 @@ the UART1A port can also be accessed through J3. @@ -212,7 +212,8 @@ the UART1A port can also be accessed through J3.
Once the debug probe is connected to your host computer, then you can simply run the
``west flash`` command to write a firmware image into flash.
``west flash`` command to write a firmware image into flash. To perform a full erase,
pass the ``--erase`` option when executing ``west flash``.
.. note::

3
boards/adi/max32666evkit/doc/index.rst

@ -296,7 +296,8 @@ SWD port. SWD debug can be accessed through the Cortex 10-pin connector, J6. @@ -296,7 +296,8 @@ SWD port. SWD debug can be accessed through the Cortex 10-pin connector, J6.
Logic levels are fixed to VDDIOH (1.8V or 3.3V).
Once the debug probe is connected to your host computer, then you can simply run the
``west flash`` command to write a firmware image into flash.
``west flash`` command to write a firmware image into flash. To perform a full erase,
pass the ``--erase`` option when executing ``west flash``.
.. note::

3
boards/adi/max32666fthr/doc/index.rst

@ -216,7 +216,8 @@ SWD debug can be accessed through the Cortex 10-pin connector, JH2. @@ -216,7 +216,8 @@ SWD debug can be accessed through the Cortex 10-pin connector, JH2.
Logic levels are fixed to VDDIO (1.8V).
Once the debug probe is connected to your host computer, then you can simply run the
``west flash`` command to write a firmware image into flash.
``west flash`` command to write a firmware image into flash. To perform a full erase,
pass the ``--erase`` option when executing ``west flash``.
.. note::

3
boards/adi/max32670evkit/doc/index.rst

@ -185,7 +185,8 @@ The MAX32670 EVKIT integrates a MAX32625PICO based debugger for DAPLink function @@ -185,7 +185,8 @@ The MAX32670 EVKIT integrates a MAX32625PICO based debugger for DAPLink function
Once the debug probe is connected to your host computer, then you can simply run the
``west flash`` command to write a firmware image into flash.
``west flash`` command to write a firmware image into flash. To perform a full erase,
pass the ``--erase`` option when executing ``west flash``.
Debugging
=========

3
boards/adi/max32672evkit/doc/index.rst

@ -327,7 +327,8 @@ is supplied externally. Be sure to remove jumper JP15 (LDO_DUT_EN) to disconnect @@ -327,7 +327,8 @@ is supplied externally. Be sure to remove jumper JP15 (LDO_DUT_EN) to disconnect
LDO if supplying VDD and VDDA externally.
Once the debug probe is connected to your host computer, then you can simply run the
``west flash`` command to write a firmware image into flash.
``west flash`` command to write a firmware image into flash. To perform a full erase,
pass the ``--erase`` option when executing ``west flash``.
.. note::

3
boards/adi/max32672fthr/doc/index.rst

@ -204,7 +204,8 @@ The MAX32625 microcontroller on the board is flashed with DAPLink firmware at th @@ -204,7 +204,8 @@ The MAX32625 microcontroller on the board is flashed with DAPLink firmware at th
It allows debugging and flashing the MAX32672 Arm Core over USB.
Once the debug probe is connected to your host computer, then you can simply run the
``west flash`` command to write a firmware image into flash.
``west flash`` command to write a firmware image into flash. To perform a full erase,
pass the ``--erase`` option when executing ``west flash``.
Debugging
=========

3
boards/adi/max32675evkit/doc/index.rst

@ -379,7 +379,8 @@ is supplied externally. Be sure to remove jumper JP15 (LDO_DUT_EN) to disconnect @@ -379,7 +379,8 @@ is supplied externally. Be sure to remove jumper JP15 (LDO_DUT_EN) to disconnect
the 3.3V LDO if supplying VDD and VDDA externally.
Once the debug probe is connected to your host computer, then you can simply run the
``west flash`` command to write a firmware image into flash.
``west flash`` command to write a firmware image into flash. To perform a full erase,
pass the ``--erase`` option when executing ``west flash``.
.. note::

3
boards/adi/max32680evkit/doc/index.rst

@ -327,7 +327,8 @@ SWD port. SWD debug can be accessed through the Cortex 10-pin connector, JH10. @@ -327,7 +327,8 @@ SWD port. SWD debug can be accessed through the Cortex 10-pin connector, JH10.
Logic levels are set to 1.8V (VDDIO_AUX).
Once the debug probe is connected to your host computer, then you can simply run the
``west flash`` command to write a firmware image into flash.
``west flash`` command to write a firmware image into flash. To perform a full erase,
pass the ``--erase`` option when executing ``west flash``.
Debugging
=========

3
boards/adi/max32690evkit/doc/index.rst

@ -284,7 +284,8 @@ SWD port. SWD debug can be accessed through the Cortex 10-pin connector, J3. @@ -284,7 +284,8 @@ SWD port. SWD debug can be accessed through the Cortex 10-pin connector, J3.
Logic levels are fixed to VDDIO (1.8V).
Once the debug probe is connected to your host computer, then you can simply run the
``west flash`` command to write a firmware image into flash.
``west flash`` command to write a firmware image into flash. To perform a full erase,
pass the ``--erase`` option when executing ``west flash``.
.. note::

3
boards/adi/max32690fthr/doc/index.rst

@ -97,7 +97,8 @@ Logic levels are fixed to VDDIO (1.8V). @@ -97,7 +97,8 @@ Logic levels are fixed to VDDIO (1.8V).
Once the debug probe is connected to your host computer, then you can run the
``west flash`` command to write a firmware image into flash. Here is an example
for the :zephyr:code-sample:`hello_world` application.
for the :zephyr:code-sample:`hello_world` application. To perform a full erase,
pass the ``--erase`` option when executing ``west flash``.
.. zephyr-app-commands::
:zephyr-app: samples/hello_world

3
boards/adi/max78000evkit/doc/index.rst

@ -283,7 +283,8 @@ SWD port. SWD debug can be accessed through the Cortex 10-pin connector, JH5. @@ -283,7 +283,8 @@ SWD port. SWD debug can be accessed through the Cortex 10-pin connector, JH5.
Logic levels are fixed to VDDIO (1.8V).
Once the debug probe is connected to your host computer, then you can simply run the
``west flash`` command to write a firmware image into flash.
``west flash`` command to write a firmware image into flash. To perform a full erase,
pass the ``--erase`` option when executing ``west flash``.
.. note::

3
boards/adi/max78000fthr/doc/index.rst

@ -185,7 +185,8 @@ The MAX32625 microcontroller on the board is preprogrammed with DAPLink firmware @@ -185,7 +185,8 @@ The MAX32625 microcontroller on the board is preprogrammed with DAPLink firmware
It allows debugging and programming of the MAX78000 Arm core over USB.
Once the debug probe is connected to your host computer, then you can simply run the
``west flash`` command to write a firmware image into flash.
``west flash`` command to write a firmware image into flash. To perform a full erase,
pass the ``--erase`` option when executing ``west flash``.
.. note::

3
boards/adi/max78002evkit/doc/index.rst

@ -450,7 +450,8 @@ SWD port. SWD debug can be accessed through the Cortex 10-pin connector, JH8. @@ -450,7 +450,8 @@ SWD port. SWD debug can be accessed through the Cortex 10-pin connector, JH8.
Logic levels are fixed to VDDIO (1.8V).
Once the debug probe is connected to your host computer, then you can simply run the
``west flash`` command to write a firmware image into flash.
``west flash`` command to write a firmware image into flash. To perform a full erase,
pass the ``--erase`` option when executing ``west flash``.
.. note::

1
boards/common/openocd-adi-max32.boards.cmake

@ -33,4 +33,5 @@ board_runner_args(openocd --cmd-pre-init "source [find target/${MAX32_TARGET_CFG @@ -33,4 +33,5 @@ board_runner_args(openocd --cmd-pre-init "source [find target/${MAX32_TARGET_CFG
if(CONFIG_SOC_FAMILY_MAX32_M4)
board_runner_args(openocd --cmd-pre-init "allow_low_pwr_dbg")
board_runner_args(openocd "--cmd-erase=max32xxx mass_erase 0")
endif()

Loading…
Cancel
Save