Propeller

From HackPittsburgh Wiki
Jump to navigation Jump to search

STILL WORK IN PROGRESS.

Some documention, including a free online book, can be found here.

Those of us who ended up with the Propeller Proto Board, #32212 may be wondering how to tell if their boards are working.

First you need a USB interface, Doug and Friar have the Prop Plug #32201 which comes with a USB to Mini USB B cable.

Get the development tools, we used Brad's Spin Tool because we're on Mac and Linux. Though Friar did test the Windows tools on his dual boot Win/Linux laptop. Some versions of Linux have a kernel bug in the FTDI driver, so Friar had to do a kernel rebuild on his system. The symptom of the bug is that the output from the Propeller comes through, but input does not work; it does not work and hangs the terminal program.

Get the Full Duplex Serial Port Driver library which also comes with its own test program. You need to decide where you want to put this because the Brad's Spin Tools needs to be told where to find libraries. Doug created ~/Library/Propeller and put the files there.

Open the IDE. Configure the settings to point to the library directory you chose in the previous step. (DETAILS NEEDED) Open the test program #RS232_COMDemo.spin (yes, the file name starts with a hash(#)). It should be in your library directory (normally you wouldn't put your programs in the Library, but this is a test program that comes with the library).

Go into the code and change the baud rate from 200_000 to 57600 (most serial port programs on your host computer cannot do 200K)

Compile and load on to your propeller (DETAILS NEEDED, esp. in setting up USB and checking the connection)

Start the serial program. Set the baud rate to 57600. Select the usb interface from the Port menu. That will create a "Connect" menu from which you select "connect". Then select "Restart ..." ... Keep typing ...