8000 Chapter 3 review · manishcoder2212/docs-content@ba93a84 · GitHub
[go: up one dir, main page]

Skip to content

Commit ba93a84

Browse files
authored
Chapter 3 review
1 parent e70ccf1 commit ba93a84

File tree

1 file changed

+32
-27
lines changed
  • content/hardware/04.pro/boards/portenta-h7/tutorials/lauterbach-debugger

1 file changed

+32
-27
lines changed

content/hardware/04.pro/boards/portenta-h7/tutorials/lauterbach-debugger/content.md

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: 'Lauterbach TRACE32 GDB Front-End Debugger for Portenta H7'
3-
description: 'This tutorial will show you how to use the Lauterbach TRACE32 GDB front-end debugger to debug your Portenta H7 or Nicla Vision applications via GDB on a serial interface.'
3+
description: 'This tutorial will show you how to use the Lauterbach TRACE32 GDB front-end debugger to debug multiple Arduino applications via GDB on a serial interface.'
44
coverImage: assets/por_ard_trace32_cover.svg
55
difficulty: advanced
66
tags:
77
- Debugging
88
- Lauterbach
99
- TRACE32
10-
author: 'Marco Ferrario, Lauterbach Italy, Sebastian Romero, Marta Barbero'
10+
author: 'Marco Ferrario, Lauterbach Italy, Sebastian Romero, Benjamin Dannegård, Marta Barbero'
1111
hardware:
1212
- hardware/04.pro/boards/portenta-h7
1313
- hardware/06.nicla/boards/nicla-vision
@@ -17,34 +17,37 @@ software:
1717
- web-editor
1818
---
1919
## Overview
20-
This tutorial will show you how to use the Lauterbach TRACE32 GDB front-end debugger to debug your Portenta H7 or Nicla Vision applications via GDB on a serial interface. It also explains how to obtain a free license of a fully functional version of TRACE32 using your board's serial number.
20+
21+
This tutorial will show you how to use the Lauterbach TRACE32 GDB front-end debugger to debug your Arduino boards' applications via GDB on a serial interface. It also explains how to obtain a free license for a fully functional version of TRACE32 using your board's serial number.
2122

2223
## Goals
2324

24-
- How to get a free license key for TRACE32 GDB Front End debugger for Portenta H7 or Nicla Vision - M7 core
25+
- How to get a free license key for TRACE32 GDB Front End debugger
2526
- How to download and start the Lauterbach TRACE32 GDB Front End debugger
2627
- How to Flash and debug some ready-to-run demos
2728

2829
### Required Hardware
29-
- [Portenta H7 (ABX00042)](https://store.arduino.cc/products/portenta-h7), [Portenta H7 Lite (ABX00045)](https://store.arduino.cc/products/portenta-h7-lite) or [Portenta H7 Lite Connected (ABX00046)](https://store.arduino.cc/products/portenta-h7-lite-connected) or [Nicla Vision (ABX00051)](https://store.arduino.cc/products/nicla-vision)
30+
To use the TRACE32 GDB Front End debugger, you will need one of the following boards:
31+
- [Portenta H7 (ABX00042)](https://store.arduino.cc/products/portenta-h7), [Portenta H7 Lite (ABX00045)](https://store.arduino.cc/products/portenta-h7-lite) or [Portenta H7 Lite Connected (ABX00046)](https://store.arduino.cc/products/portenta-h7-lite-connected)
32+
- [Nicla Vision (ABX00051)](https://store.arduino.cc/products/nicla-vision)
33+
- [Arduino Nano 33 BLE (ABX00030)](https://store.arduino.cc/nano-33-ble)
34+
- [Arduino Nano 33 BLE Sense (ABX00031)](https://store.arduino.cc/nano-33-ble-sense)
3035
- USB-C® cable (either USB-A to USB-C® or USB-C® to USB-C®) for Portenta H7
31-
- Micro USB cable (either USB-A to Micro USB or USB-C® to Micro USB) for Nicla Vision
36+
- Micro USB cable (either USB-A to Micro USB or USB-C® to Micro USB) for Nicla Vision, Nano 33 BLE and Nano 33 BLE Sense
3237

3338
### Required Software
3439
- [Arduino IDE 1.8.10+](https://www.arduino.cc/en/software) or [Arduino IDE 2.0+](https://www.arduino.cc/en/software)
35-
- Lauterbach TRACE32 software build 144320 (6 Feb 2022) or higher for Portenta H7, available [here](https://repo.lauterbach.com/download_demo.html)
40+
- Lauterbach TRACE32 software build 144320 (6 Feb 2022) or higher for Portenta H7, Nano 33 BLE and Nano 33 BLE Sense, available [here](https://repo.lauterbach.com/download_demo.html)
3641
- Lauterbach TRACE32 software build 161373 (31 Jul 2023) for Nicla Vision, available [here](https://repo.lauterbach.com/download_demo.html)
3742

3843

3944
## Instructions
4045

4146
### TRACE32 GDB Front End Debugger
4247

43-
In this tutorial, you will load on the board (either Portenta H7 or Nicla Vision) an application that includes the MRI (Monitor for Remote Inspection). This is a GDB-compatible serial monitor which is included with the ThreadDebug sketch in the IDE Examples for these boards (M7 core) and with all examples in the TRACE32 /demo directory.
44-
45-
Throughout this document the **double-tilde (~~)** is used as a placeholder for the directory where you unzipped the TRACE32 software.
48+
In this tutorial, you will learn how to upload an application that contains an MRI (Monitor for Remote Inspection) to your Arduino boards. This is a GDB-compatible serial monitor, which is included both in the ThreadDebug sketch in the IDE Examples and in all the examples available inside the TRACE32 /demo directory.
4649

47-
***This tutorial assumes that you have already installed the Arduino IDE and configured it to support the Portenta H7 or Nicla Vision board. Please refer to [Setting Up Portenta H7 For Arduino](https://docs.arduino.cc/tutorials/portenta-h7/setting-up-portenta) before you proceed.***
50+
In the next steps, the **double-tilde (~~)** is used as a placeholder for the directory where you unzipped the TRACE32 software.
4851

4952
### 1. Downloading the TRACE32 Debugger
5053

@@ -54,21 +57,15 @@ Extract the zip file to a directory of your choice. On Windows systems, please a
5457

5558
### 2. Registration and License Key
5659

57-
Without a valid license, the TRACE32 debugger only works for a few minutes in demo mode. Lauterbach can generate a **free license** based on the serial number of your board. The license will be valid for one year and can easily be renewed for free after this period using the same procedure. In order to obtain a license, please register here:
58-
59-
[www.lauterbach.com/4543](http://www.lauterbach.com/4543)
60-
61-
Enter the board's serial number (instructions below), your name and e-mail address and you will receive your license key.
62-
63-
![Request a Debug License for Arduino Pro](assets/por_ard_trace32_register.png)
60+
Without a valid license, the TRACE32 debugger only works for a few minutes in demo mode. To avoid this limitation, Lauterbach may generate a **free license** based on the serial number of your board. The license will be valid for one year and can easily be renewed for free after this expiration using the same procedure.
6461

65-
There are two alternative ways to detect the board serial number:
62+
In order to obtain a new license, you need to first get the serial number of your board. There are two alternative ways to do so:
6663

67-
- In the Arduino IDE select the "Tools->Get Board Info" menu command after selecting the port to which your board is connected to. This should show a 24 character (96 bit) long serial number.
64+
- In the Arduino IDE, select the "Tools->Get Board Info" menu command after choosing the port to which your board is connected. This should show a 16-character (64-bit) long serial number for your Nano BLE devices and a 24-character (96-bit) long serial number for your Portenta H7 or Nicla Vision.
6865

6966
![Your board's serial number can be displayed in the Arduino IDE using the "Get Board Info" command](assets/por_ard_trace32_board_info.png)
7067

71-
***If you only see a 16 character (64-bit) long serial number, then you need to update your Arduino IDE and the "Arduino mbed-enabled Boards" core from the boards manager in the IDE. Details on how to do this can be found on the Arduino website. Also, make sure your Portenta H7 or Nicla Vision has the [latest bootloader](https://docs.arduino.cc/tutorials/portenta-h7/updating-the-bootloader) installed.***
68+
***For Portenta H7 and Nicla Vision only: if you only see a 16-character (64-bit) long serial number, then you need to update your Arduino IDE and your boards' core from the boards manager in the IDE. Details on how to do so can be found on the Arduino website. In addition, make sure your board has the [latest bootloader](https://docs.arduino.cc/tutorials/portenta-h7/updating-the-bootloader) installed.***
7269

7370
- Use the TRACE32 debugger. Check section "3. Start the TRACE32 Debugger" to learn how to get started. Click the menu item "Board S/N and License State". Your board's serial number will be printed in the AREA window and a dialog LICENSE.state will be opened.
7471

@@ -78,7 +75,15 @@ There are two alternative ways to detect the board serial number:
7875

7976
Either copy & paste the displayed serial number manually to the Lauterbach registration page or click on the provided link in the dialog window.
8077

81-
Note: Newer TRACE32 software version should automatically detect and show the board serial number, at the first connection to the target.
78+
***Note: Newer TRACE32 software version should automatically detect and show the board serial number, at the first connection to the target.***
79+
80+
At this point, you are ready to register at the Lauterbach registration page below:
81+
82+
[www.lauterbach.com/4543](http://www.lauterbach.com/4543)
83+
84+
Enter the board's serial number, your name and e-mail address, to get your new license.
85+
86+
![Request a Debug License for Arduino board](assets/por_ard_trace32_register.png)
8287

8388
When you receive the email containing your license key, follow the instructions provided at the end of the message:
8489
- Copy the complete line of code provided in the email and paste it into the **license.t32** text file in your TRACE32 installation directory. Create the file license.t32 if it does not exist yet. On Windows, the TRACE32 system directory is by default "C:\T32".
@@ -97,23 +102,23 @@ To use the debugger, launch the appropriate executable for your host operating s
97102

98103
`~~/bin/linux64` for 64-bit Linux hosts.
99104

100-
For easy access, we suggest creating a link to the corresponding executable file on your desktop:
105+
To simplify the access, we suggest creating a link to the corresponding executable file on your desktop:
101106

102107
- for Windows, this is t32marm.exe
103108

104109
- for Linux, this is t32marm-qt
105110

106-
### Setting Up the Serial Port
111+
#### Setting Up the Serial Port
107112

108113
On Windows systems, the TRACE32 start-up script will automatically search for the right COM port attached to the board.
109114

110-
On Linux systems, you will need to edit the system-settings.cmm file to manually add the serial port to connect to the board. This is a text file and can be opened with your favorite text editor. Edit the line that defines &GDBPORT to refer to the serial port, for example: `&GDBPORT="/dev/ttyACM0"`. This must be done **before** you start the TRACE32 software. After changing the port you can start the TRACE32 debugger or re-start it in case it was open while you made the changes.
115+
On Linux systems, you will need to edit the `system-settings.cmm` file to manually add the serial port your board is connected to. This is a text file and can be opened with your favorite text editor. Edit the line that defines &GDBPORT to refer to the serial port, for example: `&GDBPORT="/dev/ttyACM0"`. This must be done **before** you start the TRACE32 software. After changing the port, you can start the TRACE32 debugger or re-start it in case it was open while you performed the changes.
111116

112-
***The manual port setting is also useful for Windows systems where you have multiple Portenta H7 or Nicla Vision boards connected and you want to select a specific board to be used by TRACE32 for debugging. The automatic port selection is disabled when a &GDBPORT definition is found in `system-settings.cmm`.***
117+
***The manual port setting is also useful for Windows systems when you connect multiple boards simultaneously and you would like to select a specific board to be used by TRACE32 for debugging. The automatic port selection is disabled when a &GDBPORT definition is found in `system-settings.cmm`.***
113118

114119
### 4. Running Your First Demo
115120

116-
A number of pre-built demo programs are available. They can be accessed from the "Portenta H7 Projects" or "Nicla Vision Projects" menu. The following instructions relate to the T32ThreadDebug example. However, the other examples follow a similar pattern.
121+
A number of pre-built demo programs are available in the tool. They can be accessed from the "Arduino Projects" menu. The following instructions relate to the T32ThreadDebug example. However, the other examples follow a similar pattern.
117122

118123
The demo directory already includes the symbolic file (.elf) for debugging and the binary file (.bin) for Flash programming.
119124

0 commit comments

Comments
 (0)
0