Shop OBEX P1 Docs P2 Docs Learn Events
raspberry pi serial port — Parallax Forums

raspberry pi serial port

hobbyProgrammerhobbyProgrammer Posts: 9
edited 2014-06-05 12:09 in Propeller 1
I've programmed a prop with a raspberry pi using the usb with Simple ide. Can you use the serial port on the raspberry pi to program a propeller. I've tried before with no luck, but I didn't know I had to disable the raspberry pi serial port login. Just making sure it is even possible before I try again.

thanks for any tips or input

Charlie

Comments

  • Heater.Heater. Posts: 21,230
    edited 2014-06-05 10:30
    No it is not.

    The problem is that the loader needs to be able to reset the Propeller using the serial port DTR signal (Or whatever it is, I forget now.) That signal is not available on the Raspi GPIO UART.

    However, I have made a version of the loader that is supplied with prop-gcc that uses another GPIO pin to wiggle the Propeller reset.

    The latest version of propgcc in the source code repository does include my code to do this. However, nobody has tested it yet and I suspect it's not quite finished.

    I would love to be able to test this and get you a version that works, but my "Propeller time" is very limited just now. Be sure it will be possible eventually....
  • hobbyProgrammerhobbyProgrammer Posts: 9
    edited 2014-06-05 10:42
    Thanks, I will be looking forward to that. One more question on the serial port on the raspberry pi. Can use the serial port on the raspberry pi to talk to the Propeller (like Propeller serial terminal object). I want to use the python serial module on the raspberry pi to talk to the Propeller through the Propeller serial terminal object

    Thanks for your patients and time
    Charlie
  • Bill HenningBill Henning Posts: 6,445
    edited 2014-06-05 11:26
    I hope to get around to upgrading my RoboPi's + Pi's to the latest OpenSpin, propgcc, SimpleIDE soon, along with the latest loader.

    I am still using a pre-historic version, but it has a major advantage... it works for me :)

    hobby - yep, you can talk to the prop for debugging with a serial terminal program on the Pi. I usually use Putty or GtkTerm
  • ratronicratronic Posts: 1,451
    edited 2014-06-05 11:30
    Charlie I have used the serial port on the RPi to talk with the Propeller. You have to disable Linux's use of it though. Some info here.

    EDIT: I can't remember but I think you have to install the Python serial module by typing this in a terminal window - sudo apt-get install python-serial
  • hobbyProgrammerhobbyProgrammer Posts: 9
    edited 2014-06-05 12:09
    Sweet, Thanks
Sign In or Register to comment.