monoZ docs
Debug Console

1. Introduction

This document briefs the steps to configure CLI console and to debug user application using PuTTY, an open-source software terminal emulator. User may choose any relevant debug console and configure with similar settings.

2. Configuration

Step 1: Connect monoZero to the windows PC via micro-USB, switch power switch to USB to turn on the device. Go to Device Manager-> Ports (COM & LPT) to find the connected port to confirm the connection of device, here COM1 as shown below.

mz22

Step 2: Download and open PuTTY.

dbg1

Step 3: Expand the connection to “Serial” and configure the following fields given below. Serial line to connect to: COM1 (COM Port as seen in device manager)

  • Bits per sec: 115200
  • Data bits: 8
  • Parity: none
  • Stop bits: 1
  • Flow control: none
dbg2

Step 4: Click Session and click "Serial" radio button and verify whether the port number and the baud rate (115200) match with previous setting. Once verified, press “Open” to launch the CLI interface.

dbg3


dbg4

Step 5: Switch the monoZero Input Selector switch towards USB, and enter “AT” followed by Enter to receive “OK”. This confirms the connection between CLI interface and monoZero board.

deb

3. Firmware Debug

Step 1: Connect 3pin SWD debugger, micro-USB to monoZero and connect to computer and turn on monoZero. Verify the connection between CLI interface and monoZero through the above section and switch the monoZero Input Selector towards STM.
Step 2: Open user application in STM32CubeIDE and to debug the code, right click on the project file -> Debug As -> 1 STM32 Cortex-M C/C++ Application.

mz21

Step 3: After setup, the code sequence can be debugged via the console.

deb1