Shop OBEX P1 Docs P2 Docs Learn Events
Translate EDDIE Firmware from SPIN to C/C++ — Parallax Forums

Translate EDDIE Firmware from SPIN to C/C++

kbedollakbedolla Posts: 12
edited 2013-01-31 20:08 in Propeller 1
Hi I have an EDDIE robot and I'm very interested in modifying some of the firmware on the control board. I am an experienced C/C++ programmer, however I do not know anything about SPIN. Does anyone know if someone has translated the EDDIE firmware from SPIN to C/C++? Is Parallax going to do it? Now that we have the Propeller GCC compiler I would really like to dive into the EDDIE firmware.

Thanks!

Comments

  • ersmithersmith Posts: 6,054
    edited 2013-01-30 17:43
    I don't know about the EDDIE firmware, but there is an open source tool called spin2cpp that automatically converts Spin to C++ (or C, although the C++ conversion is a bit more complete). You can get it from http://code.google.com/p/spin2cpp.

    Eric
  • kbedollakbedolla Posts: 12
    edited 2013-01-30 17:58
    Thanks Eric! I will try that. Has anyone successfully done the conversion?
  • SRLMSRLM Posts: 5,045
    edited 2013-01-30 18:32
    kbedolla wrote: »
    Thanks Eric! I will try that. Has anyone successfully done the conversion?

    Of the EDDIE firmware? Not that I have heard of. For other code, however, I have been using it and it works very well.
  • David BetzDavid Betz Posts: 14,516
    edited 2013-01-31 17:02
    kbedolla wrote: »
    Hi I have an EDDIE robot and I'm very interested in modifying some of the firmware on the control board. I am an experienced C/C++ programmer, however I do not know anything about SPIN. Does anyone know if someone has translated the EDDIE firmware from SPIN to C/C++? Is Parallax going to do it? Now that we have the Propeller GCC compiler I would really like to dive into the EDDIE firmware.

    Thanks!
    This would be an interesting project. Where can I find the Eddie source code? I don't have an Eddie myself but I'd be willing to look at the code to see how hard it would be.
  • SRLMSRLM Posts: 5,045
    edited 2013-01-31 19:43
    David Betz wrote: »
    This would be an interesting project. Where can I find the Eddie source code? I don't have an Eddie myself but I'd be willing to look at the code to see how hard it would be.

    You can find it here: http://www.parallax.com/eddie
  • David BetzDavid Betz Posts: 14,516
    edited 2013-01-31 20:08
    SRLM wrote: »
    You can find it here: http://www.parallax.com/eddie
    Thanks for the link. It doesn't look like it would be too difficult to convert to C. There is a fair amount of code but it's pretty straight forward. I guess if you just want it running in C then Eric's spin2cpp would be the best approach. However, if I had an Eddie robot I'd probably want to rewrite it by hand partially because I imagine it would be more readable than the output of a translater (although Eric's is pretty good) and partially just to learn how the Eddie robot works. Alas, it's a bit beyond my price range.
Sign In or Register to comment.