First of all, I think that it’s important to precise that I’m new with PlatformIO. Actually I’m working for a university in Belgium and I try to replace the old MPIDE (which was abandonned by Microchip) to program some PIC32.
We are currently using the Chipkit Uno32 (and the uC32) that is supported by PlatformIO. Then I first tried on Windows (by installing PlatformIO IDE with Atom) and that was a succes. I even could recompile some old projects just by addind the peripheral libraries (plib was also abandonned by microchip by the way) to platformIO.
The problem is that when I try to do it using platformIO with Linux, that doesn’t work. With both PlatformIO IDE and CLI (which is actually the same process), I always get the same error :
"/home/User/.platformio/packages/tool-pic32prog/pic32prog" -b 11520
0 -d “/dev/ttyUSB0” .pioenvs/uno_pic32/firmware.hex
Programmer for Microchip PIC32 microcontrollers, Version 2.0.224
Segmentation fault (core dumped)
scons: *** [upload] Error 139
=========================================== [ ERROR ] Took 0.95 seco
PlatformIO compiles the code without problem. The problem happens when pic32prog is called to upload the code via USB. I also tried to upload an .hex file generated on windows with pic32prog on linux but that doesn’t work either.
However, when I upload an .hex file generated by xc32-gcc (the MPLab compiler) with pic32prog and the pickit2, it works.
I have to guess that I’m lost. Does anyone have an idea of how to solve my problem ?
Thank you for reading my message anyway. I’m also sorry for my English and pardon me for my mistakes please.