Supporting Third Party Programming Tools

From Flowcode Help
Jump to: navigation, search
Gen Compiler Options Compiler PIC.png

Each version of Flowcode comes ready with a default programming tool. However it is fairly easy to change the settings in Flowcode to allow for third party programming tools to be used.


The programming tool that is invoked when the compile to chip button is pressed is configured in the Build menu under Compiler options then click on the Programmer tab page.


For help with third party programming tools the first port of call should be to check our forums to see if anyone else has already tried the programming tool with Flowcode. If you are the first then if you wish you can post your findings for other users to benefit from.


Contents

Microchip PIC & PIC16

mLoader

mLoader is the default programming software and can be used to talk to the various Matrix hardware including EB006, EB064, EB031, Formula Flowcode, ECIO, MIAC, ProtoBoard, ProjectBoard...

Location:

$(appdir)tools\mLoader\mLoader.exe

Parameters:

-chip $(chip:u) "$(outdir)$(target).hex"


PPP

PPP is the older programming software from Flowcode v5 and previous and can be used to talk to versions of the EB006 up to and including version 8.

Location:

$(appdir)tools\PPP\PPPv3.exe

Parameters:

-cs 2 -chip PIC$(chip:u) -nogui "$(outdir)$(target).hex"


PICkit2

Location:

$(appdir)tools\PICkit2\pk2cmd.exe

Parameters:

-B$(appdir)tools\PICkit2\ -PPIC$(chip) -F$(target).hex -M -A5 -R


Details on how to upgrade your PICkit 2 to work with new targets are available from here.


Please note that the PICkit 2 was never designed to work with the newer devices and although it is known to work, you may cause damage to your PIC devices by using incorrect VPP programming voltages etc as supplied by the PICkit 2.


PICkit3 using PK3CMD (OLD)

There are two options for using the PICkit 3 depending on how you are powering your hardware:


Powered externally

Location:

$(appdir)tools\PICkit3\PK3CMD.exe

Parameters (8-bit PIC):

-P$(chip) -F$(target).hex -E -M


Parameters (16-bit PIC):

-P$(chip) -F$(target).hex -E -M -L


Powered via the PICkit

Location:

$(appdir)tools\PICkit3\PK3CMD.exe

Parameters (8-bit PIC):

-P$(chip) -F$(target).hex -V5 -E -M


Parameters (16-bit PIC):

-P$(chip) -F$(target).hex -V3.3 -E -M -L


Please note that the PICkit 3 will fail to program if you have spaces in your Flowcode project name, replacing spaces with underscores or removing them completely should resolve the issue.


Also note that if your using the PICkit 3 with MPLABX or have bought a new one recently then you will likely have to downgrade the firmware to allow Flowcode to work with the PICkit.

Full details on how to do this are available from here.


If your still having problems getting the PICkit 3 to fire up then this forum topic may be of help.


PICkit3 using MPLABX IPE (NEW)

First make sure you have the latest MPLAB X installed on your computer. We used version 3.30 which is used in the location path shown below. Make sure your path matches your installed location.

There are two options for using the PICkit 3 depending on how you are powering your hardware:


Powered externally

Location:

C:\Program Files (x86)\Microchip\MPLABX\v3.30\mplab_ipe\ipecmd.exe

Parameters:

/P$(chip) /F"$(outdir)$(target).hex" /TPPK3 /M /OL


Powered via the PICkit

Location:

C:\Program Files (x86)\Microchip\MPLABX\v3.30\mplab_ipe\ipecmd.exe

Parameters - Powered at 3V3:

/P$(chip) /F"$(outdir)$(target).hex" /TPPK3 /M /OL /W3.3

Parameters - Powered at 5V:

/P$(chip) /F"$(outdir)$(target).hex" /TPPK3 /M /OL /W5


Microchip FS USB

Flowcode PIC comes with a example for using the free microchip USB bootloader. Changing your target to the MCHP_FSUSB will automatically configure the programmer to use the Microchip PDFSUSB programming tool. Note - The USB bootloader firmware must be present on the device to allow the programming tool to connect correctly to the device.


TINY PIC Bootloader

Support for the Serial TINY PIC Bootloader is documented here.


AVR

AVR Dude

The AVRDUDE programming tool supports a number of third party programmers for more help and information please visit the AVRDUDE home page.


Arduino

Flowcode version 6.1 has much better in built support for Arduino hardware, a document explaining how to use Flowcode 6.1 with Arduino is available from here. {Coming Soon}

Support for Arduino prior to Flowcode 6.1 is documented here.


ARM

Flowcode ARM comes with a set of precompiled bootloader files. This allows the matrix mLoader USB reprogrammable operation to be used on any third party ARM hardware.


mLoader

mLoader is the default programming software and can be used to talk to the various Matrix hardware including EB006, EB064, EB031, Formula Flowcode, ECIO, MIAC, ProtoBoard, ProjectBoard...

Location:

$(appdir)tools\mLoader\mLoader.exe

Parameters:

-eb0310 "$(target).s19"


SAM-BA

The SAM-BA tool is provided by Atmel and works with the default SAM7S bootloader which can be automatically restored to the device by powering up the ARM hardware for ten seconds using the TST jumper in the none default setting. Note this will delete the Matrix USB bootloader from the device.

Personal tools