background image

• Write access for programming Intel

®

 HEX formatted files into the target device’s memory

• Write access for simple text files for utility purposes

3.1.3.1 

Mass Storage Device Implementation

The on-board debugger implements a highly optimized variant of the FAT12 file system that has several limitations,
partly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded application.

The Curiosity Nano USB device is USB Chapter 9-compliant as a mass storage device but does not, in any way, fulfill
the expectations of a general purpose mass storage device. This behavior is intentional.

When using the Windows operating system, the on-board debugger enumerates as a Curiosity Nano USB Device
that can be found in the disk drives section of the device manager. The CURIOSITY drive appears in the file manager
and claims the next available drive letter in the system.

The CURIOSITY drive contains approximately one MB of free space, and this does not reflect the size of the
target device’s Flash in any way. When programming an Intel

®

 HEX file, the binary data are encoded in ASCII with

metadata providing a large overhead, so one MB is a trivially chosen value for disk size.

It is not possible to format the CURIOSITY drive. When programming a file to the target, the filename may appear in
the disk directory listing. This is merely the operating system’s view of the directory, which has not been updated in
reality. It is not possible to read out the file contents. Removing and replugging the board will return the file system to
its original state, but the target will still contain the application that has previously been programmed.

To erase the target device, copy a text file starting with “

CMD:ERASE

” onto the disk.

By default, the CURIOSITY drive contains several read-only files for generating icons as well as reporting status and
linking to further information:

AUTORUN.ICO

 – icon file for the Microchip logo

AUTORUN.INF

 – system file required for Windows Explorer to show the icon file

KIT-INFO.HTM

 – redirect to the development board website

KIT-INFO.TXT

 – a text file containing details about the board’s debugger firmware version, board name, USB

serial number, device, and drag-and-drop support

STATUS.TXT

 – a text file containing the programming status of the board

Info: 

 

STATUS.TXT

 is dynamically updated by the on-board debugger. The contents may be cached by

the OS and, therefore, do not reflect the correct status.

3.1.3.2 

Configuration Words

Configuration Words (PIC

®

 MCU Targets)

Configuration Word settings included in the project being programmed after program Flash is programmed. The
debugger will not mask out any bits in the Configuration Words when writing them, but since it uses Low-Voltage
Programming mode, it is unable to clear the LVP Configuration bit. If the incorrect clock source is selected,
for example, and the board does not boot, it is always possible to perform a bulk erase (always done before
programming) and restore the device to its default settings.

3.1.3.3 

Special Commands

Several utility commands are supported by copying text files to the mass storage disk. The filename or extension is
irrelevant – the command handler reacts to content only.

Table 3-2. Special File Commands

Command Content

Description

CMD:ERASE

Executes a chip erase of the target

CMD:SEND_UART=

Sends a string of characters to the CDC UART. See “

CDC

Override Mode

.”

 

Curiosity Nano

©

 2021 Microchip Technology Inc.

 User Guide

50003124A-page 11

Содержание Curiosity Nano PIC24FJ64GU205

Страница 1: ...egrate the device into a custom design The Curiosity Nano series of evaluation boards include an on board debugger No external tools are necessary to program and debug the PIC24FJ64GU205 MPLAB X IDE S...

Страница 2: ...ce Implementation 11 3 1 3 2 Configuration Words 11 3 1 3 3 Special Commands 11 3 1 4 Data Gateway Interface DGI 12 3 1 4 1 Debug GPIO 12 3 1 4 2 Timestamping 13 3 2 Curiosity Nano Standard Pinout 13...

Страница 3: ...5 1 Identifying Product ID and Revision 28 6 Document Revision History 29 7 Appendix 30 7 1 Schematic 30 7 2 Assembly Drawing 32 7 3 Curiosity Nano Base for Click boards 33 7 4 Disconnecting the On B...

Страница 4: ...table Target Voltage MIC5353 LDO regulator controlled by the on board debugger 1 8 3 6V output voltage limited by USB input voltage 500 mA maximum output current limited by ambient temperature and out...

Страница 5: ...rnal programmer or debugger tool is required Tip If closed the Kit Window in MPLAB X IDE can be reopened through the menu bar Window Kit Window 2 1 3 MPLAB X IDE Device Family Packs Microchip MPLAB X...

Страница 6: ...essing and visualizing data The Data Visualizer can receive data from various sources such as serial ports and on board debugger s Data Gateway Interface as found on Curiosity Nano and Xplained Pro bo...

Страница 7: ...ith the target application through terminal software A Data Gateway Interface DGI for code instrumentation with logic analyzer channels debug GPIO to visualize program flow The on board debugger contr...

Страница 8: ...ve Target Send Terminal Receive Terminal Send Info As shown in Figure 3 1 the debugger s CDC TX pin is connected to a UART RX pin on the target for receiving characters from the host computer Similarl...

Страница 9: ...r earlier has the following behavior Debugger UART receiver is disabled and no further data will be transferred to the host computer Debugger UART transmitter will continue to send data that is queued...

Страница 10: ...pported with explicit baud rates CMD SEND_9600 CMD SEND_115200 CMD SEND_460800 USB Level Framing Considerations Sending data from the host to the CDC can be done byte wise or in blocks which will be c...

Страница 11: ...that has previously been programmed To erase the target device copy a text file starting with CMD ERASE onto the disk By default the CURIOSITY drive contains several read only files for generating ic...

Страница 12: ...If external power is provided this has no effect Debugger firmware v1 16 or newer Info The content sent to the mass storage emulated disk triggers the commands listed here and provides no feedback in...

Страница 13: ...The timestamp counter implemented in the Curiosity Nano debugger increments at 2 MHz frequency providing a timestamp resolution of a half microsecond 3 2 Curiosity Nano Standard Pinout The 12 edge con...

Страница 14: ...the target PIC24FJ64GU205 microcontroller and its peripherals The voltage from a USB connector can vary between 4 4V to 5 25V according to the USB specification and will limit the maximum voltage to...

Страница 15: ...new voltage setting is applied to the board when the debugger is accessed in any way like pushing the Refresh Debug Tool Status button in the project dashboard tab or programming reading program memo...

Страница 16: ...level shifters and the standard operating condition of the PIC24FJ64GU205 is 2 0 3 6V Applying a higher voltage may cause permanent damage to the board Info If an external voltage is applied without p...

Страница 17: ...tage or use an external voltage supply on the VTG pin Target Voltage is Different From Setting This can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If th...

Страница 18: ...t consumption on the VBUS pin to fix this issue 3 4 Low Power Measurement Power to the PIC24FJ64GU205 is connected from the on board power supply and VTG pin through a 100 mil pin header marked with P...

Страница 19: ...microcontrollers on external hardware 3 5 1 Supported Devices All external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on board debugger with Microchip Studio...

Страница 20: ...supported by the on board debugger 3 5 3 Hardware Modifications The on board debugger is connected to the PIC24FJ64GU205 by default Remove these connections before any external microcontroller can be...

Страница 21: ...er and level shifters actively drive data and clock signals used for programming and debugging DBG0 DBG1 and DBG2 Usually the external resistor on these signals can be ignored Pull down resistors are...

Страница 22: ...3 6 Connecting External Debuggers Even though there is an on board debugger external debuggers can be connected directly to the PIC24FJ64GU205 Curiosity Nano to program debug the PIC24FJ64GU205 The on...

Страница 23: ...er Programmer is capable of delivering high voltage on the MCLR pin High voltage can permanently damage R110 If R110 is broken the on board debugger can not enter Programming mode of the PIC24FJ64GU20...

Страница 24: ...B0 RB0 RP0 AN2 RB15 RB15 RP15 AN9 RB14 RB14 RP14 AN6 RB13 RB13 RP13 AN7 GND GND RA7 RA7 RA9 RA9 RA8 RA8 RC7 RC7 RP23 RC9 RC9 RP25 TX CDC_RX RA11 RA11 RPIN29 RX CDC_TX RA4 RA4 SOSCO RB4 RB4 RP4 SOSCI G...

Страница 25: ...portant Once the pin headers are in place they are hard to remove by hand Use a set of pliers and carefully remove the pin headers to avoid damage to the pin headers and PCB 4 2 Peripherals 4 2 1 Targ...

Страница 26: ...he edge connector To use the crystal some hardware modifications are required The crystal XC200 Abracon ABS07 32 768kHz 7 T and the capacitors C205 10 pF AVX 04025A100JAT2A and C206 13 pF Murata GRM15...

Страница 27: ...ebugger section All connections between the target and the debugger are tri stated as long as the debugger is not actively using the interface Hence since there are little contaminations of the signal...

Страница 28: ...The first six digits of the serial number listed under kit information contain the product identifier and revision Tip If closed the Kit Window can be opened in MPLAB X IDE through the menu bar Window...

Страница 29: ...6 Document Revision History Rev A Document 2 2021 Initial release of this document Document Revision History 2021 Microchip Technology Inc User Guide 50003124A page 29...

Страница 30: ...14 GND 15 0 TX 16 1 RX 17 2 18 3 19 0 20 GND 24 DBG3 46 DBG0 45 GND 44 VCC 43 PWM 3 38 ADC 2 37 ADC 1 36 ADC 0 35 GND 34 4 30 4 26 GND 25 ADC 7 42 ADC 6 41 ADC 5 40 PWM 4 39 DEBUGGER TARGET ID 2 VOFF...

Страница 31: ...ano_Debugger SchDoc A11 0406 FE AB 26 E0 FF FF FF FF 9F 0C 4D 00 F3 57 E8 96 F4 64 98 02 35 07 92 86 62 87 5F 0E FW1 A12 1314 TESTDOC1 S3 PIC24FJ64GU205_Curiosity_Nano_Revision_History SchDoc PIC24FJ6...

Страница 32: ...wing Figure 7 2 PIC24FJ64GU205 Curiosity Nano Assembly Drawing Top PIC MCU b Figure 7 3 PIC24FJ64GU205 Curiosity Nano Assembly Drawing Bottom t c 4 Appendix 2021 Microchip Technology Inc User Guide 50...

Страница 33: ...B15 RB15 RP15 AN9 RB14 RB14 RP14 AN6 RB13 RB13 RP13 AN7 GND GND RA7 RA7 RA10 RA10 RP28 RA8 RA8 RC7 RC7 RP23 RC9 RC9 RP25 TX CDC_RX RA11 RA11 RPIN29 RX CDC_TX RA4 RA4 SOSCO RB4 RB4 RP4 SOSCI GND GND DE...

Страница 34: ...ng Cutting the power supply strap will disconnect the on board power supply Tip Reconnect any cut connection by using solder Alternatively mount a 0 0402 resistor Tip When the debugger is disconnected...

Страница 35: ...Figure 7 6 On Board Debugger Connection Cut Straps GPIO straps bottom side Power Supply strap top side Appendix 2021 Microchip Technology Inc User Guide 50003124A page 35...

Страница 36: ...elp customers A listing of sales offices and locations is included in this document Technical support is available through the website at www microchip com support Microchip Devices Code Protection Fe...

Страница 37: ...arFire Prochip Designer QTouch SAM BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer Tachyon TimeSource tinyAVR UNI O Vectron and XMEGA are registered trademarks of Microchip Technol...

Страница 38: ...Quality Management System For information regarding Microchip s Quality Management Systems please visit www microchip com quality 2021 Microchip Technology Inc User Guide 50003124A page 38...

Страница 39: ...2 China Xiamen 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...

Отзывы: