Show Posts
|
|
Pages: [1] 2
|
|
1
|
Using Arduino / Programming Questions / Re: Leonardo "Blink" contains USB code?
|
on: September 06, 2012, 10:13:16 am
|
|
There is a known problem with the Adafruit bootloader and driver (early versions and modifications at least) causing bluescreens. The early Adafruit stuff was based on a now-obsolete Leonardo bootloader. Best bet is to do like sth77 suggests and burn the Leonardo bootloader from Arduino 1.0.1 or later.
|
|
|
|
|
3
|
Using Arduino / Installation & Troubleshooting / Re: Issue installing leonardo drivers
|
on: July 26, 2012, 10:11:39 am
|
|
Clamon, I know it has been some time but did you ever find a solution for this? I've heard a few other people having this problem on Win7 and am trying to get it solved. Any information you can provide would be very helpful: * Win7 architecture (32- or 64-bit) * make and model of your computer * are there any hubs between the computer and the Leonardo?
|
|
|
|
|
4
|
Using Arduino / Interfacing w/ Software on the Computer / Re: Leonardo and Excel
|
on: July 25, 2012, 05:06:31 pm
|
I think he meant having the Leonardo "type" directly into fields in Excel. Something like this (assumes you start with a fresh Excel sheet in cell A1): void setup() { delay(5000); Keyboard.print("A1 text"); Keyboard.write(KEY_TAB); Keyboard.print("B1 text"); Keyboard.write(KEY_DOWN_ARROW); Keyboard.print("B2 text"); Keyboard.write(KEY_RETURN); }
void loop() {
}
|
|
|
|
|
7
|
Using Arduino / Installation & Troubleshooting / Re: Issue installing leonardo drivers
|
on: July 02, 2012, 06:46:11 pm
|
|
clamon and alfoe,
Please try this: 0. connect the Leonardo directly to the computer's USB port (not through a hub). also, disable any virtualization or security software that may intercept USB traffic. 1. open Device Manager and scroll down to the Leonardo icon 2. press reset on the board 3. as soon as the Leonardo icon reappears, double-click to open its dialog 4. this should be the settings dialog for the bootloader not the sketch (the two modes look different to the OS). confirm by checking that the VID/PID is 0x2341/0x0036 (not 0x8036) 5. try installing the driver for the bootloader by pointing Windows to the drivers/ folder
While you're doing this you'll see the bootloader disconnect and the sketch connect in its place. That's alright - as long as you leave the bootloader dialog open everything should work fine.
Once you finish installing the bootloader driver you'll need to install again for the sketch. It should succeed this time.
|
|
|
|
|
10
|
Development / Other Hardware Development / Re: Board Name
|
on: June 26, 2012, 04:00:12 pm
|
|
The "iProduct" string sent by the board on enumeration tells the operating system gives the human-readable name. The value of that string is set near the top of USBCore.cpp in hardware/arduino/cores/arduino/. It's a Unicode string so you're looking for 'L', 'e', 'o', 'n' [...] not "Leonardo". The string used depends on the PID number of the device (also sent during enumeration) which is given in boards.txt.
Just be aware that if you'll be distributing your own custom hardware based on the Leonardo that you'll need to provide your own VID.
|
|
|
|
|
11
|
Using Arduino / Installation & Troubleshooting / Re: IDE 1.0.1 Problems with Leonardo, Windows XP and Windows 7 Enterprise
|
on: June 20, 2012, 12:06:20 pm
|
|
Thanks for this. From your results, the bootloader is definitely starting (see the "Found programmer: Id = "CATERIN"; type = S" line) but times out before the upload (see a little later when it gets a write error then reports "Found programmer: Id = "pÿ""; type = ç"). I'm surprised that it takes the Leonardo so long (at least six seconds) to reenumerate after reset - that's much longer than typical.
How frequently do you get this upload problem on the T410 versus how often does upload work? Are you running any virtual machine or security software on the T410 that could be interfering with or slowing down the enumeration of new USB devices?
|
|
|
|
|
13
|
Using Arduino / Installation & Troubleshooting / Re: IDE 1.0.1 Problems with Leonardo, Windows XP and Windows 7 Enterprise
|
on: June 19, 2012, 10:41:44 pm
|
|
josto, can you send the status messages after a failed upload attempt (turn on verbose output in preferences first)? I'd have to see more to be sure, but your timing problem theory may be correct. Some hubs (and, by extension, the root hub in each computer) introduce their own delay when a USB device is trying to enumerate.
If nothing else, you should be able to manually reset the Leonardo and get a successful upload every time.
|
|
|
|
|
14
|
Using Arduino / Programming Questions / Re: Leonardo baud rate for USB CDC
|
on: June 08, 2012, 07:45:10 am
|
|
That 1 ms polling rate is true only for HID (the keyboard and mouse) which use the USB interrupt transfer type. CDC (which Leonardo refers to as Serial) uses the USB bulk transfer type which doesn't guarantee timing but does guarantee that it will transfer the data as fast as possible. That "fast as possible" depends on what else is happening on the bus AND on the host computer.
In practice this does lead to different maximum transfer speeds for Serial on different computers (and even on the same computer under different workloads). I don't have a board with me right now but, from memory, you can usually assume at least several tens of kb per second, up to a few hundreds of kbps.
It's not necessary to call Serial.begin() for the Leonardo since the CDC device is initialized elsewhere. The stub was retained for backwards-compatibility.
Serial (which talks CDC over USB to the host) and Serial1 (which talks to pins 0 and 1 via the UART) are both definitely available and usable on the Leonardo.
|
|
|
|
|