Shop OBEX P1 Docs P2 Docs Learn Events
XMMC project & provided libraries — Parallax Forums

XMMC project & provided libraries

afarrensafarrens Posts: 1
edited 2014-05-24 18:09 in General Discussion
I have a project that involves making the activity bot drive, use two additional servos to control movement of the PING sensor and a screw jack, record data from the PING sensor and a voltage output from a circuit.

Because of the libraries required to perform all these functions, my code will not fit in the HUB memory, even compiled in CMM mode.
I converted my code to run in XMMC mode, by selecting the "XMMC External Flash Code Main RAM Data" Memory Model. When I run the program, it's prints to the terminal screen fine, but the robot does not move. I found a thread that says XMMC doesn't work with certain libraries, like abdrive, but it didn't really say what I could do about it. I am wondered what I can do next-- how do make the robot actually execute the commands in my code? Or to put it another way, how do I make a program running in XMCC mode make the robot move?

Comments

  • jazzedjazzed Posts: 11,803
    edited 2014-05-24 18:09
    Unfortunately we don't have a good solution for you to try yet.

    Some packages need to run C functions in multiple COGs. XMMC in the release package will not support this. We have another propeller gcc package that will support running C functions in multiple cogs in XMMC, but some library changes will be required for that. We will be qualifying the new propeller gcc package with libraries and simple ide over the summer.

    afarrens wrote: »
    I have a project that involves making the activity bot drive, use two additional servos to control movement of the PING sensor and a screw jack, record data from the PING sensor and a voltage output from a circuit.

    Because of the libraries required to perform all these functions, my code will not fit in the HUB memory, even compiled in CMM mode.
    I converted my code to run in XMMC mode, by selecting the "XMMC External Flash Code Main RAM Data" Memory Model. When I run the program, it's prints to the terminal screen fine, but the robot does not move. I found a thread that says XMMC doesn't work with certain libraries, like abdrive, but it didn't really say what I could do about it. I am wondered what I can do next-- how do make the robot actually execute the commands in my code? Or to put it another way, how do I make a program running in XMCC mode make the robot move?
Sign In or Register to comment.