On 11/23/05, Olin Lathrop wrote: > Xiaofan Chen wrote: > > "C:\embedinc\com>pic_read -SIO 1 -hex read.hex > > fixme:comm:GetCommProperties (0x44 0x7789ed50 ) > > fixme:comm:SetupComm insize 2048 outsize 2048 unimplemented stub > > > > Therefore I think Wine's serial support is not so good. > > Yeah, it's a good clue when it says "fix me". > > I'm a bit surprised that it's complaining about a call to GetCommProperties, > since that's pretty main stream. The SetupComm call is a bit more unusual > in that I specifically try to set the input and output buffers to at least > 2K bytes. This isn't actually required by the PICPRG software, but is done > deep down in the serial line support of my OS interface layer. A while back > I had problems on some systems that decided to provide only very small > serial buffers. I then changed my low level Windows interface to always > request 2Kbytes. There is a way for Windows to tell the app to stick it, > and my software can handle that. That would sound like an easy expedient > for Wine. It can use a fixed size and just refuse requests to change it. > I am interested to get pic_read and pic_prog work under Linux with Wine. Therefore I googled a bit and it is said that latest Wine is better. Then I just upgraded to the latest Wine version. It seems the serial support is now much better. At least it find the Wisp628 and device ID with xwisp2w. I guess it might work after some tweaking. This may not be of much use since xwisp2 works natively under Linux. Still this can be a good start for porting pic_read and pic_prog to work under Wine even it still failed to find the programmer now. At least the warning messages are gone. Accoding to the README file of xwisp2w, Jan-Erik Soderholm write the Windows code. Regards, Xiaofan C:\xwisp2181>xwisp2w baud 9600 com1 erase xwisp2 version 1.8.01 for Windows (Oct 24 2005, Open Watcom C 1.30) Programmer Wisp628, firmware version 1.10 Detected target: 18F252 revision 04 (ID=0404) SendReceiveFast read timeout, received 0 of 5 xwisp2 failed after 15.58 seconds, rc 21! C:\embedinc\com>pic_read -sio 1 -hex test.hex No response was received from the programmer. The programmer may be powered off or not connected to COM1. Error occurred on attempt to open a new use of the PICPRG library. *** Program aborted on error. *** -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist