Step 5 : Flash and Boot the OS

  • In this program, you are going to learn

  • How to ?

Topics in this section,

  • Open one normal linux terminal and run minicom once you plug in the board.

$ sudo minicom -D /dev/ttyACM0
  • You should see the following output

Welcome to minicom 2.7.1

OPTIONS: I18n
Compiled on Dec 23 2019, 02:06:26.
Port /dev/ttyACM0, 15:00:01

Press CTRL-A Z for help on special keys

*** Booting Zephyr OS build zephyr-v3.5.0-4130-g6f6fc4e25c31 ***
Hello World! nucleo_h563zi
  • Flash using west flash: using runner stm32cubeprogrammer

  • Now run west flash in the venv terminal

$ west flash
-- west flash: rebuilding
[1/1] cd /home/test/zephyrproject/zephyr/build/zephyr && /home/test/zephyrproject/.venv/bin/pyth.../build/check_init_priorities.py --elf-file=/home/test/zephyrproject/zephyr/build/zephyr/zephyr.elf
-- west flash: using runner stm32cubeprogrammer
-- runners.stm32cubeprogrammer: mass erase requested
      -------------------------------------------------------------------
                        STM32CubeProgrammer v2.15.0
      -------------------------------------------------------------------

ST-LINK SN  : 0052003E3232510239353236
ST-LINK FW  : V3J13M4
Board       : NUCLEO-H563ZI
Voltage     : 3.30V
Warning:  Connection to AP 0 requested and failed, Connection established with AP 1

SWD freq    : 8000 KHz
Connect mode: Under Reset
Reset mode  : Hardware reset
Device ID   : 0x484
Revision ID : --
Device name : STM32H5xx
Flash size  : 2 MBytes
Device type : MCU
Device CPU  : Cortex-M33
BL Version  : 0xE4
SFSP Version: v2.5.0
Debug in Low Power mode enabled


Mass erase ...

Mass erase successfully achieved
      -------------------------------------------------------------------
                        STM32CubeProgrammer v2.15.0
      -------------------------------------------------------------------

ST-LINK SN  : 0052003E3232510239353236
ST-LINK FW  : V3J13M4
Board       : NUCLEO-H563ZI
Voltage     : 3.30V
Warning:  Connection to AP 0 requested and failed, Connection established with AP 1

SWD freq    : 8000 KHz
Connect mode: Under Reset
Reset mode  : Hardware reset
Device ID   : 0x484
Revision ID : --
Device name : STM32H5xx
Flash size  : 2 MBytes
Device type : MCU
Device CPU  : Cortex-M33
BL Version  : 0xE4
SFSP Version: v2.5.0
Debug in Low Power mode enabled



Memory Programming ...
Opening and parsing file: zephyr.hex
  File          : zephyr.hex
  Size          : 16.25 KB
  Address       : 0x08000000


Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 2]
Download in Progress:
[==================================================] 100%

File download complete
Time elapsed during download operation: 00:00:00.591

RUNNING Program ...
  Address:      : 0x8000000
Application is running, Please Hold on...
Start operation achieved successfully