An update to this thread for completeness:
I have had another go at running ZDS II Encore IDE under Wine in Linux and believe I have solved connecting to the Serial Smart Cable. Details as follows:
Linux distribution: Mint Release 13 (Maya)
Linux kernel: 3.2.0-23-generic running on AMD Athlon II X2 260
Wine version: 1.4
ZDS II Versions tested : eZ8 Encore 4.11 and 5.0
Initially, the PC was powered up first, the smart cable connected and then the target board powered up. However, the IDE would not connect to the Serial Smart cable at all.
After some searching, I realised that for Wine to connect Windows COM1 to the Linux serial port (/dev/ttyS0), wine had to be correctly configured. I went into the appropriate wine directory which contains the dos device mappings:
$ cd .wine/dosdevices
and then listed the symlinks showing the mapping ("user" will be replaced by your actual login name):
user@user:~/.wine/dosdevices$ ls -l
lrwxrwxrwx 1 user user 10 Apr 23 2011 c: -> ../drive_c
lrwxrwxrwx 1 user user 10 Apr 23 2011 com1 -> /dev/ttyS0
lrwxrwxrwx 1 user user 10 Apr 23 2011 com2 -> /dev/ttyS1
lrwxrwxrwx 1 user user 11 Apr 23 2011 d: -> /media/disk
lrwxrwxrwx 1 user user 9 Apr 23 2011 d:: -> /dev/sdg1
lrwxrwxrwx 1 user user 9 Sep 22 2011 e:: -> /dev/sdd1
lrwxrwxrwx 1 user user 8 Dec 23 2012 f:: -> /dev/sr0
lrwxrwxrwx 1 user user 1 Apr 23 2011 z: -> /
As can be seen, COM1 is correctly mapped.
As I still could not connect, it occurred to me that I had to belong to the same group as the serial port. This is checked via the ls command:
$ ls -al /dev/ttyS*
crw-rw---- 1 root dialout 4, 64 Jul 17 22:42 /dev/ttyS0
crw-rw---- 1 root dialout 4, 65 Jul 17 19:17 /dev/ttyS1
I attached my user ID to the dialout group:
$ sudo gpasswd -a user dialout
I fired up Wine and ZDS II again and this time, I was at least able to get ZDS to detect the smart cable but was unable to connect to the target. Any attempt to connect would get an instantaneous error message:
Target read/write error. (ERR_DTLI_SERIAL_ERROR)
I then logged out and back in and found that this time, ZDS would try and connect with the progress bar getting to 38% before the same error message would appear. I tried various serial port speed settings in the Project/ Settings/ Debugger menu in ZDS without luck using the "setserial" command in Linux to check the serial port settings matched ZDS:
$ setserial -a /dev/ttyS0
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
Baud_base: 115200, close_delay: 50, divisor: 0
Flags: spd_normal skip_test
This appeared to have no effect and I eventually switched off the PC after many failed attempts.
I returned to try my luck again today and this time, the target board and serial smart cable were powered up and connected to the PC before
switching the PC on. The system worked first time with ZDS detecting the serial smart cable, connecting to the target and set up ready for debugging the already loaded code (Blinking LED test program). Apparently, the Debugger serial port speed settings don't affect connecting to the target.
1. Power up smart cable and target board before switching PC on.
2. Check that wine correctly maps COM1 to your selected Serial port.
3. Make sure you belong to the same group (usually "dialout") as the serial port.
4. Check that the serial port exists and is configured correctly using the "setserial" command.
If someone can verify what I have done, then it would make this a workable solution for ZDS under Linux/ Wine.