Flowcode 6 Pickit2 problems
Moderator: Benj
Flowcode 6 Pickit2 problems
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
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
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Flowcode 6 Pickit2 problems
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
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 346 times
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Flowcode 6 Pickit2 problems
Hi Andy,
Sorry my mistake
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
Sorry my mistake

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
Re: Flowcode 6 Pickit2 problems
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
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
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
Re: Flowcode 6 Pickit2 problems
Hi Andy,
Could you try running pk2cmd from the command-line with option '-p' (without quotes)? It should display the device it finds.
Jac
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
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
Re: Flowcode 6 Pickit2 problems
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
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
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: Flowcode 6 Pickit2 problems
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
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
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
Re: Flowcode 6 Pickit2 problems
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.
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
― C.S. Lewis
- 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
Cheers Jac,
Wiki pages have been updated now. Let me know if there are any issues there and I'll get them sorted.
Wiki pages have been updated now. Let me know if there are any issues there and I'll get them sorted.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Flowcode 6 Pickit2 problems
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
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
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel