Embedded Debugger Implementation - Microchip Technology PIC32CM LE00 User Manual

Table of Contents

Advertisement

4.4

Embedded Debugger Implementation

The Curiosity Pro contains an Embedded Debugger (EDBG) that can be used to program and debug the PIC32CM
LE00/LS00/LS60 using Serial Wire Debug (SWD). The Embedded Debugger also includes a virtual COM port
interface over UART, a Data Gateway Interface (DGI) over SPI, TWI (I
GPIOs.
MPLAB X IDE can be used as a front end for the Embedded Debugger.
4.4.1
Serial Wire Debug (EDBG SWD)
The Serial Wire Debug (SWD) uses two pins to communicate with the target. For additional information on how to
use the programming and debugging capabilities of the EDBG, refer to the
Table 4-23. Serial Wire Debug (SWD) Connection
Schematics Text
[EDBG_SWD]
TARGET_CHIP_RESET
[EDBG_SWD] SWCLK
[EDBG_SWD] SWDIO
4.4.2
Virtual COM Port (EDBG CDC)
The Embedded Debugger acts as a virtual COM port gateway using any one of the PIC32CM LE00/LS00/LS60
UARTs. For additional information on how to use the virtual COM port, refer to the
Table 4-24. Virtual COM Port (CDC) Connection
Schematics Text
[EDBG_UART] TX
[EDBG_UART] RX
4.4.3
Data Gateway Interface (EDBG DGI)
The Embedded Debugger features a Data Gateway Interface (DGI) using either a SPI or I
to send data from the PIC32CM LE00/LS00/LS60 to the Host PC.
For additional information on how to use the DGI interface, refer to the
Embedded Debugger User
Table 4-25. DGI Interface (DGI) Connections When Using SPI
Schematics Text
[DGI_SPI SS]
[DGI_SPI MOSI]
[DGI_SPI MISO]
[DGI_SPI SCK]
Table 4-26. DGI Interface (DGI) When Using I
Schematics Text
[DGI_I2C SCL]
[DGI_I2C SDA]
©
2022 Microchip Technology Inc.
and its subsidiaries
MCU Pin
/RESET
PA30/SWCLK
PA31/SWDIO
MCU Pin
PB21
SERCOM3/PAD[1] UART RX
PB20
SERCOM3/PAD[0] UART TX
Guide.
MCU Pin
PC24
PB24
SERCOM4/PAD[0] MOSI
PC25
SERCOM4/PAD[3] MISO
PB25
SERCOM4/PAD[1] SCK
2
C
MCU Pin
Function
PB31
SERCOM5/PAD[1] I²C SCL
PB30
SERCOM5/PAD[0] I²C SDA
PIC32CM LE00/LS00/LS60
2
C), and four of the PIC32CM LE00/LS00/LS60
Embedded Debugger User
Function
TARGET_RESETN
Cortex Debug, PICkit 4 Interface,
SWCLK
Cortex Debug, PICkit 4 Interface
SWDIO
Cortex Debug, PICkit 4 Interface
Embedded Debugger User
Function
Data Gateway Interface User's Guide
Function
GPIO
Shared Functionality
EXT1, EXT2, EXT3, Arduino, mikroBUS
EXT1, EXT2, EXT3, Arduino, mikroBUS
User Guide
Hardware User Guide
Guide.
Shared Functionality
Arduino, RESET button
Guide.
Shared Functionality
EXT2
EXT2
2
C. The DGI can be used
and
Shared Functionality
EXT2
EXT2
EXT2
EXT2
DS70005443E-page 22

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PIC32CM LE00 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Pic32cm ls00Pic32cm ls60

Table of Contents