background image

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

2

C), and four of the PIC32CM LE00/LS00/LS60

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 

Embedded Debugger User Guide

.

Table 4-23. Serial Wire Debug (SWD) Connection

Schematics Text

MCU Pin

Function

Shared Functionality

[EDBG_SWD]

TARGET_CHIP_RESET

/RESET

TARGET_RESETN

Cortex Debug, PICkit 4 Interface,

Arduino, RESET button

[EDBG_SWD] SWCLK

PA30/SWCLK

SWCLK

Cortex Debug, PICkit 4 Interface

[EDBG_SWD] SWDIO

PA31/SWDIO

SWDIO

Cortex Debug, PICkit 4 Interface

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 

Embedded Debugger User Guide

.

Table 4-24. Virtual COM Port (CDC) Connection

Schematics Text

MCU Pin

Function

Shared Functionality

[EDBG_UART] TX

PB21

SERCOM3/PAD[1] UART RX

EXT2

[EDBG_UART] RX

PB20

SERCOM3/PAD[0] UART TX

EXT2

4.4.3 

Data Gateway Interface (EDBG DGI)

The Embedded Debugger features a Data Gateway Interface (DGI) using either a SPI or I

2

C. The DGI can be used

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 

Data Gateway Interface User’s Guide 

and

Embedded Debugger User Guide

.

Table 4-25. DGI Interface (DGI) Connections When Using SPI

Schematics Text

MCU Pin

Function

Shared Functionality

[DGI_SPI SS]

PC24

GPIO

EXT2

[DGI_SPI MOSI]

PB24

SERCOM4/PAD[0] MOSI

EXT2

[DGI_SPI MISO]

PC25

SERCOM4/PAD[3] MISO

EXT2

[DGI_SPI SCK]

PB25

SERCOM4/PAD[1] SCK

EXT2

Table 4-26. DGI Interface (DGI) When Using I

2

C

Schematics Text

MCU Pin

Function

Shared Functionality

[DGI_I2C SCL]

PB31

SERCOM5/PAD[1] I²C SCL

EXT1, EXT2, EXT3, Arduino, mikroBUS

[DGI_I2C SDA]

PB30

SERCOM5/PAD[0] I²C SDA

EXT1, EXT2, EXT3, Arduino, mikroBUS

 PIC32CM LE00/LS00/LS60

Hardware User Guide

©

 2022 Microchip Technology Inc.

and its subsidiaries

 User Guide

DS70005443E-page 22

Содержание PIC32CM LE00

Страница 1: ...s The Curiosity Pro evaluation kits include an on board embedded debugger to program or debug the target microcontroller This enables an easy start to a project and provides application examples that...

Страница 2: ...eripherals 20 4 4 Embedded Debugger Implementation 22 4 5 Embedded Current Measurement Circuitry XAM Configuration 24 5 Product Identifier and Revision 25 6 Revision History 26 The Microchip Website 2...

Страница 3: ...complex data types including scope information Programming and debugging including power measurements Data Gateway Interface SPI I2C four GPIOs Virtual COM port CDC Embedded current measurement circui...

Страница 4: ...LS60 Curiosity Pro Evaluation Board Layout Top View 1 2 3 8 4 9 10 10 8 5 13 11 11 12 12 12 12 12 6 11 7 14 15 PIC32CM LE00 LS00 LS60 Introduction 2022 Microchip Technology Inc and its subsidiaries U...

Страница 5: ...ure 1 2 PIC32CM LE00 LS00 LS60 Curiosity Pro Evaluation Board Layout Bottom View 16 17 PIC32CM LE00 LS00 LS60 Introduction 2022 Microchip Technology Inc and its subsidiaries User Guide DS70005443E pag...

Страница 6: ...rrent Measurement jumpers 16 Embedded Debugger EDBG 17 Embedded Current Measurement XAM Table 1 2 PIC32CM LE00 LS00 LS60 Microchip Total System Solutions TSS TSS Components Quantity per board Function...

Страница 7: ...8 and Windows 10 When the Curiosity Pro MCU board is powered the power LED green will glow and MPLAB X IDE will auto detect the specific Curiosity Pro MCU and extension boards that are connected to it...

Страница 8: ...e Note The virtual COM port in the EDBG requires the terminal software to set the data terminal ready DTR signal to enable the UART pins connected to the microcontroller If the DTR signal is not enabl...

Страница 9: ...a preamplifier and a second active filter stage with gain The wide dynamic range is achieved by four measurement ranges which are defined by two shunts and the two parallel second stage active filters...

Страница 10: ...ange 2 Low current shunt and low gain stage 150 nA 1 LSB 1 Range 3 High current shunt and high gain stage 10 A 1 LSB 1 Range 4 High current shunt and low gain stage 100 A 1 LSB 1 Above 100 mA the erro...

Страница 11: ...ed to supply the kit and the USB device Recommended maximum is 2A POWER Note External power is required when 500 mA from a USB connector is not enough to power the board with possible extension boards...

Страница 12: ...headers with a pitch of 2 54 mm which can be used to connect to a variety of Xplained Pro extension boards or to access the pins of the target The Curiosity Pro evaluation kits have male headers and...

Страница 13: ...the ID Chip on the extension board 2 GND GND Ground 3 ADC PA02 ADC AIN 0 mikroBUS 4 ADC PA03 ADC AIN 1 Arduino 5 GPIO1 PA10 GPIO Arduino 6 GPIO2 PA11 GPIO Arduino 7 PWM PB08 TC0 WO 0 mikroBUS 8 PWM PB...

Страница 14: ...CDC 15 SPI_SS_A PC24 SERCOM4 PAD 2 SS_A EDBG DGI 16 SPI_MOSI PB24 SERCOM4 PAD 0 MOSI EDBG DGI 17 SPI_MISO PC25 SERCOM4 PAD 3 MISO EDBG DGI 18 SPI_SCK PB25 SERCOM4 PAD 1 SCK EDBG DGI 19 GND GND Ground...

Страница 15: ...ing table provides the mikroBUS header details Table 4 7 mikroBUS Header Connector J605 J606 mikroBUS Pin MCU Pin Function Shared Functionality AN PA02 ADC AIN 0 EXT1 RST PB04 GPIO EXT1 CS PB00 SERCOM...

Страница 16: ...N N C Table 4 9 Analog J501 J501 Pin SHIELD_ANA MCU Pin Function Shared Functionality 1 A0 PC00 ADC AIN 20 2 A1 PC01 ADC AIN 21 3 A2 PC02 ADC AIN 22 4 A3 PC03 ADC AIN 23 5 A4 PB05 ADC AIN 13 EXT2 6 A5...

Страница 17: ...D 0 SPI MOSI EXT3 5 RESET RESET TARGET_RESETN EDBG SWD Cortex Debug PICkit 4 Interface RESET button 6 GND GND 4 2 5 MCU Current Measurement Header An angled 1x2 100 mil pin header marked with CURRENT...

Страница 18: ...xternal debug probes to the PIC32CM LE00 LS00 LS60 Table 4 15 Cortex Debug Header J400 Cortex Debug Header Pin MCU Pin Function Shared Functionality 1 VCC VCC_TARGET_P3V3 2 SWDIO TMS PA31 SWDIO SWDIO...

Страница 19: ...tionality 3 GND GND 4 SWO N C 5 SWCLK PA30 SWCLK SWCLK EDBG SWD Cortex Debug 6 N C N C 7 N C N C 8 SWDIO PA31 SWDIO SWDIO EDBG SWD Cortex Debug PIC32CM LE00 LS00 LS60 Hardware User Guide 2022 Microchi...

Страница 20: ...et button connected to the PIC32CM LE00 LS00 LS60 reset line and two generic user configurable buttons When a button is pressed it will drive the I O line to GND The mechanic button details are provid...

Страница 21: ...ouch Library Table 4 21 Touch Button Connection Silkscreen Text Schematics Text MCU Pin Function Shared Functionality BTN BTN PB12 PTC XY 30 BTN SHIELD PA01 GPIO 4 3 5 Potentiometer One Round Trimming...

Страница 22: ...PIC32CM LE00 LS00 LS60 UARTs For additional information on how to use the virtual COM port refer to the Embedded Debugger User Guide Table 4 24 Virtual COM Port CDC Connection Schematics Text MCU Pin...

Страница 23: ...curately time stamp events in the application code Table 4 27 GPIO Lines Connected to the EDBG Schematics Text MCU Pin Function Shared Functionality DGI_GPIO0 PC13 GPIO DGI_GPIO1 PC14 GPIO DGI_GPIO2 P...

Страница 24: ...owing four configurations No current measurement or external MCU current measurement The XAM is bypassed and the MCU and the on board Peripherals Components are supplied by the regulator Set both the...

Страница 25: ...aining the kit details such as its serial number will be displayed The board serial number string has the following format MPLAB X IDE MCHPnnnnrrssssssssss PCB A09 nnnn rr SN ssssssssss Where n Produc...

Страница 26: ...DBG I2C to EDBG DGI in the following sections Extension Headers mikroBUS Header Connector Arduino Uno Header Connectors Rev C 08 2021 Minor typographical edits were done throughout this document revis...

Страница 27: ...h the website at www microchip com support Microchip Devices Code Protection Feature Note the following details of the code protection feature on Microchip devices Microchip products meet the specific...

Страница 28: ...us logo Quiet Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProvider Vite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the U S A Adjacent Key S...

Страница 29: ...men Tel 86 592 2388138 China Zhuhai Tel 86 756 3210040 India Bangalore Tel 91 80 3090 4444 India New Delhi Tel 91 11 4160 8631 India Pune Tel 91 20 4121 0141 Japan Osaka Tel 81 6 6152 7160 Japan Tokyo...

Отзывы: