Created Tue, 08 Jan 2013 10:59:34 +0000 by pazgal
Tue, 08 Jan 2013 10:59:34 +0000
Hi,
I bought a CUI32Stem with a PIC32MX795F512H. I would like to program it with MPide. When I open an exemple in MPIDE and load it into my CUI32stem, MPide seems to work but the µC still execute the last program I made in stickOS. Have I to change the bootloader ? If yes, how can I do it ? Does someone know what's the name of the pins for the CUI32stem ?
Thanks.
Wed, 09 Jan 2013 22:03:39 +0000
MPIDE's support for the CUI32Stem is not all that great at the moment for the CUI32Stem - I'm hoping one of the devs could improve this at some point... 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...)