FreeEMS Issues - Loader
View Issue Details
0000394LoaderPlatform Specific Commspublic2011-11-15 22:152011-11-16 13:59
Fred 
sean94z 
immediateblockalways
assignedopen 
Apple MacOS X10.6
0.1.0-SNAPSHOT 
0.1.0 
Bug
very low
0000394: Fail, then segfault on mac when trying to load.
As of latest commit dfa067b1229df2282b2aaf2f9f9afa9aaf1ccda7: Connects, but fails, then segfaults when trying to erase :-(
Info: number of burns executed 5
Info: found 3572 loadable records in file
Info: serial monitor already running
Info: Erasing...ERROR, select() timeout! Retrying...
ERROR, FD NOT SET

Illegal instruction
No tags attached.

Notes
(0000585)
Fred   
2011-11-15 22:25   
Previous commit is also busted. Unless the port is screwed... wait, lemme check... no, it's fine.

Info: Erasing...data avail!
data avail!
read 1 bytes
data avail!
data avail!
read 2 bytes
ERROR, select() timeout! Retrying...
data avail!
data avail!
read 2 bytes
Error validating SMErasePage confirmation
data avail!
data avail!
read 1 bytes

Error: Problem communicating with the device, aborting
Info: closing serial port
(0000586)
Fred   
2011-11-15 22:26   
One before that won't even build.


comms.cpp: In member function ‘int FreeEMS_LoaderComms::verifyReturn(SM_COMMAND_TYPE)’:
comms.cpp:334: error: ‘ERROR’ was not declared in this scope
make: *** [comms.o] Error 1
(0000587)
dandruczyk   
2011-11-16 13:50   
for PL2303 related issues you should specify the EXACT copnfig of your machine.
i.e. MAC type, (32/64 bit), OS-X version, PL2303 driver version/type (32/64 bit)

The OS-X PL2303 drivers of various versions have bugs that cause select() to appear as if it is broken.
(0000588)
Fred   
2011-11-16 13:59   
I'm using FTDI __AND__ PL2303 to test this. I posted the version on your issue and it's not the one that you repeatedly link to. I do read your links. Most of the time.

Also, same behaviour on Debian linux with both devices as well, minus the crash...