New USB Installer in the pipes

Go To Last Post
32 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

For those that have been waiting eagerly, the new USB installer is now making its way through the pipes and should be awailable on gallery.atmel.com in day or so. For those that can't wait, I have sneaked it up to distribute.atmel.no as well. The new version without the windows 8 issues are from the 7.0 series, where the older installer was in the 6.2 series.

 

The 7.0 installer should upgrade the older installer seamlessly. The troublesome 16-bit error during driver registration is replaced with the DifxApp extension to the WiX system.

 

The installer has been tested on Windows XP up to Windows 10 without issues. Strong signing is now used, so the security popups should now be reduced (1 for jungo, 1 for Atmel on windows 7, less on other versions). Install speed has increased on most platforms, although Windows XP is still slow. This is due to issues in the authenticode system in XP, which is triggered for each inf file we register.

 

If you have issues, run the installer with a '/log log.txt' argument and attach the log files that are generated (1 called log.txt, and 1 txt file for each sub-installer, i.e jungo, segger,libusb,winusb and atmel).

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

Last Edited: Wed. Feb 11, 2015 - 02:30 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The drivers loaded fine here in 8.1, 10, and 1x.

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What is 1x?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Some issues were found in the original 7.0 installer: error in Jungo registration causes atbackend to fail to load.

 

 

I have updated the original link to the new 7.0.666 version that fixes the issues.

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Morten (it's easy when I can see it written down in front of me!),

 

Does that mean the recent AS6.2SP2 is similarly afflicted then?

 

I haven't actually grabbed it yet but if it's to be amended I'll hold off for a bit longer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Does that mean the recent AS6.2SP2 is similarly afflicted then?

Yes. sad

 

However, upgrades are not affected for this. However, we have gotten reports that ASF fails to register if the SP2 upgrade is installed on a SP1 version where ASF have been upgraded in between... (its been a hell of a day, to say the least)

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

Last Edited: Wed. Feb 11, 2015 - 04:19 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Now I'm confused (easily achieved!)

 

Are you saying that if I have 6.2SP1 then get and install 6.2SP2 that it wasn't going to upgrade my USB drivers anyway? I was rather hoping it would. In fact that was going to be one of my main reasons for upgrading.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Are you saying that if I have 6.2SP1 then get and install 6.2SP2 that it wasn't going to upgrade my USB drivers anyway?

Yes it is. However, the issue is not with the drivers itself.

 

Basically:

  • The Jungo msi (part of the drive package) deploys the wdapi userland driver dlls into system32 (and syswow64).
  • atbackend then picks up the correct wdapi dll from system32 through the normal load path.
  • If wdapi is not loadable, for some internal as quite obscure reason, the simulator bundle (part of atbackend) fails to load. This is probably just the tip of a bundle load error cascade, meaning that the connection bundle also doesn't load. The connection bundle is the abstraction over usb, serial port etc which also covers discovery.
  • Backend crashes, leaving the frontend all alone.

 

However, the 464 seems to fail silently when there are NO wdapi files from before, which sort of defeats the point. 666 Copies in a different way, and will also fail hard if the copy fails. However, all usb installers since the early days have deployed these dlls, so the issue is only seen on totaly clean machines (for now, I have only reports for windows 7 as well).

 

Another issue that has been reported during the last 24 hours is also that ASF fails to load into Atmel Studio, causing much strangeness. Currently, it looks like it is because we install the same version as the one on the gallery. However, the registration of ASF has already de-registered ASF from Atmel Studio before it sees that there shouldn't be any new install, and it fails to re-enable the registration. This seems to have some inpact on the project system as well, somehow (still to be analysed). If you have the ASF from SP1, then there is a real upgrade and everything is seemingly honky-dory.

 

(reading over this, I think it's time to stop drinking coffee)

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

meolsen wrote:
I have updated the original link to the new 7.0.666 version that fixes the issues.

Thank you!  Fixes a lot of things for me.

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Lets hope this is the one :) Should be good with build number 666.

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

A bit more detail of what I did when installing the new 7.0.666 drivers.  I use Windows 8.1 and 10.  The instructions may be different from what you need to do, but should achieve the same result.

 

  1. Uninstall the Atmel USB Driver Package via Programs and Features.
  2. Uninstall all device driver instances (Atmel-ICE, AVRisp-MKII, etc.) in the device manager each time ticking the "Delete the driver software for this device" checkbox.
  3. Repeat the last step after disconnecting and reconnecting the USB cable until the device shows up in "Other devices" with a yellow exclamation mark.  This sequence insures that you do not have any left behind artifacts of bad drivers for the devices on your computer.
  4. Disconnect all programmer/debugger devices from your computer.
  5. Run the new 7.0.666 driver installer.

 

If you are considering upgrading to Atmel Studio 6.2sp2, and I suggest that you do so, install AS6.2sp2 first, then run the 7.0.666 driver installer.  Make sure that none of your programmer/debugger devices are not connected to the computer while you are doing these installs.   

 

 

 

 

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

Last Edited: Wed. Feb 11, 2015 - 09:12 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Morten, I spoke too soon.  Where did the simulator go?  A bunch of my projects that I used to be able to simulate do not even show the simulator as an option anymore. :\

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do you have any other tools? Simulator not showing usually means that atbackend has crashed. Can you run atbackend from the atmel studio command line?

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have all of the other tools, well the ones I have are all listed.

 

How many files are there supposed to be in "C:\Program Files (x86)\Atmel\Atmel Studio 6.2\tools\Simulator\models" ?

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

Last Edited: Thu. Feb 12, 2015 - 08:54 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quite a few dlls...

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

meolsen wrote:

Quite a few dlls...

Very specific...  More than 54?  Select them all in Windows explorer and it will tell you how many in the bottom left of the window. wink

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
C:\Program Files (x86)\Atmel\Atmel Studio 6.2\tools\Simulator\models>ls
ffwAPI.dll           libatmega64a.dll    libattiny88.dll
libat32uc3a0512.dll  libatmega64hve.dll  libattinyn.dll
libat32uc3l064.dll   libatmega8a.dll     libatxmega128a1u.dll
libatmega128.dll     libatmegaapb.dll    libatxmega128a4.dll
libatmega1280.dll    libattiny10.dll     libatxmega128b1.dll
libatmega1284P.dll   libattiny13A.dll    libatxmega256a3u.dll
libatmega164P.dll    libattiny1661.dll   libatxmega32a4u.dll
libatmega168p.dll    libattiny20.dll     libatxmega32c4.dll
libatmega169P.dll    libattiny25.dll     libatxmega384c3.dll
libatmega16a.dll     libattiny3234.dll   libatxmega64c3.dll
libatmega256.dll     libattiny40.dll     libatxmegae5.dll
libatmega324P.dll    libattiny4313.dll   libcarbon5.dll
libatmega328P.dll    libattiny43U.dll    libcarbonaux.dll
libatmega3290P.dll   libattiny45.dll     msvcr70.dll
libatmega32a.dll     libattiny48.dll     msvcr71.dll
libatmega32hvb.dll   libattiny828q.dll   pthreadGC.dll
libatmega644P.dll    libattiny84a.dll    rlm1112.dll
libatmega6490P.dll   libattiny85.dll     vtoc.dll

54 in total...

 

What happens if you run atfw instead of atbackend (just do a dummy atfw --list or similar)

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
C:\>atfw --list
Connected tools:
atmelice        J41800034427
avrispmkii      <n/a>

I also show 54 files total.  atbackend is up and running.

 

I changed the device in one of the projects that uses an ATtiny2313 to a different device and then back to the ATtiny2313 and the simulator now shows up in the drop down list and it works.  Something is still not right with AS6.2sp2 and the new drivers, at least not here on this machine.

 

I need some sleep, I'll be back in a few hours.

 

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm thinking this is not a driver issue, but a project issue... The driver issue would cause atbackend to crash, but has no effect on Studio. The fact that simulator pops up is that that is the run-time component that first accesses the usb system. atfw is actually better at showing the driver issues, since it uses the connection system directly, and actually logs problems (try to do a 'atfw --list --verbose 8' to show more logs, since I was sort of hoping that the isp2 would have a serial...)

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
C:\>atfw --list --verbose 8
10:19:03: [init] Initializing logging subsystem
10:19:03: [init] Logging to file: C:\Users\Larry\AppData\Local\Temp\atfw.855b-76ca-b53a-82b1.log
10:19:03: [init] Finished initializing logging subsystem
10:19:03: [cli] Connected tools:
10:19:03: [cli] atmelice        J41800034427
10:19:03: [cli] avrispmkii      <n/a>
10:19:03: [cli] Starting execute stage
10:19:03: [cli] Wanted help, returning

The isp2 is a LUFA clone.  Though it does not install as it used to either.  It also used to display the serial number.  It still does in avrdude mode.

 

It now only shows up as an AVRISP mkII under libusb-win32 devices and not an AVRISP mkII under Jungo in the device manager.  This allows it to work in AS, but it does not report a serial number there in the drop down lists.

 

If I do bind it via the avrispmkii.inf it shows up as an AVRISP mkII under Jungo in the device manager and it shows a serial number in AS but it does not work.  This used to work correctly before AS6.2sp2 and the driver changes.

 

The fact that I had to switch to a different device and back to get the simulator to show up in the drop down list is a mystery.  I still have other projects that are not showing the simulator either, and other people have posted as having the same problem with the simulator not showing up.  I do not think this is a project specific issue at all.

 

Sorry to say, but this driver situation has only gotten more bizarre with each iteration.  I'm getting rummy, not even coffee will help now, good night, or rather, have a good day.

 

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

Last Edited: Thu. Feb 12, 2015 - 07:05 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry to say, but this driver situation has only gotten more bizarre with each iteration.  I'm getting rummy, not even coffee will help now, good night, or rather, have a good day.

Hehe, rummy is usually a good thing over here (it involves rum).

 

I still stand, if you are able to talk to the usb devices, then this has nothing to do with the drivers. Why the simulator has to be reselcted is extremely weird...

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can the arguments/switches for atbackend.exe be passed after install ?

 

Uneeded, simulator now working cheeky

 

Install 6.2 , move to C:\Program Files\Atmel\Atmel USB Driver\Jungo\usb32 & copy wdapi1010.dll to system32.

Either reinstall studio or extract the Backend.msi from the installer & repair install, enjoy devil

Last Edited: Sat. Feb 14, 2015 - 11:23 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I would rather have a sanctioned fix from Atmel, thank you.

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Install 6.2 , move to C:\Program Files\Atmel\Atmel USB Driver\Jungo\usb32 & copy wdapi1010.dll to system32.

Which is what the new driver installer does. Are you saying that you had to manually copy the dll even with the new installer linked above (build 666)?

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have crap internet & can't download willy nilly, i took from AStudio6_2sp2_1548net.exe & didn't use 7.0.666, works for me.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

@tricky_dicky, So when I posted this in the other thread

If you read that whole thread you will see that it discusses the atbackend issue.  That is what the newest, 7.0.666 version, driver install was supposed to fix.  ...

you ignored what I said about the driver and didn't even try it first before going off on a tangent and doing your own work around.  Is that correct?  Sort of wasted our time if it is.  

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

build 666

You will need an exorcist to fix this version.......

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have crap internet & can't download willy nilly, i took from AStudio6_2sp2_1548net.exe & didn't use 7.0.666, works for me.

Stated i didn't use 7.0666,  indeed read your posts betweem morten & yourself even the post after you installed 7.0.666 & stated the simulator still didn't work?!?

Without anywhere in these posts did it describe in detail what the fix does, i spent 4 hours of my own time fixing the problem for me & stating what i did.

 

Sorry for wasting your time!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I stated that it did not work initially, but then I explained a procedure that got the simulator back in my project.  If you had downloaded and installed 7.0.666 and done what I suggested, instead of just saying the procedure didn't work, you would have saved everybody some time and effort.  Sorry for seeming a bit miffed.  In the end it all worked out and that is the important factor.

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Just linking to some info about latest USB driver ver. 7.0.712:

https://www.avrfreaks.net/comment/1486221#comment-1486221