Shop OBEX P1 Docs P2 Docs Learn Events
C++ on the P2 — Parallax Forums

C++ on the P2

Hi Guys!
I finally find myself in possession of a Prop2. (Thanks Mystery Box!!)
Anyway, I program my P1s in C++ using Simple IDE.
From what I can find Simple IDE doesn't seem to work with the P2. Is this true?
If so, what is a good IDE to program C++ for the P2. I'll be using a P2 Edge Module Breadboard to start.
I apologize if this is a rookie question but I can't think of a better place to learn!
Appreciate any wisdom you can send my way!

Amanda Ward :-)

Comments

  • Check out FlexProp. It really only does plain C, but some C++ features are supported.

    https://forums.parallax.com/discussion/170730/flexprop-a-complete-programming-system-for-p2-and-p1/p1

  • RaymanRayman Posts: 14,744

    If you need full featured C++ you might want to check out riscvp2 by @ersmith

    There’s another gcc port around somewhere too…

    Both were used to build micro python

    But I wouldn’t say either is completely up to date or easy to use.

    Still, if you really need it it’s there…

  • RaymanRayman Posts: 14,744

    @rosco_pc Forgot about that one. That is definitely the newest...

  • ajwardajward Posts: 1,130

    @ajward said:
    Hi Guys!
    I finally find myself in possession of a Prop2. (Thanks Mystery Box!!)
    Anyway, I program my P1s in C++ using Simple IDE.
    From what I can find Simple IDE doesn't seem to work with the P2. Is this true?
    If so, what is a good IDE to program C++ for the P2. I'll be using a P2 Edge Module Breadboard to start.
    I apologize if this is a rookie question but I can't think of a better place to learn!
    Appreciate any wisdom you can send my way!

    Amanda Ward :-)

    Guess I forgot to mention I'm running on a Mac Pro with Monterey! Sorry :-(

  • iseriesiseries Posts: 1,495

    Didn't you get a Raspberry Pi in your Mystery Box? That would work as a programmer as well.

    Mike

  • Guess I forgot to mention I'm running on a Mac Pro with Monterey! Sorry :-(

    I have no mac (and am not really aware of releases), but both p2llvm and flexspin/prop have macos packages for download.
    You can also easily compile each of these on your computer.

    p2LLVM makes it possible to run RUST on the P2 (look fore the thread here in the P2 forum)

    Also I forgot if you're just looking for C, there is also catalina

Sign In or Register to comment.