chipKIT® Development Platform

Inspired by Arduino™

Use chipkit uno32 in MPLAB X v3,26 and UBUNTU LINUX 14.04

Created Thu, 10 Mar 2016 16:42:02 +0000 by a_bet


a_bet

Thu, 10 Mar 2016 16:42:02 +0000

Hi you all, I must use the chipkit uno32 board in mplab x for a university course. I followed this guide: http://chipkit.net/programming-chipkit-boards-in-mplabx/ Everything seems to be fine, but in the end, when I try to compile and upload I get an error:

/opt/microchip/xc32/v1.40/bin/bin/gcc/pic32mx/4.8.3/../../../../bin/xc32-ld:chipKIT-application-32MX320F128.ld.00:125: syntax error
collect2: error: ld returned 255 exit status
make[2]: *** [dist/default/production/prog_base.X.production.hex] Error 255
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

Bytheway, the guide is intended to be used on microsoft windows while I'm on linux so I expected to find some difficulties.

I wonder if the line I wrote in the Project Properties is right:

/opt/microchip/mplabx/v3.26/mplab_ide/bin/avrdude64 -C /opt/microchip/mplabx/v3.26/mplab_ide/bin/avrdude.conf -v -p32MX320F128H -cstk500v2 -P /dev/ttyUSB0 -b 115200 -U flash:w:${ImagePath}

I used the /dev/ttyUSB0 parameter instead of the COM one. I don't know if it is right, but have no idea what to put there. Any help would be HIGHLY appreciated, I'm in a hurry and have no idea what to do.


majenko

Thu, 10 Mar 2016 17:07:08 +0000

It looks to me like you're using the linker script from an old version of MPIDE. You need to be using the absolute latest - or better still the files from chipKIT Core: https://github.com/chipKIT32/chipKIT-core