Різні версії WinAVR поруч

Коли виходять нові версії компіляторів, у більшості випадків варто спершу спробувати нову версію в роботі, не відмовляючись остаточно від старої. Лише після перевірки перейти на нову версію, можливо навіть попроектно. Бажано залишити можливість повернення до попередньої.
Для цього необхідно встановити поруч кілька версій:

avr-gcc folders

Але ж треба якось вказати своїй системі програмування, яку саме версію використовувати. Звісно, при необхідності замінити версію витирати з кореня диску каталог C:\WinAVR та копіювати у нього один з каталогів компіляторів це «дещо незручно».
»»» Прочитати, як це можна зробити зручніше…

Windows7 vs WindowsXP vs Linux

Так-сяк закінчив переїзд більшості робіт на ноутбук. Але на «великому» комп’ютері у мене крім Ubuntu ще була жменя розділів по 4..8 гігабайт з 32- та 64- бітними версіями WindowsXP та Windows7 («виключно з метою ознайомлення нових версій avreal з середовищем, де їм доведеться працювати»). Ставити весь цей зоопарк на ноутбук бажання нема. Але у ноутбука є гніздо eSATA.
»»» Читати далі про мороку з завантаженням Windows

avreal and LPT in Windows

From AVReAl‘s point of view there are two Windows families.

Windows 9X family OS like Windows 98 does not require LPT access driver. avreal uses direct IO access when working in it.

NT-line OS like Windows XP or Windows 7 requires a DLPortIO driver. Driver installation process for 32-bit and 64-bit OS has been described before.

For all Windows versions parallel port number or base address must be set in command line, for example -p1, -p378. Port number is just alias for standard address as it is noted in -p switch description. Fixed 378/278/3BC addresses are used for LPT1/2/3.

Non-standard base address for PCI-LPT (PCI-Express LPT, PCMCIA-LPT) extension board can be found on port properties tab in device manager.

»»» How to see the address of LPT in Windows XP, Windows 7

DLPortIO x64 and 64-bit Windows.

Unfortunately, there is no DriverLINX package (DLPortIO.sys + DLPortIO.dll) for x86-64 (AMD64, Intel64) Windows versions. I didn’t find it at least. Scientific Software Tools, Inc. (http://www.sstnet.com) discontinued the package support.
Fortunately, there is InpOut32 package (hwinterface.sys+inpout32.dll) and 64-bit version InpOutx64 with hwinterfacex64.sys driver.

»»» How to install DLPortIO in 64-bit Windows

DLPortIO and 32-bit Windows.

For Windows NT, Windows 2000 and 32-bit WindowsXP, Windows 7 driver DLPortIO.sys and library DLPortIO.dll can be installed by either of the two installers — GUI and CLI (command-line interface). AVReAl is an CLI program itself so I hope that avreal users are not annoyed with CLI. I recommend to use command-line installer which has a ten times less archive (about 17KB instead of 170KB) but can do the same.

»»» How to install DLPortIO in 32-bit Windows

DLPortIO 32, DLPortIO x64 for Windows XP, Windows 7

avreal has been working correctly under 64-bit versions of Windows for some years. Experts installed right driver and the program worked properly. But of late years I use linux mostly so 64-bit Windows is not very interesting for me.
Now I found enough time, a place and a disk space for testing by myself DLPortIO driver under Windows7/32 and 64-bit DLPortIO emulator under WindowsXP/64 and Windows7/64. dd program worked hardly restoring hard drive partitions from images for many installation attempts on “clean” system by all possible (even incorrect) methods.

So, installation archives was added yesterday to download page. There are two archives for DLPortIO-32 (GUI and command-line installer) and one archive for DLPortIO-64 (command-line installer). You can download and install an appropriate driver.
I will explain all that several days later.


See more:
DLPortIO and 32-bit Windows.
DLPortIO x64 and 64-bit Windows.

LPT and Windows PnP.

Sometimes avreal works unstable with LPT under OS Windows. Programming can be successfull or can fault, for example synchronisation lost.

A reason of these faults may be LPT polling by Windows Plug-and-Play (PnP) subsystem in order to detect connected devices. The polling is made at OS booting which is indicated by adapter LED blinking. Windows also can make the polling during its working. DLportIO.sys driver does not block access to LPT from another programs that why the polling can interfere in the microcontroller programming.

To avoid PnP interference download and run disable-lpt-poll.reg file. As you can see from the text, the file adds registry key which disables LPT polling.

REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Parport\Parameters]
"DisableWarmPoll"=dword:00000001

AVReAl @ XP/64, Windows7/32, Windows7/64

Working of avreal with FT2232C/L/D/H has been checked for WindowsXP/64, Windows7/32 Windows7/64 and CDM 2.06.00 driver. All OK.

[flagcounter image]