-
-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with 8u2 (uno) #6
Comments
do you use the newest 2.0.4? Have you installed the 8u2 version? the Does the usb serial still work to flash the 328? Nico On 3/23/2015 9:32 PM, Marcus wrote:
|
Yes im using the 2.0.4 version for the 8u2, the flashing went through without any errors, (i used a Arduino Mega ADK to flash the UNO with Hoodloader 2.0.4) And yes i can still upload sketches to the 328. (for example the blink from arduinos example sketches). i used these settings in the ino sketch:
|
Interesting. Try the UNO or Mega file. Both should work the same, no I'd have to get a board myself to test this. and I wont buy this myself. Nico On 3/23/2015 9:41 PM, Marcus wrote:
|
Do you have a 16u2 to test this? Maybe the fuses are set wrong :S On 3/23/2015 9:32 PM, Marcus wrote:
|
what files are you reffering to?
Getting the same error, or atleast a similar validation error.
No i do not have a 16u2 to test, i wish i had. :( |
Too bad the ADK has no 16u2. Otherwise I have no clue why that error occurs. Is it a real atmega 8u2 Where do you live? I'd be willing to test this if you send me the board Nico On 3/23/2015 9:48 PM, Marcus wrote:
|
it says i think the uno is a rev 1 since the mega8u2 chip is turned a bit so it looks like a diamond when the arduino is correctly orianted. I think the mega has a 16u2 but cant make out the text that well, but i wont flash that board since im borrowing it from a friend. Im not willing to pay for a board tho, i might just try and get my hands on a 32u2 or 16u2 uno later down the road. |
yeah. just grab a new one. Can you please open an issue on github? maybe others have this problem Nico On 3/23/2015 10:03 PM, Marcus wrote:
|
this conversation is already on github ;) Tried to flash an old hid .hex firmware from another project that i used to be able to flash and got this
here is the output from flashing the normal Arduino-usbserial-uno.hex
If i take your HoodLoader2_0_4_Uno_8u2.hex file and flash it it goes through and verify correctly
|
how do you flash? via real ISP or via installation sketch? Totally missed, that this was a github post. though it was by mail from my blog. well.... :D |
I dont have a real ISP, and im flashing with avrdude.exe from the tools folder directly to the UNO. hehe, the more you know eh? ;) |
i tried the M way aswell nothing changed. |
Got some good news, i managed to manually upload the sketch (HoodLoader2_NoUSB_Blink) to the 8u2, but to do so i had to use avrdude and specify at90usb82 instead of atmega8u2 for the -p parameter. im guessing this is because its a rev 1 uno. The command i used was this: now the RX and TX leds are blinking as they should :D |
Try to change this line to at90usb82, restart the IDE and try to upload. Still weird though. https://github.com/NicoHood/HoodLoader2/blob/master/avr/boards.txt#L164 |
Already one step ahead of you, did that already (but copied the whole 8u2 section and renamed it to at90usb82).
|
that is weird. So you get an error with the IDE on both 8u2 and at90usb82. I am wondering why avrdude accepts the wrong device signature with manual control The only thing I can think of is to burn the hex file via ISP and not with the installation sketch. maybe the conversion was wrong. |
in the IDE i get the signature verification check error (and it suggest to force it with -F)
The -F parameter makes avrdude skip the verification completely and just uploads the data to the 8u2 without questioning the signature of the device.
Doesnt there exist a list of devices (atmega16u2 etc) with their device signatures? could help in finding why the at90usb82 doesnt match the uno 8u2 chip. |
here is the signature try to burn via isp, maybe the installation sketch did something wrong. |
still no success, still getting the verification error of the device if i use at90usb82 and with atmega8u2 i get the 0xff != 0x0c |
With an ISP you can do 2 things: Can you please try both versions? At least uploading the blink via the IDE via programmer should work, since it has nothing to do with the bootloader itself. |
Uploading normal ino for the 328 works. but if i do not can you point me in the right direction (im a bit confused by you phrasing) what do you mean by flashing a program directly? |
You can flash a program via bootloader or via ISP. You can burn Bootloaders only via ISP. I want to know if its an IDE or chip problem or a bootloader problem. When you upload the blink via ISP there is no bootloader used. If this works, we know that its not a chip/IDE problem. Then you can burn the bootloader via ISP instead of the installation sketch (which emulates an ISP but a bit different stil, with file conversion etc). Then we know if its an installation sketch problem or a real bootloader problem. Just buy a new Arduino with a 16u2. One from china is 6,5€ so why not buy one with even a better usb chip? It takes some time till it arrives but otherwise you wont be able to use it, it seems. And I have no idea where to get a 8u2 from and also it doesnt really make sense to buy that "old" chip. |
Im going to buy one when i get the time for it, but im probably going to buy a real arduino. I dont mind paying extra for the real deal :P i will report back once i get my hands on a new arduino. |
All rev3 (official ones) have a 16u2 so you are at the secure side. Good idea to support the developers! FYI: march 28th is Arduino day. I think a lot of shops offer sales. So you should have a look then (this saturday). Sparkfun, Adafruit and Seeed looks promising (for international shops, also see local sellers). |
Ah thx, then i dont have to worry that i get a different chip. I love the arduino so its a no brainer to support the developers :P Ok I will look for deals on the 28th then :D |
Greetings I am chandran from Chennai India I get the following error can you pl help not very good on electronis or programming Arduino: 1.6.3 (Windows 7), Board: "Arduino Uno" HoodLoader2_Installation_Sketch.ino.ino:218:35: fatal error: bootloader_atmega16u2.h: No such file or directory compilation terminated. Error compiling. This report would have more information with regards |
What chip do you want to use? 8u2 or 16u2? It compiles for me, not sure what you are doing wrong. In the IDE you must see several tabs with different .h files. |
16u2 I have not touched any thing in sketch |
Issue opened. Looks like an avrdude bug. And I cannot imagine of any clean solution for this. I could compile the hex file for the at90usb82 and mark it as an 8u2 (as you have it right now) and change the boards.txt. Since avrdude wont be updated in the IDE (even if they'd have a patch) there is no other way to fix it. You have time to play with it now. can you also test if the IDE uploading now works (edit the baords.txt and set the at90usb82 mcu instead). |
i will give it a shot as soon as im back at my computer. |
Thx for all the help. HL2 > Lufa (fixed in HL2, not yet in lufa itself, affected at90usb82) |
Glad i could help with figuring this out 👍 EDIT: changed the boards.txt and added the special version of the at90usb82 and i can compile in the gui now aswell! thanks alot for this. |
Cool. Any bugs you noticed? I tent to push this to master soon. What about Windows 10 drivers? Does it work natively? |
No bugs so far, other than i cannot fit the entier USBCore on the 8u2 (not enough space to store it). |
Oh sure, space could be a problem. You can use it without usb or without serial I think. |
It works without USB atleast when i try and compile in DFU mode in Arduino IDE. and i can get the LEDs to blink and get some output from the chip without problem. |
Could you do me a favor? I need a screen shot of the window that pops up if you try to install the Teensy driver: Do not fully install it, abort it but take a screenshot with Control + Print please. There must pop up two windows. A welcome window and a windows "do you really want to install" like window. Please shot both. You can drop the pics here in the github comment. That'd be nice, because I dont have a windows system here. |
Sorry for being so late to respond. |
Oki, sorry that i couldnt help. |
at90usb82 support now got added. the problem with avrdude is still there though. Can you please try to force upload the bootloader to your 8u2 (better use the at90usb82 bootloader and modify the installation sketch a bit, I trust in you that you can do that) and upload this sketch then: Can you please report your signature then? |
I will see what i can do, but I do not have the time to do it today, might be able to do it tomorrow tho. |
i have forced the at90usb82 hex to upload to the arduino now, no problem there but im having trouble making the signature reading scetch to fit onto the 8u2's 4096 byte memory. (the scetch is 15592 bytes large). |
hahaha damn. Well I contacted atmel now. If they dont respond I will ask Joarg wunsch again for patching avrdude anyways. for now there is no better solution and its not a bug of the hoodloader2 itself. |
well i managed to get it down to around 5000 bytes but it looks like the usbcore is still uploading (taking away around 3000 bytes). so the program should fit onto the 4096 bytes of memory if i dont have to upload the usbcore. |
place #undef USBCON inside arduino.h and replace serial with serial1. you need to read the data via the RX pin of the uno from another board/ftdi device. |
After doing some tinkering i now cant compile the .ino file, getting
this happened when i did a clean install of arduino ide 1.6.6 |
which ino file? which nightly build? For me it works with the IDE from yesterday, recompiled myself |
Arduino 1.6.6 Hourly Build 2015/09/28 05:01 |
Seems like an avrlib problem. Can you please post your fully modified sketch somewhere? Via github repository, via fork of this repo is maybe the best idea. Very interesting. |
Here is the modified version of the ino file: https://gist.github.com/thesymbol/483dcdbd88f057d2d3eb |
What did your setup look like before? |
i used an older version of the nightlies, but i do not have that left sadly. it was the old PR version atleast that is what i know, and i installed the hardware manually. (HoodLoader2 folder in the Arduino folder in Documents). |
Closing as this is an avrdude problem. Information can be found in this issue. |
I have been trying to upload the HoodLoader2_NoUSB_Blink to the 8u2 (since i do not have the space to fit the HID library for keyboard). but every time it fails to verify. here is the output from Arduino 1.6.1
The text was updated successfully, but these errors were encountered: