chipKIT® Development Platform

Inspired by Arduino™

Can I run MPIDE from Windows rather than on the RasPi?

Created Mon, 30 Nov 2015 00:03:49 +0000 by AttilaTheHun


AttilaTheHun

Mon, 30 Nov 2015 00:03:49 +0000

I have a chipKIT_Pi attached to a Raspberry Pi 2. I can program the chipKIT via MPIDE running on the RasPi. I talk to the RasPi using TightVNC.

I would like to run MPIDE on my Windows 7 machine rather than on the RasPi, and upload the program to the chipKIT via the RasPi over the Ethernet connection between my PC and the RasPi.

Is this doable without an exceptional amount of work?

I didn't see this in the forums, so I apologize in advance if it's there and I missed it.

Thanks, Bruce


majenko

Mon, 30 Nov 2015 01:11:44 +0000

Yes, it's perfectly doable. Just compile your program on MPIDE on Windows - it results in a .HEX file. Then you need to copy that file over to the Pi where you then need to manually program it.

It's best to download the Arm version of pic32prog: https://github.com/sergev/pic32prog/raw/master/linuxarmhf/pic32prog

Then on the Pi you can run:

$ pic32prog -d /dev/ttyAMA0 -S <hex file>

/dev/ttyAMA0 is the path of the serial device to use - that is the internal UART on the Pi's header. To program a chipKIT board on USB instead change it to /dev/ttyUSB0

A while back I wrote a script and things to do it all automatically through UECIDE - not sure where those scripts are right now, but I can look them out again for you when I get time - get it all working again. I wrote about it here: http://uecide.org/node/25


AttilaTheHun

Mon, 30 Nov 2015 03:12:01 +0000

Thank you!