It's been so quiet around here.
cgracey
Posts: 14,153
in Propeller 2
Anyone still thinking about P2?
I've been getting the final Spin2 interpreter details worked out. I moved all the complex/infrequent bytecode routines out to the hub to free up cog registers for user pasm code. Inline assembly and terminate-stay resident programs can fill $000..$0FF, with the first 16 longs of local variables shuttling in and out of $100...$10F. Almost done.
What about the rest of you?
I've been getting the final Spin2 interpreter details worked out. I moved all the complex/infrequent bytecode routines out to the hub to free up cog registers for user pasm code. Inline assembly and terminate-stay resident programs can fill $000..$0FF, with the first 16 longs of local variables shuttling in and out of $100...$10F. Almost done.
What about the rest of you?
Comments
Family things this weekend. Still watching and waiting :-)
But, I want to do something clever with the P2 Eval board soon. Still thinking about what...
I fear its all well above my head- I've been getting used to SmartBasic with spin2gui, 'cos that's the only way I am going to do something productive with the Prop2. Looking forward with anticipation to boards being available- 'til then I just try to understand the conversations over smartpins etc- without much success!
Dave
I lost track of when that was going to be...
Was just thinking of what I might do next... I had this OV9653 SXGA camera module working with the FPGA... Looks like 640x350 resolution used up most of HUB RAM...
But with HyperRam, maybe I can do full VGA or better.
I'd be nice to JPG compression on the full SXGA image, but that seems challenging...
Actually, maybe it'd be better to see if P2 can interface with Rasberry Pi camera and it's MIPI interface...
Neat idea about working smart pins into the language. That would be so simple to make happen.
So the outlook for P2 work isn’t looking that good till near the end of August, which is around the time we’ll be seeing P2 rev2 chips
I have a few things planned for P2...
Finish Spin1 interpreter running on P2. This will just use a P1 compiled object code block.
I want to design my own P2 board for a little project i have in mind. Just a tiny specialised board.
I need to get my P1 OS running on P2.
For general use tho, probably P2D2 rev3? will suit better.
craig (at) universecontrol.net
Job Title: Master of Universe
This is serious
Yes I am sure the P2 will be a superior machine controller. Some decades ago I worked with ugly things like ladder logic, relays, pneumatic actuators and mechanical switches.
Life changed but I still dabble around with automating systems once in a while. The P1 was often either to big or to small for the tasks. I have big hopes (and even some plans) that the P2 can fit there nicely.
I am quite sure that @ManAtWork has already plans to do something, and yourself are dreaming of a 6-X axis controller, don't you?
Enjoy!
Mike
I actually have had a job come up that would be perfect for P2, well I hope it is and that should lead nicely into a major pet project I have always had on the cards for P2.
Right at the moment I'm sorting out the tools and USB serial software for the EFM8UB3 chip which is not fun, although I have been updating my Breakout game for P2 and having fun there.
This week I will build up some of the new R3 versions of the P2D2 including one with a CP2102N in place of the EFM8 chip just to see how it goes.
Yeah, except for the sounds from the ball bouncing around the screen and music and videos playing on the P2 (I've listened to the MacroFab podcast about a dozen times), it is quiet.
I've been working on everything that I want to surround the P2... quite a list.
Looking forward to the interpreter... worried that I only have a P123. Maybe I can
get a board from Peter. Paying customer!!!
John Abshier
All what i found was some info here and there in different places.
Sometimes already outdated
greetings
Boat is back in, bathroom is 80% there. Can't wait to get back to doing electronics. My bench is missing me.
I have been following your progress. Would love to see a burndown of the "needs to be done" for the P2.
Can't wait for August! Should be a fun fall/winter workbench season!
besides p2gcc one can use the RISCV emulator and gcc for RISCV
But compared to the P1 the P2 will have a lot of language support when it finally hits the market.
What else is needed?
Documentation, a central official place to get documentation and a link to all the existing tools. I read the forum daily, so I do know where to look and what to look for.
But how can a newcomer figure out that there is a nice IDE called SpinEdit, Language support for VisualCode, Spin2Gui, p2gcc, micro phyton, RISCV emulator, TAQOZ, does SimpleIDE support P2 yet? PropellerIDE?
How they figure out that @DavidZemon has a build server running with the latest binaries?
There should be entries in the OBEX to specify Language and or Processor, better yet the content of the OBEX should move to a Parallax GIT somewhere and the current OBEX needs to be replaced by something searching and summarizing that Parallax GIT. Authors of objects should be able to push there changes, sending pull requests and waiting for parallax to fulfill this timely seems farfetched.
'Whats a microcontroller' rewritten for the p2.
But that is all stuff Parallax has to do.
I will tinker around with the streamer next.
Enjoy!
Mike
Probably 10 year old info...
-Phil
From what I've been reading on these fora: documentation. Most of the information is there in just a few places, it just needs to be pulled together into one cohesive document as the one true reference. I know that such a document could never be truly finished, but it needs to be done to the same standard as the original Propeller manual.
In practice I think what matters from a compiler is the language it supports, how well the code it generates runs, in particular its speed and its memory footprint, and how well documented it is. How "pure" it is in terms of whether it is generating "native code" or not should be pretty much irrelevant.
gcc 8.0 for RISC-V running on the JIT P2 compiler has the highest Dhrystone 1.1 score I measured for P2; it actually beat p2gcc and fastspin. It supports full C and C++, with some popular extensions. The gcc documentation is good, although the P2 specific documentation is poor at the moment. The memory footprint isn't good, since it uses a pretty big cache, so that's an area where another compiler might be a better choice for some applications, but for raw performance so far the RISC-V emulator is the champ.
gcc 8.0 compiled natively for P2 would probably perform even better, of course. But software isn't free, and so far nobody has come up with the funds (or equivalently, programmer time) to do that port.
If there is the need for another respin, money is better spend there.
Using neither C nor C++ I still think that providing gcc for the P2 is a MUST. What would be nice is, if someone could get this then upstream, so that it stays current with gcc, not outdated like it is now.
My current beloved pet is GnuCOBOL, a Transpiler using C as a intermediate representation and running it thru gcc, Clang or VisualC, but this one relays heavily on dynamic linking and POSIX support, might not be feasible on a P2. Somewhere I found a COBOL80 for the Z80 and CP/M. That might be interesting...
Enjoy!
Mike