Page 1 of 1

Flowcode 4 dsPIC and Pickit 3

Posted: Tue Mar 13, 2012 3:17 am
by clee
Trying for my first time to program a PIC chip with no luck so far. I'm not sure Flowcode is seeing the Pickit 3. I've followed the readme for setting the compiler options to see the PK3CMD.exe file here,

http://www.matrixmultimedia.com/support ... .php?t=565

Using,
Windows XP
Flowcode home/student for dsPIC
chip is 24HJ12GP201

COMPILE TO CHIP ends,

"Link Error: Could not allocate program memory"
Error returned from [pic.30-gcc.exe]

Return code = 1

Also, under chip configure if I select "Autodetect PICmicro" I get "USB cable is not connected". On the Pickit 3 POWER and ACTIVE leds are lit, but status is dark.

This is probably a little vague, 1st time through. Any thoughts?

Re: Flowcode 4 dsPIC and Pickit 3

Posted: Tue Mar 13, 2012 9:40 am
by DavidA
Hi,

Did you change the location and parameters to be for Flowcode v4 for dsPIC rather than Flowcode v4 for PIC, the dsPic location path looks more like this:

C:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\Tools\PICkit3\pk3cmd.exe

or

C:\Program Files (x86)\Matrix Multimedia\Flowcode PIC24&dsPIC V4\Tools\PICkit3\pk3cmd.exe

if have a 64bit computer.

Re: Flowcode 4 dsPIC and Pickit 3

Posted: Tue Mar 13, 2012 1:07 pm
by clee
Thanks, yes I did. The path was set by navigating to the file installed (by the installer) with the "Browse" option in the compile options menu. Should autodetect work with Pickit 3/dsPIC?

No idea if my computer is 64 bit or not. I'll check it out. I'm a MAC person and picked up a Netbook just to run flowcode...

Re: Flowcode 4 dsPIC and Pickit 3

Posted: Tue Mar 13, 2012 2:47 pm
by Benj
Hello,

The auto detect functionality from the Flowcode PPP config screen only works with the EB006, HP488 or EB064 programmer boards.

Programming via th compile to chip button should work correctly with the PICkit3 if all the settings are correct in the compiler options window.

Re: Flowcode 4 dsPIC and Pickit 3

Posted: Sat Mar 17, 2012 2:39 am
by clee
Well after all this time I finally got this working...

Original error was in the chip config. I had the boot block set wrong.
Then I could get MPlab X to see the Pickit but not Flowcode. Flowcode said "Hex file not found" Finally found that error, didn't like the file name. I had spaces.