http://www.matrixmultimedia.com/mmforum ... f=5&t=4161
If any of you use Microchip's PICKIT2 as a programmer, then here's how to get it working with Flowcode:
1) create a batch file called "PICKIT2.BAT" and put the following into it:
Code: Select all
copy "%1\%2" "C:\temp\PICKIT.HEX"
2) Run Flowcode and change the "programmer" entry in the "Compiler options" screen to the location of this BAT file.
3) Put the parameters as "%D %F.hex" (without the quotes), and uncheck the "use programmer to set config" option.
4) The PICKIT2 software has a special "Auto import HEX and write file" button - run PICKIT2, click this button and select the "C:\temp\PICKIT.HEX" file (you may need to run Flowcode once first to create this file). Then leave the PICKIT2 software open.
Now each time you compile a program, the generated HEX file will be copied to "C:\temp\PICKIT.HEX". Each time this file is recreated, PICKIT2 will detect the change and automatically download the HEX file.
It does not matter what name you give your Flowcode program, because the HEX will will be automatically renamed at the programming stage.
Note that you will need to run step 4 each time you restart your PC, but the other settings should be retained.