Propeller Tool for Windows Alpha Release Supports P2
Ken Gracey
Posts: 7,392
in Propeller 2
Not sure if the P2 forum users also read the announcements up top. This was posted https://forums.parallax.com/discussion/171694/propeller-tool-for-windows-alpha-release-supports-p2#latest
Please submit issues here https://github.com/parallaxinc/Propeller-Tool/issues
Thank you, Ken Gracey
Please submit issues here https://github.com/parallaxinc/Propeller-Tool/issues
Thank you, Ken Gracey
Comments
No, some instruction encodings changed after Rev A.
If the streamer is used at all as part of Spin2 interpreter then it'll be dead in the water because the mode bits were shuffled. I doubt this will be the case though. One known case is Chip's EEPROM boot loader uses the streamer so count that option out. Again, you can make your own of course.
There's quite a lot of changes for the coder. Many example programs that use the pins will have compatibility issues. Any use of multi-pin ops (eg: DIRH x+y<<6 or DIRH x|y<<6) will need alternatives written. I'm not sure if spin2 will embed such things or not, probably just a case of changing the sources you are building.
EDIT: Ha, Chip beat me with a somewhat shorter more negative answer.
I believe the only instruction encodings that changed are the PTRA/PTRB encodings and the addition of the use of the pointers with RDLUT/WRLUT. A RevB assembler can be used for RevA with some restrictions.
The immediate source for the RDLUT/WRLUT instructions must be less than $100. Immediate values of $100 and above are now used for the pointers. The RevA PTRA/PTRB encodings are a subset of the RevB encodings, so this will work as long as the offsets are within the range of -16 to +15.
I've used some of the other tools and found not all the sample code worked with all the tools available. Is there some sample code to play with which will be sure to work with the new Propeller Tool?
Wonder if it has debugging... Doesn't say anything about that... Thought that was coming...
A toolbar is supposed to be added, so that will give it a slightly different look. I still cannot understand why the toolbar is not there now -- but that's the case.
It's going to be interesting to see what happens vis-a-vis debugging.
OR:
Welcome to the "Stone Age" of software development :-)
dgately
Tested the board with Pnut and no problem. No settings found.
Maybe it's because of using Unix slash path separators instead of the backslashes for Windows?
For Windows users, the Library folder can be a problem with the standard installation because of the way Windows deals with the Program Files (x86) parent folder. For this reason, I use a custom installation path (the PT installer allows this) so that I have easier access to the Library folder.
The new version posted here fixes the "file" issue: https://github.com/parallaxinc/Propeller-Tool/issues/21
Any printing place such as a Staples can print them and do the Spiral Bound cover for a reasonable price. Just email them the PDF.
https://www.staples.com/services/printing/
The Propeller Tool already works quite well for P2 development; Thanks Chip and Jeff for making this happen!!
But I am really annoyed to have to remove the SD card every time I need to program my P2 Eval using the Propeller Tool. Eric Smith has this working in FastSpin with the help of some trickery.
Is there a change to make a fix for this?
/Johannes
I had to repair V1.3.2 tool to get the p2 to be seen by the 2.2.0.0A version. That's fine.
I downloaded test_LEDMATRIX.spin2 and Pins.spin2 from github, doesn't seem to work or even toggle pin 56 for me much at all. I had to mess with the syntax a lil
the TAQOZ splash page got me up and running quick. doing "> " and hitting escape to get into TAQOZ.
the LED toggles for me, so I know the board works.
I had to add parenthesis to the PUB MAIN
and rename MAINCNT to MAINCT
and MAINCNT to getct()
just to get the IDE to finally compile the top and "load ram"
I'll have to look at the spin2 language sheet again, but this is reminding me of adafruit circuit python examples that are always outdated, the languages are constantly evolving, I understand that, but the examples/demo's aren't.
Great job so far though! I'm enjoying the early adopter meetings and thanks for uploading them to youtube.
I know it might be alot of hand holding, but I'd love to see the accessories showed off in a video someday.
Staples printing the pdf might be a good option, how close is spin2 to being final? or is it ALPHA just like the propeller tool supporting p2?
Thanks Again.
The MinimalSpin2Program() from the spin2 doc DOES work. it just didnt paste with the proper REPEAT indentation.
but the pasm right below it does work.
Is the propTool just for pasm as of now?
Looks like the PropTool is rigged to default to P1 syntax unless you save or open as P2 file with .spin2 file extension...
I've attached that minimal code. If you open it, it will know it is for P2 from the .spin2 extension and run right...
I'll go back and check to see what the test LEDMATRIX is doing that is hiccuping the demo. thanks for the reply, I'll just pour much needed time in it.
I see it now, in the spin2 doc. OUTx and DIRx seem to be useful only in pasm now. that explains why Pins.spin2 wasnt doing anything, no errors.
I tried replacing the PINWRITE with appropriate DIRB and OUTB to manually toggle the pins, but no go. so I'll assume those dont work from spin2 anymore, Im sure itll throw an error in later version of PropTool.
Thanks again Rayman