Overtone Labs

Hi,

I wan't to program my CUI32Stem in arduino language. I've downloaded the MPide compiler.

What I'm I suppose to do now ? Is there anywhere a tutorial for this ? (I haven't found yet)

What are the pin numbers for the arduino language ?

Other question : is it possible to connect the grove cables directly on the CUI32stem ?

Thanks for help

Views: 63

Reply to This

Replies to This Discussion

to connect the cui32stem to the grove system I've founded this : grove converter cable

Hi Pascal,

MPIDE's support for the CUI32Stem is not all that great at the moment for the CUI32Stem - I'm hoping one of the devs at ChipKit could improve this at some point if they have time... a few things:

- you have to manually put the CUI32Stem into bootloader mode by either turning it off and back on while holding down the 'PROG' button, or by holding 'PROG' down while pressing and releasing the 'RESET' (which accomplishes the same thing). Then you'll see the special pattern of flashes indicating it's in the bootloader.

- the pin numbers to use in the Arduino language can be found inside the MPIDE app, in /hardware/pic32/variants/Default_64/Board_Data.c

So, for example, if you want to use pin RD3 then you would type something like this in MPIDE:
#define PWM_PIN 3
(but some pin definitions would look much more nonsensical than this...)

Thanks for help,

I'm a newbie in µC programmation and I don't know how to change the bootloader.

You don't need to change the bootloader, just use it... with the 'PROG' button.  From there on, it's just the same as any normal Arduino, which means you have to make sure that in MPIDE's 'Tools' menu, you have the CUI32Stem selected under the 'Boards' and the correct serial port selected under 'Serial port'.  You just have to make sure you use the 'PROG' button before compiling / sending the code over from MPIDE to the board.

Reply to Discussion

RSS

© 2013   Created by Dan Overholt.

Badges  |  Report an Issue  |  Terms of Service