Running AVRStudio on Linux

Go To Last Post
95 posts / 0 new

Pages

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

Where can I download IE5. I need it to run Studio in Linux...

Thanks.

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

thanks to aor_dreamer I got it working.

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

Now that's interesting! I guess you didn't follow exactly the HowTo since the wine-doors repository is broken for almost two months now, they are getting prepared for the 0.1.3 version. However, I installed AVRStudio using only the winetricks script which is much more easy than my current HowTo. So, here's what you need to do:

- Download the winetricks script and save it to your home folder
- In case you don't use any other progs through wine, delete the .wine folder from your home directory. Then execute:

$wineboot

- Execute the winetricks script:

$bash winetricks

- Select the following packages:

    - corefonts - dcom98
    - gdiplus
    - gecko
    - mdac28
    - msxml3
    - vcrun2005
    - allfonts
    - fakeie6
- Download the latest AVRStudio and install it with:

$wine aStudio4bxxx.exe

- No need to edit the native/builtin mode to any library, they are already configured correctly.
- Launch AVRStudio, it's up and running.

The steps above were tested using wine 1.1.3 in an Ubuntu 8.04 64bit.

So, now I know how ICs work:
they work with smoke.
Cause every time you let the smoke come out of an IC, it stops working.
I can prove it, too...

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

Nice howto. Have you tested using JTAG and ISP programmers using Wine as well s single-step debugging? On a Mac platform, I've been pleased that has worked as well as it has using VMWare. It'd be great if it worked well in Wine as well.

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

Well, I just installed WinAVR 20080610 and set up a simple program with mega128 as target. I simulated step by step with version2 and worked fine. I have successfully used a STK500 with it in the past but I'm not sure if it's possible to use an AvrISP mkII. I've tried it unsuccessfully though. I guess you need to somehow map the device so it will be accessible by Wine but I'm not sure if it's plausible or, in case it is, how to do it. As far as the JTAG is concerned, I never owned one so...:roll:

Any ideas concerning the isp mkII would be more than welcomed.

So, now I know how ICs work:
they work with smoke.
Cause every time you let the smoke come out of an IC, it stops working.
I can prove it, too...

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

I just installed codeweaver CrossOver Linux (Basically a Commercial wine) , they had a free giveaway.

And i have succeded in installing AVR Studio 4.13 SP2 , i have been starting it fine , and it reports 4.13 SP2 .

I did try to install AVR Studio 4.15 , and it installed fine but it never would execute (it didnt even complain , just didnt startup).

Anyone know if the windowsenvironment demands are changed in between 4.13 & 4.15 (I havent had the time to try 4.14 yet) ??

I mean does it require XML4 , i think only xml3 is installed , and what runtimes is needed (visual c i mean) ??

/Bingo

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

Just downloaded Studio 4.14 b589 , winder if that is the latest or i still need to apply the SP1 from the beta site ...

I think Atmels Studio naming leaves a bit to desire :-(

And had to register once again at their server , wonder if they ever get tired of all those "ghost names + email addy's" .... And choose to remember the login , or even let registered users download from freaks.
It's a bit annoying to keep on registering

But i will giwe it a try tomorrow

Anyone running 4.14 or 4.15 in/under Wine ??

/Bingo

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

Found some time to play with AVRstudio 4.15 in Ubuntu 8.10 and managed to install it along with WinAVR. I made a simple project and seems to run fine.
I've updated the previous 8.04 howto to a new one with the steps I made to install it.

Attachment(s): 

So, now I know how ICs work:
they work with smoke.
Cause every time you let the smoke come out of an IC, it stops working.
I can prove it, too...

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

I followed the latest howto under Ubuntu 9.04 with wine 1.1.29, WinAVR 20090313, and AVRStudio 4.17. Despite a minor hiccup during the winetricks, it works fine (ATMega 64 on Simulator) except for avr-objcopy, which dies. And I found the bug I installed it to look for :).

Thanks aor_dreamer!

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

After a long search i found your great howto.
It works fine with my os ubuntu 9.10 , only the package vcrun2005sp1 is not in winetricks but nevertheless it works ok

Thanks again aor_dreamer

Albert

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

Hi. Sorry, for redigging the topic, but I have some difficulties with wine. When I'm trying to install AvrStudio I get error, that file NTGraph.ocx can't be self-registred. Don't really know what that mean (I'm quite a newbie). But beside that, everything goes find. When I try to open AvrStudio I get Runtime C error.

Any suggestions what could be the problem??

Cheers anyhow!
David

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

Quote:
Well, I am running Avrstudio 4.12 on Linux since a while ago (from Wine 0.9.14 I think) and I can confirm that JTAG-ICE and Avrprog (for avr910 programmers) are working correctly. However, there are some prerequisites for Avrstudio to run on linux such as Internet Explore (5,6,etc) and at least one native dll (msxml3 I think).

Could u pls elaborate the part in BOLD?

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

Quote:

Could u pls elaborate the part in BOLD?

Please don't cross post.

Moderator.

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

I'm using arch linux (crazy, I know) and I've gotten AVRStudio 4.18 to run under wine 1.3.10, but when I try to connect to the programmer, it tells me it can't connect--here's the wierd part though, in the output box at the bottom of the connection window, it shows "Detecting on 'COM1'...
STK500 with V2 firmware found on COM1
Getting revisions.. HW: 0x02, SW Major: 0x02, SW Minor: 0x0a .. OK
Getting isp parameter.. SD=0x0a .. OK"
and then the pop up box comes saying
"Could not contact the programmer. See the command output for more info"
Any ideas why this is happening? It looks like it's connecting just fine, except for that message, but then if I try to read fuses or do anything else, the popup just keeps reappearing!

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

fowdawgg wrote:
I'm using arch linux (crazy, I know) and I've gotten AVRStudio 4.18 to run under wine 1.3.10, [...]it shows "Detecting on 'COM1'...
STK500 with V2 firmware found on COM1
Getting revisions.. HW: 0x02, SW Major: 0x02, SW Minor: 0x0a .. OK
Getting isp parameter.. SD=0x0a .. OK"
and then the pop up box comes saying
"Could not contact the programmer. See the command output for more info"
Any ideas why this is happening?
wine is to slow for com constantly at 115200bps from user acount. avrdude runs better... ;)

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

Thanks for the heads up. Although I'm not sure why wine would be too slow, since it's just an interpreter layer. I'm now just using avrstudio in VirtualBox and it's running just fine (easily mapped the serial port into the vbox in the settings menu)

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

fowdawgg wrote:
Thanks for the heads up. Although I'm not sure why wine would be too slow, since it's just an interpreter layer.
Interpreter needs some time to interprete... Short pack of bytes can be transmited freelly @115200bps, but longer one will be lagged. Tested with some communications with AVR and my app on WinXP. In communication protocol I've implemented CRC+retransmision, so it still worked, but most slowly. Virtual machines in modern processors are supported by hardware, so virtualisation can work faster...

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

(puppy linux 5.4.3 (Precise))
I have installed AVRStudio 4.15 (astudio4b623.exe).
Works ok when I make a project in assembly.
BUT, when I'm trying to make somethinh in C (Project type: AVR - GCC) it crashes. Gives me the message shown in the attachment.

In the second attachment you can see the libraries installed in Wincfg.

Attachment(s): 

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

Version 4.15 is very old, the last version of AS4 is 4.19, many people still use AS4.18 SP3 with winAvr 20100110.
Which version of winAvr are you using? It may not be compatible with 4.15.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

I installed the file WinAVR-20100110-install.exe, so I guess the version is 20100110.

Before 4.15, I had 4.19, but it did me the same thing. That's why I thought trying 4.15.

Also, forgot to mention, dcom98 didn't manage to install.
Also, Internet Explorer for linux, didn't manage to install.

In the list of the libraries in the attachment, you 'll notice a missing library, msxml3. I removed it, because with it AVRStudio does not start at all.

Last Edited: Wed. May 1, 2013 - 08:31 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

That's why I thought trying 4.15.

Why would going back to older (almost certainly buggier) software help?

Anyway, why not just use VirtualBox and actually run Windows XP as trying to use Wine for this stuff is always going to be "fraught".

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

Because in this thread everybody uses 4.15, so, I thought, that this is the working version for linux.

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

Quote:

Because in this thread everybody uses 4.15,

That's more to do with the thread being from 2006 I believe.

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

I can't make virtualbox work: :(
"WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.2.29) or it failed to
load. Please recompile the kernel module and install"

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

4.18 SP2 may work.
4.19 - a re-opened Wine bug.
Could try on an earlier version of Wine or by winetricks.
Ref.
WineHQ, AppDB, AVR Studio / Atmel Studio

"Dare to be naïve." - Buckminster Fuller

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

gchapman wrote:
4.18 SP2 may work.

I just tried it, it doesn't work.

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

good day!

 

who could have run the AVR ISP MKII? (natural atmel flasher on wine)

target: wine + avr-studio-4 + avr-isp_mkII

thank

 

 

if I'm wrong, correct this and do not criticize :o)

Last Edited: Wed. Apr 11, 2018 - 03:01 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Why would you need wine for that? You don't need Windows EXE files to drive an AVRISPmkII. The Linux build of avrdude will happily drive the Atmel programmer.

 

As the user manual for avrdude tells you:

 

https://www.nongnu.org/avrdude/u...

 

the option to use an AVRISPmkII is "-c avrisp2" or "-c avrispmkII" (your choice).

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

avrdude with linux - i'm use every day

I asked exactly what I need to know

thanks

 

p.s.

target: wine + avr-studio-4 + avr-isp_mkII

if I'm wrong, correct this and do not criticize :o)

Last Edited: Wed. Apr 11, 2018 - 03:02 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sunjob wrote:
(natural atmel flasher on wine)
Though the following is for commercial Wine on macOS similar might work on Linux.

CodeWeavers

CrossOver Support

How do I get a USB device to work in CrossOver 16.x and older?

https://www.codeweavers.com/support/wiki/mac/faq/usbtoserial

via

CodeWeavers

CodeWeavers

CrossOver Support

Community Forums

ATMEL Studio 6 and 7

https://www.codeweavers.com/support/forums/general/?t=27;forumcurPos=100;msg=193794

CrossOver 17 has USB HID, Windows 7 emulation, and feeds into Wine 3.

 

"Dare to be naïve." - Buckminster Fuller

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

thank, I will do an experiment

 

p.s

wine + avr-studio-4 + avr-isp_mkII

--> avr-studio-4

 

p.s.2

but my older ver. of linux sl12.2

 

cxoffice - need Python 2.6 (can't start)

- 17.0.0
- 16.2.5
- 15.1.0

 

and more...

 

normal start & boot - crossover-9.x version

 

if I'm wrong, correct this and do not criticize :o)

Last Edited: Thu. Apr 19, 2018 - 07:03 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

WineHQ Wiki

Wine User's Guide

4 Configuring Wine

4.3 Other Things to Configure

4.3.1 Serial and Parallel Ports
https://wiki.winehq.org/Wine_User%27s_Guide#Serial_and_Parallel_Ports

Since Wine 2.8, serial and parallel ports are detected automatically when Wine starts. 

...

If you use a version of Wine prior to 2.8, you'll likely have to create symbolic links in ~/.wine/dosdevices yourself. 

...

 

"Dare to be naïve." - Buckminster Fuller

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

thank, I will do an experiment with wine smiley

if I'm wrong, correct this and do not criticize :o)

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

sunjob wrote:
but my older ver. of linux sl12.2
Slackware if I read that correctly ... brings back good memories smiley

Couldn't find Wine or cxoffice in the Slackware package search but Wine is packaged for Slackware elsewhere.

https://sourceforge.net/projects/wine/files/Slackware%20Packages/

via https://wiki.winehq.org/Download

 


http://www.slackware.com/

 

"Dare to be naïve." - Buckminster Fuller

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

yes, Slackware smiley

"url-s and packages" - it's all not a problem, to find and do...

 

The biggest problem for old Linux is the old system libraries, because of which new software is not going to or does not work correctly.

Thank you

 

### update ###

 

wine-2.14 - can't connected to USB AVR MKII ... (you need to watch the various patches)

if I'm wrong, correct this and do not criticize :o)

Last Edited: Sat. Apr 21, 2018 - 02:26 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sunjob wrote:
wine-2.14 - can't connected to USB AVR MKII ...
IIRC, AVR Studio goes via Jungo as the USB driver.

Is Jungo installed?

Reason :

CodeWeavers

CodeWeavers

Forum for AVR Studio 4

Runs at Crossover 10

by Björn Kalkbrenner

2011-06-02

https://www.codeweavers.com/compatibility/crossover/forum/avr-studio-4?msg=107340

[AVR Studio 4.18 SP3, Atmel AVR GCC 3.0.0]

...

- flashing with STK600 (and maybe also not AVR Dragon) does _not_ work due to a specific USB driver which is not installed/seen. You can use AVRDude native on linux for flashing and setting fuses. Maybe STK500 may work.

 


http://www.microchip.com/avr-support/avr-and-sam-downloads-archive

 

"Dare to be naïve." - Buckminster Fuller

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

this AVRJungoUSB.exe?

yes, but return error:

 

wine ./AVRJungoUSB.exe
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}
fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046}
fixme:apphelp:ApphelpCheckInstallShieldPackage stub: 0x33ef6c L"C:\\users\\xxx\\Temp\\{EC15CEC6-A466-4FE3-855B-F62701C8FD8F}\\Disk1\\data1.hdr"
WDREG utility v10.21. Build Aug 31 2010 14:42:01

Processing HWID *WINDRVR6
fixme:setupapi:SetupDiCallClassInstaller 25 0x140098 0x33fad0
Error: Failed to install driver for virtual device
Error calling class installer register: No more data available.

Error: Failed trying to install the driver

 

despite the error in the console - there was no error in the GUI, and the installation was sold and ended without warning

 

if I'm wrong, correct this and do not criticize :o)

Last Edited: Sat. Apr 21, 2018 - 07:41 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sunjob wrote:
this AVRJungoUSB.exe?
Yes (that looks like it) but is there an installer for Jungo (a Jungo cab or msi or self-install exe)?

(I don't recall where the AVR Studio operators manual is)

sunjob wrote:
yes, but return error:
Possibly:

  • incompatible Wine
  • can load alternate DLL from winetricks (IIRC, actual DLL instead of thunked DLL)
  • a more recent Jungo
  • libusb instead of Jungo

Is a compatible Internet Explorer installed?

Reason: previous posts in this thread

 

P.S.

Is STK500 (AVRISP) an acceptable alternative to Atmel AVRISP mkII?

Reasons:

  1. STK500 might only need a COM port (via a Windows XP USB CDC driver) (iow no Jungo)
  2. Don't need PDI or TPI

A disadvantage is having to acquire an AVR programmer that's STK500-compatible but these are relatively inexpensive.

 


CodeWeavers

CodeWeavers

CrossOver Mac, Linux and Chrome OS

ChangeLog

https://www.codeweavers.com/products/more-information/changelog

...

 

10.0.0 CrossOver - January 24, 2011

  • ...

(last)  

    • CrossOver is now merged with Wine 1.3.9. This includes countless improvements and will no doubt also produce countless regressions.

https://wiki.winehq.org/Winetricks

C-coding ATmega32 using AVR Studio4, on Windows 8.1 (64-bit)

by CRT13

https://www.avrfreaks.net/forum/c-coding-atmega32-using-avr-studio4-windows-81-64-bit

...

https://www.avrfreaks.net/forum/c-coding-atmega32-using-avr-studio4-windows-81-64-bit#comment-2448006

Note: Atmel USB drivers 7.0.888 might work on Windows XP and will work on 8.1 and 10.

Zadig

Downloads

http://zadig.akeo.ie/downloads/

via http://zadig.akeo.ie/

[Note: for Windows XP in Zadig versions 2.2 and earlier]

Pololu Robotics and Electronics

Pololu

5.3. AVR programming using AVR Studio 4

https://www.pololu.com/docs/0J67/5.3

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
  • libusb instead of Jungo

libusb for USBasp

Linux Mint with Win XP in Virtual Box

https://www.avrfreaks.net/forum/linux-mint-win-xp-virtual-box

by Plons

[AVRISP mkII is in a few posts in that thread; udev rule]

...

https://www.avrfreaks.net/forum/linux-mint-win-xp-virtual-box?page=1#comment-1893136

 

"Dare to be naïve." - Buckminster Fuller

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

1. crossover - only 9.x version (other higher version - is not compatible sl12.2)

2. driver-atmel-bundle-7.0.888.exe and zadig_xp_2.2.exe - can't install on wine ver. 1.7.24 & 2.14

3. AVR ISP MKII - only this flasher (and "main" fish ver. USB_ISP flasher)

4. on linux all develop tools & soft - no problem, all everything works great

 

avr-studio4 on wine - Need for a convenient study of avr-studio-programming by articles (about avr-studio4)

basically everything is done in linux (no problem)

 

I apologize for the mocked translation of English... Thank

 

if I'm wrong, correct this and do not criticize :o)

Last Edited: Sat. Apr 21, 2018 - 09:48 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sunjob wrote:
1. crossover - only 9.x version (other higher version - is not compatible sl12.2)
CodeWeavers CrossOver 9?

If yes then that's linked to Wine 1.1.34 and 1.2 and 1.2.1; may not have a USB capability in Wine 1.

First mention of USB may be in Wine 2.0

sunjob wrote:
2. driver-atmel-bundle-7.0.888.exe and zadig_xp_2.2.exe - can't install on wine ...
If the COM appears in dosdevices and it's simple USB CDC then might not need a Windows USB driver (assumes the device exists and there's a correct udev rule for it)

sunjob wrote:
... & 2.14
What Wine 2 is available for sl12.2?

sunjob wrote:
I apologize for the mocked translation of English...
You're doing well on that; only glitch is in brevity of software versions (I tend to guess wink

sunjob wrote:
Thank
You are welcome!

 


https://www.codeweavers.com/products/more-information/changelog

https://www.winehq.org/announce/2.0

...

*** Kernel

- A new driver architecture is in place for supporting HID devices.
  This follows the Windows model, with platform-specific bus drivers
  and HID minidrivers. It will be used in future releases to unify
  support for HID devices, and potentially also for USB device
  support.

...

via

WineHQ - News - Wine 2.0 Released

https://www.winehq.org/news/2017012401

https://www.winehq.org/announce/2.8

...

  - Better serial and parallel ports autodetection.

...

https://www.avrfreaks.net/forum/running-avrstudio-linux?page=1#comment-2451271

 

"Dare to be naïve." - Buckminster Fuller

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

If the COM appears in dosdevices and it's simple USB CDC

 

no, com & usb - can't view on dosdevices

 

... & 2.14
> What Wine 2 is available for sl12.2?

 

wine-2.14 is max version, may build on my slackware-12.2 (other highers version - can't build)

all open-source projects - i'm make&build self (edit and patch slackBuild-s etc...)

 

the result: wine-2.14 is the maximum version that I can "use" naturally, if possible, edit/patch/fix bugs with the help of the public laid out patches (keep wine up to date as long as possible)

 

and, in fact, version 1.7.4 - I was not censured, I worked perfectly

 

in theory, 2.14 should already work fine with COM & USB ports (even better than before), maybe I did not fully understand, we will understand, search and achieve ...

 

thank

 

p.s. 

if I can not run "AVR-STUDIO" together "USB_ISP_MKII" - it does not matter

:o) in my favorite Linux everything works fine:

 

- geany & setup for avr & arduino 
- makefile - for my favour variants
- atmel-toolcains multi-version & genuine avr-gcc 
- and additionally, I want to configure in the future for the operation of 'QT-Creator'

so that the complete set for happiness: o)

if I'm wrong, correct this and do not criticize :o)

Last Edited: Sun. Apr 22, 2018 - 04:41 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sunjob wrote:
in theory, 2.14 should already work fine with COM & USB ports (even better than before), ...
Wine 2.14 should auto-detect an active devfs entry with a valid udev rule (connect AVRISP mkII to powered USB hub, start wine, entry in dosdevices); else, create the link in dosdevices, wine AVR Studio, did a COM appear in AVR Studio and it's functional?

Might try the same with a Windows AVRDUDE (can diagnose with it) as same version AVRDUDE is likely functional on the Linux side.

sunjob wrote:
- and additionally, I want to configure in the future for the operation of 'QT-Creator'
Qt Creator is one of the IDE that can integrate with PlatformIO.

PlatformIO has the Arduino framework, is on Linux (via Python 2.7), but is for a subset of the AVR range that AVR Studio has.

sunjob wrote:
so that the complete set for happiness: o)
That is good to read!

An AVR simulator can be used for some unit tests so hopefully that's available via AVR Studio.

 


http://docs.platformio.org/en/latest/ide/qtcreator.html

http://docs.platformio.org/en/latest/installation.html#system-requirements

http://docs.platformio.org/en/latest/platforms/atmelavr.html#boards

 

"Dare to be naïve." - Buckminster Fuller

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

thanks!

if I'm wrong, correct this and do not criticize :o)

Pages