background image

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 

Fuse Bytes

Fuse Bytes (AVR

®

 MCU Targets)

When doing drag-and-drop programming, the debugger masks out fuse bits that attempt to disable Unified Program
and Debug Interface (UPDI). This means that the UPDI pin cannot be used in its reset or GPIO modes; selecting one
of the alternative functions on the UPDI pin would render the device inaccessible without using an external debugger
capable of high-voltage UPDI activation.

3.1.3.3 

Limitations of Drag-and-Drop Programming

Lock Bits

Lock bits included in the hex file will be ignored when using drag-and-drop programming. To program lock bits, use
Atmel Studio/Microchip MPLAB

®

 X IDE.

Enabling CRC Check in Fuses

It is not advisable to enable the CRC check in the target device’s fuses when using drag-and-drop programming. This
because a subsequent chip erase (which does not affect fuse bits) will effect a CRC mismatch, and the application
will fail to boot. To recover a target from this state, a chip erase must be done using Atmel Studio/Microchip MPLAB

®

X IDE, which will automatically clear the CRC fuses after erasing.

3.1.3.4 

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

”.

CMD:RESET

Resets the target device by entering Programming mode and then exiting
Programming mode immediately thereafter. Exact timing can vary according to
the programming interface of the target device. (Debugger firmware v1.16 or
newer.)

CMD:POWERTOGGLE

Powers down the target and restores power after a 100 ms delay. If external
power is provided, this has no effect. (Debugger firmware v1.16 or newer.)

CMD:0V

Powers down the target device by disabling the target supply regulator. If
external power is provided, this has no effect. (Debugger firmware v1.16 or
newer.)

CMD:3V3

Sets the target voltage to 3.3V. If external power is provided, this has no effect.
(Debugger firmware v1.16 or newer.)

CMD:5V0

Sets the target voltage to 5.0V. If external power is provided, this has no effect.
(Debugger firmware v1.16 or newer.)

 AVR128DA48 Curiosity Nano

Curiosity Nano

©

 2020 Microchip Technology Inc.

 User Guide

DS50002971A-page 11

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

Страница 1: ...ign The Curiosity Nano series of evaluation boards include an on board debugger No external tools are necessary to program and debug the AVR128DA48 MPLAB X IDE and Atmel Studio Software to discover configure develop program and debug Microchip microcontrollers Code examples in Atmel START Get started with code examples or generate drivers for a custom application Code examples on GitHub Get starte...

Страница 2: ... 4 Special Commands 11 3 1 4 Data Gateway Interface DGI 12 3 1 4 1 Debug GPIO 12 3 1 4 2 Timestamping 12 3 2 Curiosity Nano Standard Pinout 13 3 3 Power Supply 13 3 3 1 Target Regulator 14 3 3 2 External Supply 15 3 3 3 VBUS Output Pin 16 3 3 4 Power Supply Exceptions 16 3 4 Low Power Measurement 17 3 5 Programming External Microcontrollers 18 3 5 1 Supported Devices 18 3 5 2 Software Configuratio...

Страница 3: ...8 7 Appendix 29 7 1 Schematic 29 7 2 Assembly Drawing 31 7 3 Curiosity Nano Base for Click boards 32 7 4 Disconnecting the On board Debugger 33 7 5 Getting Started with IAR 34 The Microchip Website 37 Product Change Notification Service 37 Customer Support 37 Microchip Devices Code Protection Feature 37 Legal Notice 37 Trademarks 38 Quality Management System 38 Worldwide Sales and Service 39 AVR12...

Страница 4: ...or controlled by the on board debugger 1 8 5 1V output voltage limited by USB input voltage 500 mA maximum output current limited by ambient temperature and output voltage 1 2 Kit Overview The Microchip AVR128DA48 Curiosity Nano Evaluation Kit is a hardware platform to evaluate the AVR128DA48 microcontroller Figure 1 1 AVR128DA48 Curiosity Nano Evaluation Kit Overview Micro USB Connector Debugger ...

Страница 5: ...ks to the most relevant documents and software for the AVR128DA48 Curiosity Nano Board MPLAB X IDE MPLAB X IDE is a software program that runs on a PC Windows Mac OS Linux to develop applications for Microchip microcontrollers and digital signal controllers It is called an Integrated Development Environment IDE because it provides a single integrated environment to develop code for embedded microc...

Страница 6: ... is a collection of examples and labs that use Microchip development boards to showcase the use of PIC and AVR device peripherals Microchip PIC and AVR Solutions Microchip PIC and AVR Device Solutions contains complete applications for use with Microchip development boards ready to be adapted and extended AVR128DA48 Curiosity Nano website Kit information latest user guide and design documentation ...

Страница 7: ...lication 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 controls a Power and Status LED marked PS on the AVR128DA48 Curiosity Nano Board The table below shows how the LED is controlled in different operation modes Table 3 1 On Board Debugger LED Control Operation Mode Power and ...

Страница 8: ...d 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 Similarly the debugger s CDC RX pin is connected to a UART TX pin on the target for transmitting characters to the host computer 3 1 2 2 Operating System Support On Windows machines the CDC will enumerate as Curiosity Vir...

Страница 9: ...s that are already queued up for sending to the target will continue to be sent out but no further data will be accepted Remember Set up the terminal emulator to assert the DTR signal Without the signal the on board debugger will not send or receive any data through its UART Tip The on board debugger s CDC TX pin will not be driven until the CDC interface is enabled by the host computer Also there...

Страница 10: ...m 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...

Страница 11: ... X IDE which will automatically clear the CRC fuses after erasing 3 1 3 4 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 ch...

Страница 12: ...ation They are typically used to plot the occurrence of low frequency events on a time axis for example when certain application state transitions occur The figure below shows the monitoring of the digital state of a mechanical switch connected to a debug GPIO in MPLAB Data Visualizer Figure 3 2 Monitoring Debug GPIO with MPLAB Data Visualizer Debug GPIO channels are timestamped so the resolution ...

Страница 13: ...ut Disables the target regulator and target voltage when pulled low VTG Target voltage GND Common ground Figure 3 3 Curiosity Nano Standard Pinout USB DEBUGGER PS LED NC ID CDC RX CDC TX DBG1 DBG2 VBUS VOFF DBG3 DBG0 GND VTG CURIOSITY NANO 3 3 Power Supply The board is powered through the USB port and contains two LDO regulators one to generate 3 3V for the on board debugger and an adjustable LDO ...

Страница 14: ...mming dialog Any change to the target voltage is persistent even through a power toggle The resolution is less than 5 mV but may be limited to 10 mV by the adjustment program Info Voltage settings that are set up in Atmel Studio Microchip MPLAB X IDE are not immediately applied to the board The new voltage setting is applied to the board when the debugger is accessed in any way like pushing the Re...

Страница 15: ... the new situation and turns the target voltage regulator back on 3 3 2 External Supply AVR128DA48 Curiosity Nano can be powered by an external voltage instead of the on board target regulator When the Voltage Off VOFF pin is shorted to ground GND the on board debugger firmware disables the target regulator and it is safe to apply an external voltage to the VTG pin It is also safe to apply an exte...

Страница 16: ...ase current consumption of approximately 5 µA Typical values may be as low as 100 nA 3 3 3 VBUS Output Pin AVR128DA48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5V supply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuse is a voltage drop on the VBUS output with higher current loads The cha...

Страница 17: ...is Lit 2 This can be the issue if power jumper J100 and or J101 is cut and the target voltage regulator is set to a value within the specified voltage range for the target device To fix this solder a wire bridge between the pads for J100 J101 or add a jumper on J101 if a pin header is mounted VBUS Output Voltage is Low or Not Present This is most lightly caused by a high current drain on VBUS and ...

Страница 18: ...can be disconnected completely as described in 7 4 Disconnecting the On board Debugger 3 5 Programming External Microcontrollers The on board debugger on AVR128DA48 Curiosity Nano can be used to program and debug 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 Atme...

Страница 19: ... Atmel Studio allows any microcontroller and interface to be selected when Hide unsupported devices is set to False also microcontrollers and interfaces which are not supported by the on board debugger 3 5 3 Hardware Modifications The on board debugger is connected to the AVR128DA48 by default These connections must be removed before any external microcontroller can be programmed or debugged Cut t...

Страница 20: ...er Supply The on board debugger and level shifters actively drive data and clock signals DBG0 DBG1 and DBG2 used for programming and debugging and in most cases the external resistor on these signals can be ignored Pull down resistors are required on the ICSP data and clock signals to debug PIC microcontrollers DBG3 is an open drain connection and requires a pull up resistor to function AVR128DA48...

Страница 21: ...necting External Debuggers Even though there is an on board debugger external debuggers can be connected directly to the AVR128DA48 Curiosity Nano to program debug the AVR128DA48 The on board debugger keeps all the pins connected to the AVR128DA48 and board edge in tri state when not actively used Therefore the on board debugger will not interfere with any external debug tools AVR128DA48 Curiosity...

Страница 22: ...3 4 5 6 7 8 1 VDD Ground DATA 2 VDD 3 Ground 4 PGD 5 Unused 6 Unused 7 Unused 8 Unused 1 Unused MPLAB PICkit 4 USB DEBUGGER PS LED NC ID CDC RX CDC TX DBG1 DBG2 VBUS VOFF DBG3 DBG0 GND VTG CURIOSITY NANO AVR128DA48 Curiosity Nano Curiosity Nano 2020 Microchip Technology Inc User Guide DS50002971A page 22 ...

Страница 23: ...X CDC TX DBG1 DBG2 VBUS VOFF DBG3 DBG0 GND VTG CURIOSITY NANO CAUTION To avoid contention between the external debugger and the on board debugger do not start any programming debug operation with the on board debugger through Atmel Studio Microchip MPLAB X IDE or mass storage programming while the external tool is active AVR128DA48 Curiosity Nano Curiosity Nano 2020 Microchip Technology Inc User G...

Страница 24: ...TC XY16 TCA0 WO0 PD5 PD5 AIN5 PTC XY21 PD4 PD4 AIN4 PTC XY20 PD3 PD3 AIN3 PTC XY19 GND GND PE3 PE3 PTC XY27 PE2 PE2 PTC XY26 PE1 PE1 PTC XY25 PE0 PE0 PTC XY24 PA3 PA3 PTC XY3 PA2 PA2 PTC XY2 PB5 PB5 PTC XY13 PB4 PB4 PTC XY12 GND GND PC5 PC5 PC4 PC4 PF1 PF1 PTC XY33 XTAL32K2 PF0 PF0 PTC XY32 XTAL32K1 DEBUGGER AVR128DA48 Analog Debug I2C SPI UART Peripheral Port PWM Power Ground Touch Shared pin AVR...

Страница 25: ...debugger 4 2 3 Crystal The AVR128DA48 Curiosity Nano board has a 32 768 kHz crystal mounted The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connector through two solder points The two I O lines routed to the edge connector are disconnected by default to reduce the chance of an external signal causing contention with the crystal and to remove excessiv...

Страница 26: ...tion 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 signals the pins can be configured to anything the user wants For further information on how to use the capabilities of the on board debugger see 3 1 On Board Debugger Overview Table 4 4 On Board Debugger Connections ...

Страница 27: ...ber which is listed under kit information contain the product identifier and revision Tip The Kit Window can be opened in MPLAB X IDE through the menu bar Window Kit Window The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifier and revision printed in plain text as A09 nnnn rr where nnnn is the identifier and rr is the revision Boards wi...

Страница 28: ...6 Document Revision History Doc rev Date Comment A 03 2020 Initial document release AVR128DA48 Curiosity Nano Document Revision History 2020 Microchip Technology Inc User Guide DS50002971A page 28 ...

Страница 29: ...I 11 5 MISO 12 6 SCK 13 7 SS 14 GND 15 0 TX 16 1 RX 17 2 18 3 19 0 20 GND 24 DBG3 54 DBG0 53 GND 52 VCC 51 PWM 3 46 ADC 2 45 ADC 1 44 ADC 0 43 GND 42 4 38 4 34 GND 33 ADC 7 50 ADC 6 49 ADC 5 48 PWM 4 47 DEBUGGER TARGET ID 2 VOFF 55 1 21 2 22 3 23 0 25 1 26 2 27 3 28 4 29 5 30 6 31 7 32 5 35 6 36 7 37 5 39 6 40 7 41 RESERVED 1 VBUS 56 CNANO56 pin edge connector J200 J201 J203 J205 J206 J202 J204 PF...

Страница 30: ...ER TESTPOINT DBG2_CTRL VOFF CDC_RX_CTRL 47k R109 DBG1 CDC_TX_CTRL CDC_RX_CTRL SWCLK REG_ADJUST DBG2_GPIO DBG3_CTRL DBG2_CTRL UPDI UPDI GPIO GPIO RESET Signal DBG0 DBG1 DBG2 DBG3 ICSP Interface DAT CLK GPIO MCLR DBG3 CDC TX CDC RX UART RX UART TX UART RX UART TX TARGET TARGET 1k R110 VBUS_ADC 1 2 3 DMN65D8LFB Q101 VCC ID_SYS VOFF 1k R112 VCC_P3V3 VTG_ADC DAC MIC94163 VIN B2 VOUT A1 VIN A2 EN C2 GND...

Страница 31: ...P A J 1 0 5 0 1 P A J 1 0 5 0 0 COJ105 PAJ200056 PAJ200053 PAJ200028 P A J 2 0 0 0 2 P A J 2 0 0 0 1 P A J 2 0 0 0 5 1 P A J 2 0 0 0 5 0 P A J 2 0 0 0 5 2 P A J 2 0 0 0 4 9 P A J 2 0 0 0 4 8 P A J 2 0 0 0 4 7 P A J 2 0 0 0 4 6 P A J 2 0 0 0 4 5 P A J 2 0 0 0 4 4 P A J 2 0 0 0 4 3 P A J 2 0 0 0 4 2 P A J 2 0 0 0 4 1 P A J 2 0 0 0 4 0 P A J 2 0 0 0 3 9 P A J 2 0 0 0 3 8 P A J 2 0 0 0 3 7 P A J 2 0 0...

Страница 32: ...XY16 TCA0 WO0 PD5 PD5 AIN5 PTC XY21 PD4 PD4 AIN4 PTC XY20 PD3 PD3 AIN3 PTC XY19 GND GND PE3 PE3 PTC XY27 PE2 PE2 PTC XY26 PE1 PE1 PTC XY25 PE0 PE0 PTC XY24 PA3 PA3 PTC XY3 PA2 PA2 PTC XY2 PB5 PB5 PTC XY13 PB4 PB4 PTC XY12 GND GND PC5 PC5 PC4 PC4 PF1 PF1 PTC XY33 XTAL32K2 PF0 PF0 PTC XY32 XTAL32K1 DEBUGGER AVR128DA48 Analog Debug I2C SPI UART Peripheral Port PWM Power Ground Touch Shared pin AVR128...

Страница 33: ... strap will disconnect the on board power supply Tip Any connection that is cut can be reconnected using solder alternatively a 0Ω 0402 resistor can be mounted Tip When the debugger is disconnected an external debugger can be connected to holes shown in Figure 7 6 Details about connecting an external debugger are described in 3 6 Connecting External Debuggers Figure 7 5 On Board Debugger Connectio...

Страница 34: ...ke sure you have opened the project you want to configure Open the OPTIONS dialog for the project 2 In the category General Options select the Target tab Select the device for the project or if not listed the core of the device as shown in Figure 7 7 3 In the category Debugger select the Setup tab Select Atmel ICE as the driver as shown in Figure 7 8 4 In the category Debugger Atmel ICE select the...

Страница 35: ...Figure 7 7 Select Target Device Figure 7 8 Select Debugger AVR128DA48 Curiosity Nano Appendix 2020 Microchip Technology Inc User Guide DS50002971A page 35 ...

Страница 36: ...Figure 7 9 Configure Interface AVR128DA48 Curiosity Nano Appendix 2020 Microchip Technology Inc User Guide DS50002971A page 36 ...

Страница 37: ...ilable through the website at http 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 specification contained in their particular Microchip Data Sheet Microchip believes that its family of products is one of the most secure families of its kind on the market today when used i...

Страница 38: ...ASIC Plus 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 Suppression AKS Analog for the Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyCom CodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEM dsPICDEM net Dynam...

Страница 39: ...3 7252 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 Japan Tokyo Tel 81 3 6880 3770 Korea Daegu Tel 82 53 744 4301 Korea Seoul Tel 82 2 554 7200 Malaysia Kuala Lumpur Tel 60 3 7651 7906 Malaysia Penang Tel 60 4 227 8870 Philippines Manila Tel 63 2 ...

Отзывы: