You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2023. It is now read-only.
### Release v1.1.0
1. Improve and customize examples for `Curiosity Nano AVRDA/AVRDB` boards to use on-board LED and SW
2. Add notes `howto upload by drag-and-drop` to `CURIOSITY` virtual drive
Copy file name to clipboardExpand all lines: README.md
+72-9Lines changed: 72 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@
15
15
16
16
## Table of Contents
17
17
18
+
*[Important Note for Arduino IDE](#Important-Note-for-Arduino-IDE)
18
19
*[Why do we need this Dx_TimerInterrupt library](#why-do-we-need-this-Dx_TimerInterrupt-library)
19
20
*[Features](#features)
20
21
*[Why using ISR-based Hardware Timer Interrupt is better](#why-using-isr-based-hardware-timer-interrupt-is-better)
@@ -74,6 +75,56 @@
74
75
---
75
76
---
76
77
78
+
### Important Note for Arduino IDE
79
+
80
+
With some Arduino IDE versions, such as v1.8.19, upload directly via USB to some boards, such as `Curiosity_AVR128DA48` or `Curiosity_AVR128DB48` can't be done without unknown-to-me fix. We'll get the following error when uploading
81
+
82
+
```
83
+
avrdude: Version 6.3-20201216
84
+
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
85
+
Copyright (c) 2007-2014 Joerg Wunsch
86
+
87
+
System wide configuration file is "/home/kh/.arduino15/packages/DxCore/hardware/megaavr/1.4.10/avrdude.conf"
88
+
User configuration file is "/home/kh/.avrduderc"
89
+
User configuration file does not exist or is not a regular file, skipping
90
+
91
+
Using Port : usb
92
+
Using Programmer : curiosity_updi
93
+
avrdude: usbdev_open(): Found nEDBG CMSIS-DAP, serno: MCHP3280041800002682
94
+
avrdude: usbdev_open(): WARNING: failed to set configuration 1: Device or resource busy
95
+
avrdude: Found CMSIS-DAP compliant device, using EDBG protocol
96
+
avrdude: usbdev_send(): wrote -5 out of 912 bytes, err = Input/output error
97
+
avrdude: jtag3_edbg_prepare(): failed to send command to serial port
98
+
99
+
avrdude done. Thank you.
100
+
101
+
the selected serial port
102
+
does not exist or your board is not connected
103
+
```
104
+
105
+
We can use drag-and-drop method to `drag-and-drop` the compiled **hex** file to `CURIOSITY` virtual drive.
106
+
107
+
If `success`, The LED blinks **slowly** for 2 sec. The LED will blinks **rapidly* for 2 sec if `failure`
108
+
109
+
110
+
For example, To run [Change_Interval example](https://github.com/khoih-prog/Dx_TimerInterrupt/tree/main/examples/Change_Interval), use Arduino IDE to compile, and get the `Change_Interval.ino.hex` file. For Ubuntu Linux, the file is store in directory `/tmp/arduino_build_xxxxxx`
After drag-and-drop `Change_Interval.ino.hex` into `CURIOSITY` virtual drive, the code will run immidiately if successfully loaded (LED blinks **slowly**)
@@ -220,10 +273,20 @@ Check the new [**multiFileProject** example](examples/multiFileProject) for a `H
220
273
1.[Arduino 101: Timers and Interrupts](https://www.robotshop.com/community/forum/t/arduino-101-timers-and-interrupts/13072)
221
274
2.[Getting Started with Timer/Counter Type B (TCB)](https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ApplicationNotes/ApplicationNotes/TB3214-Getting-Started-with-TCB-DS90003214.pdf)
0 commit comments