USB & Linux

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

So is there no way on Earth that you can use the RS232 port in Linux running Studio 4 in Wine....

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

Hi Billy,

I use my HVProg (STK500 clone) without any problems. Look at http://english.devmind.ks.ua/2010/02/avr-studio-in-linux.html

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

Quote:

So is there no way on Earth that you can use the RS232 port in Linux running Studio 4 in Wine....

Nope, Studio looks for WinDOS named devices COM1..COMn while the Linux devices are /dev/tty* - it actually seems like a deficiency in Wine if it cannot map between them but I guess you need something more like a Virtual Machine to do that? Certainly if you ran Vbox in Linux then you could run Studio in Windows within a guest machine and it would "see" COMn ports but to do this you'd need a licensed copy of Windows

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

From link above:

Quote:
The last problem. AVR Studio can not see connected STK500 (modified HVProg) analog. Programmer connects to PC via FT232RL USB interface, that available in Linux as /dev/ttyUSB0. Studio, as program for Windows, searches programmer on COM ports.

That is easy. Create symbolic link (as root):

#ln -s /dev/ttyUSB0 /.wine/dosdevices/com1

/dev/ttyUSB0 - physical device (e.g. real COM port: /dev/ttyS0);
- user home path;
com1 - Windows port name (e.g. lpt1 for parallel interface).

Programmer is found automatically and works fine. Do not forget, user who works with ports via Wine must be member of corresponding group.