Olimex Support Forum

Microcontrollers => PIC => Topic started by: Targus on November 08, 2012, 09:24:39 AM

Title: Programming PIC32-T795 using USB
Post by: Targus on November 08, 2012, 09:24:39 AM
Hey, i have been using the T795 with a pic kit 3 to program it, i no longer have access to this pic kit 3 but understand that it can apparently be programmed using the mini USB port instead. i have been looking into this but have not worked out how to get this to work. any help would be greatly appreciated.
Title: Re: Programming PIC32-T795 using USB
Post by: LubOlimex on November 08, 2012, 02:02:56 PM
Hello Targus,

You might need to upload the bootloader software (which we ship the boards with). This would depend on whether you erased the board's memory. The image you will need to upload on the board is: https://docs.google.com/open?id=0B7WHuNCASY8cczRPWG5UcGNKaWs (https://docs.google.com/open?id=0B7WHuNCASY8cczRPWG5UcGNKaWs). After the bootloader is up you can use MM Basic language to program the board. The dialect is excplained in the Duinomite user manual: https://www.olimex.com/Products/Duino/Duinomite/_resources/DuinoMite-UM-1-03.pdf (https://www.olimex.com/Products/Duino/Duinomite/_resources/DuinoMite-UM-1-03.pdf)

Best regards,
Lub/OLIMEX
Title: Re: Programming PIC32-T795 using USB
Post by: Targus on November 09, 2012, 12:23:31 AM
sorry, i'm still a beginner with this. how do i upload the bootloader software back onto the board?
Title: Re: Programming PIC32-T795 using USB
Post by: LubOlimex on November 09, 2012, 11:04:52 AM
Well if you have used PICkit3 initially it is quite possible to have already deleted the original loader. You will need a compatible PIC32 programmer again to upload on the board.

Best regards,
Lub/OLIMEX
Title: Re: Programming PIC32-T795 using USB
Post by: Targus on November 09, 2012, 03:38:35 PM
and what software would you suggest for loading the hex file onto the board?
Title: Re: Programming PIC32-T795 using USB
Post by: LubOlimex on November 12, 2012, 11:04:10 AM
Hey Targus,

People prefer to use MPLAB for Microchip products. It is an IDE created and supported by Microchip themselves. It is free, well optimized and frequently updated. In the previous versions it was harder to find a good compiler but after the launch of MPLAB X even the compiler is free.

If you are looking for active development for PIC I suggest you install the MPLAB X: http://www.microchip.com/pagehandler/en-us/family/mplabx/ (http://www.microchip.com/pagehandler/en-us/family/mplabx/)

If you just want to program the board with a hex I suggest you use any MPLAB 8.xx (you don't need compiler for downloading a hex):
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en023073 (http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en023073)

Best regards,
Lub/OLIMEX