?Solved? - SimpleIDE 0-6-3 on Fedora 16 - NO PROPELLER CHIP FOUND!
mindrobots
Posts: 6,506
I loaded the latest propgcc on my Fedora 16 laptop and the toolchain appears to work just fine. It makes fine and finds all its pieces.
I loaded SimplDE-0-6-3 and it runs fine as an IDE and compiles without a problem.
The problem comes up when it exectues propeller-load. It executes this command and I get this message:
propeller-load -b QUICKSTART -p /dev/ttyUSB0 a.out -r
error: no propeller chip on port '/dev/ttyUSB0'
My QUICKSTART is on /dev/ttyUSB0 and the IDE finds that port.
I was questioning drivers, permissions and the hardware, so I loaded the "hello world" example into EEPROM from my windows system (0.6.4 works great over there) and connected it up to the Fedora system and opened up the terminal in SimpleIDE and out came "hello World" message from the QUICKSTART. So we have communication. If I turn around and try to load fromteh Fedora box, I get teh above message.
The Quickstart has the "optional" pullup resistor. Same cable and same Quickstart are being used on Win7 and Linux.
I'm in the group dialout for the /dev/ttyUSB0 device.
[rapost@C3PO ~]$ ls -l /dev/ttyUSB0
crw-rw----. 1 root dialout 188, 0 Apr 12 11:41 /dev/ttyUSB0
Resets to the port work, input from the port works, just can't load anything. Other than this small issue, the IDE looks great on Win7 and Linux!
I've reached the end of my Linux device debugging knowledge - anybody have any thoughts or suggestions??
Thanks!!
I loaded SimplDE-0-6-3 and it runs fine as an IDE and compiles without a problem.
The problem comes up when it exectues propeller-load. It executes this command and I get this message:
propeller-load -b QUICKSTART -p /dev/ttyUSB0 a.out -r
error: no propeller chip on port '/dev/ttyUSB0'
My QUICKSTART is on /dev/ttyUSB0 and the IDE finds that port.
I was questioning drivers, permissions and the hardware, so I loaded the "hello world" example into EEPROM from my windows system (0.6.4 works great over there) and connected it up to the Fedora system and opened up the terminal in SimpleIDE and out came "hello World" message from the QUICKSTART. So we have communication. If I turn around and try to load fromteh Fedora box, I get teh above message.
The Quickstart has the "optional" pullup resistor. Same cable and same Quickstart are being used on Win7 and Linux.
I'm in the group dialout for the /dev/ttyUSB0 device.
[rapost@C3PO ~]$ ls -l /dev/ttyUSB0
crw-rw----. 1 root dialout 188, 0 Apr 12 11:41 /dev/ttyUSB0
Resets to the port work, input from the port works, just can't load anything. Other than this small issue, the IDE looks great on Win7 and Linux!
I've reached the end of my Linux device debugging knowledge - anybody have any thoughts or suggestions??
Thanks!!
Comments
There are new features in SimpleIDE properties. Please see here.
Try setting General -> Loader Delay to 1 and see if that helps.
If not, I may need to instant message with you. Can't do that until Sunday though.
I've never figured out how to change my groups in fedora 16 :< Can you give me a pointer?
I always chmod o+rw /dev/ttyUSB0 and it's a PITA.
Thanks,
--Steve
Thanks for the suggestions, I'll try playing with the new settings. It sounds like a fun project while listening in on today's conference calls.
I tried bstc and bstl and they seem to have the same problem - can't find a propeller. I'm thinking it might be a "local" issue
I thoguht I had done some terminal I/O to propforth froom this laptop, so I'll have to try that again to see if it's just a programming issue or an output issue or a cosmic mystery.
I have a desktop running Fedora 16 at home, so I can try it there to rule out any strange laptop hardware. That will happen this evening or tomorrow. I can't recall if I tried ANY propeller stuff on the desktop since I loaded it.
As for adding a group to my group list, I don't know if I did it correctly or if it's an approved admin technique but it appears to have worked. I used the following command:
usermod -G dialout rapost
where dialout is the group on my /dev/ttyUSB0 and rapost is my id.
I did an 'id rapost' afterwards and it shows me belonging to my original group and also the dialout group.
Testing continues!
P.S. Everything else (on other platforms) with SimpleIDE is brilliant!! Can't wait until it can handle .spin code too!!
I wanted to test general I/O, so I loaded PropForth on the Quickstart via propeller Tool 1.3 on a Win7 system. It was talking fine on Windows and I could happily do Forth stuff.
I unplugged it from the Win7 System and plugged it into Fedora - thsi time, it appeared as /dev/ttyUSB1.
GtkTerm could talk to PropForth so, I/O worked.
bstc could NOW load it with a .spin file
...and what you all have been waiting for, SimpleIDE could load it with .c code and propeller-load was just fine with it as ttyUSB1
So, I unplugged it waited for the devices to clear and plugged it in again - this time it came up as /dev/ttyUSB0
Everybody likes it as ttyUSB0, now!!
Unless I happened to do something to my GROUP affiliation while checking how I changed my group, nothign has changed (typical user!).
The moral to the story is to just use PropForth as part of you gcc development tool chain!! (KIDDING!!!!)
I will watch it as I continue to play and see it the problem returns. I'll also do same testing on my Fedora 16 desktop to see what happens.
As we say at the phone company:
CWT (cleared while testing)