Skip to content

Commit 19b7eec

Browse files
ozersakartben
authored andcommitted
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 <[email protected]>
1 parent ed4069c commit 19b7eec

File tree

17 files changed

+33
-16
lines changed

17 files changed

+33
-16
lines changed

boards/adi/apard32690/doc/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ SWD port. SWD debug can be accessed through the Cortex 10-pin connector, P9.
190190
Logic levels are either 1.8V or 3.3V (based on P51 selection).
191191

192192
Once the debug probe is connected to your host computer, then you can simply run the
193-
``west flash`` command to write a firmware image into flash.
193+
``west flash`` command to write a firmware image into flash. To perform a full erase,
194+
pass the ``--erase`` option when executing ``west flash``.
194195

195196
.. note::
196197

boards/adi/max32655evkit/doc/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ SWD port. SWD debug can be accessed through the Cortex 10-pin connector, JH3.
169169
Logic levels are fixed to VDDIO (1.8V).
170170

171171
Once the debug probe is connected to your host computer, then you can simply run the
172-
``west flash`` command to write a firmware image into flash.
172+
``west flash`` command to write a firmware image into flash. To perform a full erase,
173+
pass the ``--erase`` option when executing ``west flash``.
173174

174175
.. note::
175176

boards/adi/max32655fthr/doc/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ The MAX32625 microcontroller on the board is flashed with DAPLink firmware at th
191191
It allows debugging and flashing the MAX32655 Arm Core over USB.
192192

193193
Once the USB cable is connected to your host computer, then you can simply run the
194-
``west flash`` command to write a firmware image into flash.
194+
``west flash`` command to write a firmware image into flash. To perform a full erase,
195+
pass the ``--erase`` option when executing ``west flash``.
195196

196197
Debugging
197198
=========

boards/adi/max32662evkit/doc/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ the UART1A port can also be accessed through J3.
212212

213213

214214
Once the debug probe is connected to your host computer, then you can simply run the
215-
``west flash`` command to write a firmware image into flash.
215+
``west flash`` command to write a firmware image into flash. To perform a full erase,
216+
pass the ``--erase`` option when executing ``west flash``.
216217

217218
.. note::
218219

boards/adi/max32666evkit/doc/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ SWD port. SWD debug can be accessed through the Cortex 10-pin connector, J6.
296296
Logic levels are fixed to VDDIOH (1.8V or 3.3V).
297297

298298
Once the debug probe is connected to your host computer, then you can simply run the
299-
``west flash`` command to write a firmware image into flash.
299+
``west flash`` command to write a firmware image into flash. To perform a full erase,
300+
pass the ``--erase`` option when executing ``west flash``.
300301

301302
.. note::
302303

boards/adi/max32666fthr/doc/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ SWD debug can be accessed through the Cortex 10-pin connector, JH2.
216216
Logic levels are fixed to VDDIO (1.8V).
217217

218218
Once the debug probe is connected to your host computer, then you can simply run the
219-
``west flash`` command to write a firmware image into flash.
219+
``west flash`` command to write a firmware image into flash. To perform a full erase,
220+
pass the ``--erase`` option when executing ``west flash``.
220221

221222
.. note::
222223

boards/adi/max32670evkit/doc/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ The MAX32670 EVKIT integrates a MAX32625PICO based debugger for DAPLink function
185185

186186

187187
Once the debug probe is connected to your host computer, then you can simply run the
188-
``west flash`` command to write a firmware image into flash.
188+
``west flash`` command to write a firmware image into flash. To perform a full erase,
189+
pass the ``--erase`` option when executing ``west flash``.
189190

190191
Debugging
191192
=========

boards/adi/max32672evkit/doc/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ is supplied externally. Be sure to remove jumper JP15 (LDO_DUT_EN) to disconnect
327327
LDO if supplying VDD and VDDA externally.
328328

329329
Once the debug probe is connected to your host computer, then you can simply run the
330-
``west flash`` command to write a firmware image into flash.
330+
``west flash`` command to write a firmware image into flash. To perform a full erase,
331+
pass the ``--erase`` option when executing ``west flash``.
331332

332333
.. note::
333334

boards/adi/max32672fthr/doc/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ The MAX32625 microcontroller on the board is flashed with DAPLink firmware at th
204204
It allows debugging and flashing the MAX32672 Arm Core over USB.
205205

206206
Once the debug probe is connected to your host computer, then you can simply run the
207-
``west flash`` command to write a firmware image into flash.
207+
``west flash`` command to write a firmware image into flash. To perform a full erase,
208+
pass the ``--erase`` option when executing ``west flash``.
208209

209210
Debugging
210211
=========

boards/adi/max32675evkit/doc/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,8 @@ is supplied externally. Be sure to remove jumper JP15 (LDO_DUT_EN) to disconnect
379379
the 3.3V LDO if supplying VDD and VDDA externally.
380380

381381
Once the debug probe is connected to your host computer, then you can simply run the
382-
``west flash`` command to write a firmware image into flash.
382+
``west flash`` command to write a firmware image into flash. To perform a full erase,
383+
pass the ``--erase`` option when executing ``west flash``.
383384

384385
.. note::
385386

0 commit comments

Comments
 (0)