Flowcode 6 Pickit2 problems

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
ajneal4uk
Posts: 22
Joined: Sun Mar 03, 2013 10:30 pm
Has thanked: 1 time
Been thanked: 1 time
Contact:

Flowcode 6 Pickit2 problems

Post by ajneal4uk »

Hi;
I have been successfully using flowcode 5 with my Pickit2 programmer (dspic3f3013). I have purchased the new V6 version of flowcode and the pic16 pack but I am unable to program the device. I have tried copying the programmer config from V5 with no success. I have noticed that the programmer config is not stored when I select 'enable writing configuration to chip'
Anyone else have the same problem?
Andy

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Flowcode 6 Pickit2 problems

Post by medelec35 »

Hi Andy,
I have posted about this here:
http://www.matrixmultimedia.com/mmforum ... 54&t=12904
Martin

ajneal4uk
Posts: 22
Joined: Sun Mar 03, 2013 10:30 pm
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Flowcode 6 Pickit2 problems

Post by ajneal4uk »

Hi medelec35

Thank you for your prompt reply, I have included the export file of my configuration.
I have been using these setting with FC5 and I think it was derived from FC4.

Launching the programmer...

C:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\tools\PICkit2\pk2cmd.exe -BC:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\tools\PICkit2\ -P%a -F%f.hex -M -R

Could not find device %A.

C:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\tools\PICkit2\pk2cmd.exe reported error code 36

Thanks
Attachments
Not working pickit programmer.FCS
(739 Bytes) Downloaded 302 times

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Flowcode 6 Pickit2 problems

Post by medelec35 »

Hi Andy,
Sorry my mistake :oops:
What I posted was just for PIC and not dsPIC
Take a look at this page:
http://www.matrixmultimedia.com/wiki/in ... PIC/PIC24)
See if that helps.
Links on some of those wiki pages don't work to well, you may have to either Highlight then right click on the link and select go to page or just copy and paste link in your browser

Martin
Martin

ajneal4uk
Posts: 22
Joined: Sun Mar 03, 2013 10:30 pm
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Flowcode 6 Pickit2 problems

Post by ajneal4uk »

Hi medelec35

I must have tried every combination known to man, still without success.

Still unable to find device, I'm sure its something simple that I have overlooked.

Andy

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: Flowcode 6 Pickit2 problems

Post by kersing »

Hi Andy,

Could you try running pk2cmd from the command-line with option '-p' (without quotes)? It should display the device it finds.

Code: Select all

C:\Program Files (x86)\Flowcode\v5\Tools\PICkit2>pk2cmd -p
Auto-Detect: Found part DSPIC33FJ128GP708.


Operation Succeeded
Jac
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

ajneal4uk
Posts: 22
Joined: Sun Mar 03, 2013 10:30 pm
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Flowcode 6 Pickit2 problems

Post by ajneal4uk »

Hi Jac;

I have set the auto detect -P as suggested

From
-BC:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\tools\PICkit2\ -P%a -F%f.hex -M -R
To
-BC:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\tools\PICkit2\ -P -F%f.hex -M -R

When I compile to chip, the chip 30F3013 is detected but I get the error Hex file not found.

Many thanks

Andy

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Flowcode 6 Pickit2 problems

Post by medelec35 »

Hi Andy,
If not resolved by later this evening (when I get home from work), I will have a play and see if I can sort the issue out.
No promises I can sort it though.

Martin
Martin

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: Flowcode 6 Pickit2 problems

Post by kersing »

Hi Andy,

I did not want you to change the setting in Flowcde, just test if the software actually detected the device.

The correct setting should be:
-BC:\Program Files\Matrix Multimedia\Flowcode PIC24&dsPIC V4\tools\PICkit2\ -P$(chip) -F"$(target).hex" -M -R

Someone at MM needs to update the Wiki to list the correct expansions for version 6, the explanation and PICkit examples are Flowcode 4/5 syntax based (and refer to paths based on older FC versions as well)

Jac

PS. this thread could be helpful

PPS. MM has been notified of the issue.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Flowcode 6 Pickit2 problems

Post by Benj »

Cheers Jac,

Wiki pages have been updated now. Let me know if there are any issues there and I'll get them sorted.

ajneal4uk
Posts: 22
Joined: Sun Mar 03, 2013 10:30 pm
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Flowcode 6 Pickit2 problems

Post by ajneal4uk »

The new configuration on the Wiki has sorted out my problem

I left the chip auto detect as -P

Thanks for your help

Andy

ajneal4uk
Posts: 22
Joined: Sun Mar 03, 2013 10:30 pm
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Flowcode 6 Pickit2 problems

Post by ajneal4uk »

Hi all;

So I went on holiday, on return I notice the update to V6.0.3.0 and updated.
I tried to compile to chip as I had successfully done before and have a linker error as:-


Launching the linker/assembler...

C:\Program Files\Flowcode 6\compilers\pic16\batchfiles\pic16_C30_link.bat "C:\Users\Ando's\DOCUME~1\FLOWCO~3\mpu_6050_testing" 30F3013 30F

C:\Users\Ando's\DOCUME~1\FLOWCO~3>pic30-gcc -Wl,"C:\Users\Ando's\DOCUME~1\FLOWCO~3\mpu_6050_testing".o,-L"C:\PROGRA~1\FLOWCO~3\COMPIL~1\pic16\BATCHF~1\..\C_tools\lib",--heap=256,--report-mem,--script="C:\PROGRA~1\FLOWCO~3\COMPIL~1\pic16\BATCHF~1\..\Support\30F\gld\p30F3013.gld",-o"C:\Users\Ando's\DOCUME~1\FLOWCO~3\mpu_6050_testing".cof

C:\Users\Ando's\DOCUME~1\FLOWCO~3\mpu_6050_testing.o: Link Error: Could not allocate section .text, size = 13698 PC units, attributes = code

Link Error: Could not allocate program memory

Error returned from [pic30-gcc.exe]

C:\Program Files\Flowcode 6\compilers\pic16\batchfiles\pic16_C30_link.bat reported error code 1


any ideas

Thanks in advance

Andy

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Flowcode 6 Pickit2 problems

Post by Benj »

Hello Andy,

Is it possible for you to attach the Flowcode project file to the forums or send to me via a PM if it is commercially sensitive and I will investigate for you.

Post Reply