HI All,
trying to get the IDE to run but have problems steming from the fact that the driver will not
install.
I downloaded the .zip file to get a copy of Arduino UNO.inf in the drivers folder. I have directed
Windows 7 (32 Bit) to install the driver but it fails with the error:
'A service installation section in this INF is invalid'
The drivers for the UNO come with the Download for the IDE and are installed with it.
I’d suggest you uninstall what you have and go to the Arduino downloads page and start over .
If your UNO is a non genuine board , you might need addition drivers ( eg cH340).
note as I’ve not installed one of the recent versions of the IDE on a 32 bit machine I’m unsure if there is a specific problem with that .if you suspect that try an older version ( 1.6?).
Hi,
thanks for your reply. I did download and install the 1.5 version but had the same result, namely
the USB driver failing to install.
I have downloaded and installed on my boss's Window 7 64 bit Pro PC the 1.8 version and the driver
installs OK.
I believe I must have overwritten/corrupted the bootloader because I cannot get the 1.8 IDE to upload
a sketch directly, its necessary for me to use an AVRISP MKII programmer.
I read somewhere that if a bootloader is burnt into the UNO the LED blinks. It is not doing so, therefore
I concluded that the bootloader is absent or corrupt. Am I correct?
I have tried with the AVRISP but it returns an error. Thus each time I edit my sketch
I require the AVRISP to update the sketch on the board. Somewhat inconvenient but it works.
While this is a project for work I wish to be able to work on it over the Xmas break. I guessed
that my laptop (home) which has Windows 7 Embedded Standard loaded was inadequate for the job.
I therefore have bought an ex-lease desktop machine (i5,4G) with a fresh copy of Windows 10 PRO.
I have downloaded 1.8 IDE and installed.
Once I loaded manually directed via Device Manager the driver the port shows up as COM2 (Arduino/
Genuino Uno) in the Port description of the IDE and the board info appears to display correctly.
I guess therefore that the driver is loaded and working.
The lack of a bootloader prevents me from loading a sketch directly. I have downloaded and installed
Atmel Studio. It has the driver required for the AVRISP MKII. The driver has loaded and installed
OK.
Back in the 1.8 IDE however if I try uploading a sketch using the AVRISP it fails to load. Likewise
the AVRISP fails to burn a bootloader.
I think buying and using a Windows 10 machine has got me one step closer however I'm still missing
something. I have been able to successfully, via the AVRISP, upload sketches to the UNO using
my boss's PC..... yet I can't duplicate it with my new (to me) Windows 10 machine.
Do you have any suggestions as to what I may have overlooked?
joeaverage:
I believe I must have overwritten/corrupted the bootloader because I cannot get the 1.8 IDE to upload
a sketch directly, its necessary for me to use an AVRISP MKII programmer.
When you upload using your programmer, you erase the bootloader. After doing that, you always need to do a Burn Bootloader before you can go back to standard uploads over the board's USB cable again.
joeaverage:
I have tried with the AVRISP but it returns an error.
Please do this:
File > Preferences > Show verbose output during: > compilation (uncheck) > upload (check) > OK
Tools > Burn Bootloader
After the process fails you'll see a button on the right side of the orange bar "Copy error messages". Click that button.
Paste the error messages in a reply here USING CODE TAGS (</> button on the forum toolbar).
joeaverage:
Once I loaded manually directed via Device Manager the driver the port shows up as COM2 (Arduino/
Genuino Uno) in the Port description of the IDE and the board info appears to display correctly.
I guess therefore that the driver is loaded and working.
Correct.
joeaverage:
I have downloaded and installed
Atmel Studio. It has the driver required for the AVRISP MKII. The driver has loaded and installed
OK.
Back in the 1.8 IDE however if I try uploading a sketch using the AVRISP it fails to load. Likewise
the AVRISP fails to burn a bootloader.
The AVRISP mkII driver used by Atmel Studio is incompatible with the Arduino IDE. You will need to remove that driver and reinstall the correct driver before you can start using your programmer with the Arduino IDE or AVRDUDE again.
The AVRISP mkII driver used by Atmel Studio is incompatible with the Arduino IDE. You will need to remove that driver and reinstall the correct driver before you can start using your programmer with the Arduino IDE or AVRDUDE again.
The only reason I downloaded Atmel Studio was because I could not induce the 1.8 IDE to load
any sort of driver that works the AVRISP.
At the current time I have the AVRISP MKII driver supplied with Atmel Studio installed. It appears
to work in Atmel Studio but not with the 1.8 IDE, and not surprisingly given your comment regarding
compatibility.
Given that my use of the AVRISP has caused the bootloader to be overwritten tells me that either
I use the AVRISP henceforth to upload my sketches OR I burn a new booloader, in either case
I require the ARVISP to work with the 1.8 IDE.
I do now recall that it was unnecessary for me to download the Atmel driver in order to get the
AVRISP working on the boss's PC. What I don't recall is what driver it was that I loaded or where
it came from. Is a suitable driver for an AVRISP MKII included in the 1.8 IDE? If so where?
Is there any special procedure I need to follow to have it install correctly?
Thanks for your help. Your insight has given me a much clearer view of the problem that I'm facing.
What appeared to me to be a multi-faceted problem is in fact just one poorly chosen driver.
joeaverage:
I then attempted to burn a new bootloader with the error log attached.
I think that's caused by not having any driver installed. It should be solved by the instructions in my last reply. Since you already uninstalled the device, you will probably see the button says "Install Driver" instead of "Reinstall Driver".
joeaverage:
Sorry have misunderstood the thing
There is a toolbar above where you are writing replies on the forum with a bunch of little icons. One of these icons looks like </>. That icon will insert code tags markup into the reply, which tells the forum that the enclosed text should not be rendered as bbcode. If you don't use code tags, often there will be things in your text that happen to be bbcode markup and this will cause the text to be corrupted by the forum software. For this reason, you should always post code and error/warning messages to the forum using code tags.
If your browser doesn't show the posting toolbar then you can just manually add the code tags:
[code]
[color=blue]// your code is here[/color]
[/code]
When you post things as an attachment, it makes it more difficult for people to look at it and thus makes it less likely for you to get help.
Using code tags and other important information is explained in the How to use this forum post. Please read it.
Hi Pert,
thank you for your help, it has worked perfectly.
In the event I found it necessary to have the Atmel driver installed so that the Zadig application
would list it and therefore provide a driver location to be replaced.
Now not only does the AVRISP work but I can also burn a new bootloader and upload sketches directly.
I apologize for not recognizing the </> icon, I have used a similar construct on other forums
and should have recognized it immediately.
I thank you again for your patience, it must be tiresome answering the same or similar questions
time and again for newcomers like myself.
You're welcome. I'm very glad to hear it's working now. I don't really mind answering the same questions over and over. I have a file of saved answers to all the common questions so it's very fast for me to do a copy/paste. In the case of the AVRISP mkII driver, that's not very common but I had the same problem with the drivers for my AVRISP mkII years ago so I remembered it clearly.
Hi,
I had the AVRISP MKII left over from a project I did some years ago. I understand it is no longer
in production.
My project at that time was time critical three phase Thyristor switching project and I elected to
write the code in assembler as it gave me very tight time control and that rather dictated the use of
Atmel Studio rather than Arduino IDE.
Anyway I'm glad to have a platform I can use to develop and debug code over the Xmas break.
My boss is a perfectly nice guy but I don't want him to see me flounder my way through what should
be a fairly simple program! I'd rather turn up after the break with a debugged solution so I can act
all cocky and smug.
The Arduino IDE actually does support assembler. The primary sketch file must be a .ino file (which is C++), but you can add additional files to the sketch (either by adding a tab or Sketch > Add File...) with the .S extension, which will be compiled as assembly. You also have the option of adding inline assembly right in your C++ code by wrapping the assembly code in asm(). I'm sure Atmel Studio was a good choice for that past project but you might still find it handy in the future to know you can use assembly in the Arduino IDE.
I was not aware of that possibility when I was writing code for the three phase switching project.
What I did appreciate with Atmel Studio at that time was the ability to emulate and therefore model
execution times, which I did in considerable detail. It was necessary for me to confirm that certain
critical interrupts did not clash with other bits of code.
My current project, control of a platform lift, is not time critical but I will have to give consideration to
how robust the code is, a code hang-up could for instance leave a person stuck between floors, not
desirable!
Since this morning when you helped get me going the code has been flowing out nicely. I must say the
Arduino IDE certainly makes code development swift an easy. While I had not intended to have a
diagnostic monitor but the extra snippets of code I've written into the main control loop for debugging
purposes lend themselves to a diagnostic port on my controller where I can plugin my laptop
and observe the internal state of the controller. I am very pleased that such a powerful in-service
diagnostic feature can be added with very little extra code or effort. In short I am now enjoying
writing this code...thanks again.