Help with MCS in Propforth?
jamestt
Posts: 4
Hello!
I've been struggling enough with this that I thought the only real way to get any answers would be to create an account. Nice to meet you all! I'm not really a newcomer to Forth or microcontrollers, but Propforth is new territory and I can't say that I'm a Propeller master either.
So here's my issue: I've been planning out a project that includes communication between multiple independent Props, SD card storage, and perhaps other additions in the near future. To that end, I have two boards, a Quickstart I picked up for cheap some years ago and a new Propeller Project Board. The latter has working SD card storage, using the SD kernel and the standard pins. The former has the EEPROM filesystem and also works as it should. Both are otherwise stock with 5 MHz crystals, though there is a barrel jack and some female header pins on the Project Board edge.
I'd like to get 2-wire communication between the two with MCS, and here the trouble begins. Changing the pin assignment a bit, I've used 2 and 3, A and B, 1A and 1B... they all have the same result. I'm not (yet) putting resistors on the lines, since I just want to see if I can get this working first.
What I'm doing is reckoning the Project Board as the Master, hooking up the pins to corresponding pins on the Quickstart, making sure they're both powered up, connecting to the Project Board, and pasting the contents of mcs.f into the terminal, headed for /dev/ttyUSB0 (using Debian 9). This usually drops a bunch of characters, but this doesn't happen every time. Then I define mcsinit and mcs? with appropriate values, as it says to do in mcs.f. Follow that up with the usual "mcsinit mcs?", and it locks up. It doesn't take any keyboard input and has to be reset. Sometimes one of the LEDs flashes, and just in case the connection takes awhile, I've let it sit there for a few minutes. I've tried the same thing with com.f rather than mcs.f, with very similar results. Using the Quickstart as the master doesn't change anything, either.
For a serial terminal, I've tried this same process with Emacs, GNU Screen, and Minicom. None seem to improve the situation.
So, am I missing something? What could be wrong here? I've been pretty diligent about reading the documentation first, but I can't always find what I'm looking for and I'm not sure that everything is quite up to date yet. This is all using Propforth 5.5.
Thank you in advance for any help or guidance.
I've been struggling enough with this that I thought the only real way to get any answers would be to create an account. Nice to meet you all! I'm not really a newcomer to Forth or microcontrollers, but Propforth is new territory and I can't say that I'm a Propeller master either.
So here's my issue: I've been planning out a project that includes communication between multiple independent Props, SD card storage, and perhaps other additions in the near future. To that end, I have two boards, a Quickstart I picked up for cheap some years ago and a new Propeller Project Board. The latter has working SD card storage, using the SD kernel and the standard pins. The former has the EEPROM filesystem and also works as it should. Both are otherwise stock with 5 MHz crystals, though there is a barrel jack and some female header pins on the Project Board edge.
I'd like to get 2-wire communication between the two with MCS, and here the trouble begins. Changing the pin assignment a bit, I've used 2 and 3, A and B, 1A and 1B... they all have the same result. I'm not (yet) putting resistors on the lines, since I just want to see if I can get this working first.
What I'm doing is reckoning the Project Board as the Master, hooking up the pins to corresponding pins on the Quickstart, making sure they're both powered up, connecting to the Project Board, and pasting the contents of mcs.f into the terminal, headed for /dev/ttyUSB0 (using Debian 9). This usually drops a bunch of characters, but this doesn't happen every time. Then I define mcsinit and mcs? with appropriate values, as it says to do in mcs.f. Follow that up with the usual "mcsinit mcs?", and it locks up. It doesn't take any keyboard input and has to be reset. Sometimes one of the LEDs flashes, and just in case the connection takes awhile, I've let it sit there for a few minutes. I've tried the same thing with com.f rather than mcs.f, with very similar results. Using the Quickstart as the master doesn't change anything, either.
For a serial terminal, I've tried this same process with Emacs, GNU Screen, and Minicom. None seem to improve the situation.
So, am I missing something? What could be wrong here? I've been pretty diligent about reading the documentation first, but I can't always find what I'm looking for and I'm not sure that everything is quite up to date yet. This is all using Propforth 5.5.
Thank you in advance for any help or guidance.
Comments
Jim
Meanwhile, hopefully someone in the know about Propforth sees this thread soon.
So, combing around for a basic example of communication between two Propellers (send code from one cog on the first chip to a cog on the other, or "term" type connection), I didn't really find one. Is there such a thing, or did I miss it?