| Author |
Message |
|
|
Posted: Jun 14, 2012 - 08:45 AM |
|


Joined: Jan 23, 2004
Posts: 9878
Location: Trondheim, Norway
|
|
|
Quote:
Any plans to extend LUFA to the ATSAM3S series?
I've still got to finish the UC3 and XMEGA support, as well as (potentially) add in IAR compatibility -- as well as improve the current code, so while I want to I won't start it yet as I already have enough of a headache.
- Dean  |
_________________ Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
|
| |
|
|
|
|
|
Posted: Aug 16, 2012 - 01:45 PM |
|

Joined: Sep 16, 2008
Posts: 4
|
|
Chuck99-
Thanks for the nice tutorial. After programming the microcontroller atmega32u4 with .hex file for the program (Simple_Cmd_Proc_CDC_Demo), i connected microcontroller custom board to PC via usb. PC is detecting it as "Widget 1000" and asks to install device driver for it. Using hyperterminal i tried but it PC doesn't show any virtual terminal i.e., only COM1 and COM2 are shown. I am using Windows XP. Please suggest.
--Sandeep |
|
|
| |
|
|
|
|
|
Posted: Aug 16, 2012 - 06:55 PM |
|


Joined: Jul 18, 2005
Posts: 62929
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
|
Quote:
Using hyperterminal i tried but it PC doesn't show any virtual terminal i.e., only COM1 and COM2 are shown.
Look in Device Manager. Not just under COM & LPT but also for anything with a yellow triangle.
Also Google, download and install a copy of usbdeview.exe which tells you loads about USB devices in Windows. |
_________________
|
| |
|
|
|
|
|
Posted: Aug 17, 2012 - 02:25 AM |
|

Joined: Oct 31, 2009
Posts: 165
Location: Vancouver, WA, USA
|
|
|
sandeepduhan wrote:
Chuck99-
PC is detecting it as "Widget 1000" and asks to install device driver for it. Using hyperterminal i tried but it PC doesn't show any virtual terminal i.e., only COM1 and COM2 are shown. I am using Windows XP. Please suggest.--Sandeep
The "Widget 1000" is from the file Descriptors.c in folder USB_Stuff, so the PC is communicating with your board.
When the PC asked you to install the device driver, you should point to the file Widget_CDC_Setup.inf, which is included in the downloaded .zip file. Is that what you did? The Windows device driver for CDC was discussed in part 2 of the tutorial.
In the past, if Hyperterminal can't find the device, I shut down Hperterminal and unplug the device's usb connection, then reconnect the device and restart Hyperterminal. The device then usually shows up in Device Manager and Hyperterminal will connect. |
|
|
| |
|
|
|
|
|
Posted: Aug 17, 2012 - 06:05 AM |
|

Joined: Sep 16, 2008
Posts: 4
|
|
Thanks Chuck99 for quick reply. After pointing to Widget_CDC_Setup.inf, hyperterminal could find the device without shutdown of PC. Finally program tested OK.
Thanks!
--Sandeep |
|
|
| |
|
|
|
|
|
Posted: Aug 17, 2012 - 06:42 AM |
|

Joined: Oct 31, 2009
Posts: 165
Location: Vancouver, WA, USA
|
|
|
sandeepduhan wrote:
Finally program tested OK.
Glad you got it working. |
|
|
| |
|
|
|
|
|
Posted: Oct 28, 2012 - 09:38 PM |
|


Joined: Jan 25, 2010
Posts: 16
Location: Stockholm, Sweden
|
|
Hi!
Excellent tutorial.
I can also verify it works with the atmega32u4, and on the adafruit breakout board with their bootloader.
For reference of other readers.
I just did it on Ubutntu. with make.
JUST MAKE SURE:
MCU = atmega32u4
BOARD = NONE
F_CPU = 16000000
And for fun:
AVRDUDE_PROGRAMMER = avr109
AVRDUDE_PORT = /dev/ttyACM0
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
now you can do make program and it will program it aswell.
Other important node. the adafruit bootloader only give you the first 5 seconds (while the green light it flashing)
I spent AGES messing around before realizing that I had somehow set the lock bits and was not actually programming the chip. The error message is about the varify not working. Look it up on avrfreaks, Dean Cameara explains how you need to reflash the boot loader in this case.
I tested with the Simple_Cmd_Proc_CDC_Demo.txt (renamed to Widget_CDC.c) and connected to the serial port using the Eclipse terminal program. (its a plugin, I think i found the instruction on Arduino pages somewhere when getting their stuff to work on Eclipse) |
|
|
| |
|
|
|
|
|
Posted: Oct 29, 2012 - 08:17 AM |
|


Joined: Jan 23, 2004
Posts: 9878
Location: Trondheim, Norway
|
|
|
Quote:
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
That line shouldn't be required, as the default value for that parameter should be equivalent for flash programming. Nice to see someone actually using the new build system I made .
- Dean  |
_________________ Atmel Studio 6.1 is now released, grab it here.
Report AS6/ASF bugs here.
|
| |
|
|
|
|
|
Posted: Oct 30, 2012 - 06:42 PM |
|


Joined: Jan 25, 2010
Posts: 16
Location: Stockholm, Sweden
|
|
|
Quote:
Nice to see someone actually using the new build system I made .
Am I? What is that?
I honestly have no idea what I'm doing : P
b.t.w I only managed to get this working with LUFA-120219
it complains about missing .in files with 120730. I expexted to see them in the migrating from 120219 document, but gave up and thought it wiser to just ask here. : ) |
|
|
| |
|
|
|
|
|