Compile to Target fails - No PICkit 2 found

For general Flowcode discussion that does not belong in the other sections.
Post Reply
itservices
Posts: 2
http://meble-kuchenne.info.pl
Joined: Tue Jan 12, 2021 8:44 am

Compile to Target fails - No PICkit 2 found

Post by itservices »

Hi I'm helping a lecture with Flowcode 9 .

He's unable to transfer a project to chip.

It complies successfully

but receives a error

Launching the programmer...
C:\Program Files (x86)\Flowcode v9\data\tools\PICkit2\pk2cmd.exe -BC:\PICkit2 -PPIC16F1937 -F"SCAN PWM.hex" -M -R
No PICkit 2 found.


C:\Program Files (x86)\Flowcode v9\data\tools\PICkit2\pk2cmd.exe reported error code 0xA

Any help would be much appreciated.

Many thanks


Full copy of error

Target folder: C:\PICkit2
Source name: C:\PICkit2\SCAN PWM.fcfx
Title:
Description:
Device: PIC.16F.16F1937
Generated by: Flowcode v9.2.0.33
Date: Tuesday, October 12, 2021 12:28:59
https://www.flowcode.co.uk
Using <PICkit2> user settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\PIC\batch\pic_xc8_comp.bat "C:\Program Files (x86)\Flowcode\Compilers\picv2\" 16F1937 "C:\PICkit2\" "SCAN PWM"

C:\PICkit2>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF6745983589FE0D8D4660AC0314F98C28BCA92AF856EFD1DB5B777140BC4D00059D79589982F2C26BF78BFC32C650CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE1BF2A9420263CDAEEC22F549213B2E20A6A0704CBC762DED

C:\PICkit2>REM REVISION: 1.0

C:\PICkit2>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC

C:\PICkit2>REM DATE: 29\03\2021

C:\PICkit2>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat

C:\PICkit2>"C:\Program Files (x86)\Flowcode\Compilers\picv2\bin\xc8.exe" --chip=16F1937 "SCAN PWM.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
C:\Program Files (x86)\Flowcode\Compilers\picv2\pic\bin\picc --chip=16F1937 SCAN PWM.c --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
Microchip MPLAB XC8 C Compiler V2.10
Build date: Jul 30 2019
Part Support Version: 2.10
Copyright (C) 2019 Microchip Technology Inc.
using updated 32-bit floating-point libraries; improved accuracy might increase code size

Memory Summary:
Program space used 81h ( 129) of 2000h words ( 1.6%)
Data space used Ch ( 12) of 200h bytes ( 2.3%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Data stack space used 0h ( 0) of 1F0h bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)


Compilation successful!
.

Using <PICkit2> user settings for linker
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode v9\data\tools\DoNothing\DoNothing.exe

Using <PICkit2> user settings for programmer
Launching the programmer...
C:\Program Files (x86)\Flowcode v9\data\tools\PICkit2\pk2cmd.exe -BC:\PICkit2 -PPIC16F1937 -F"SCAN PWM.hex" -M -R
No PICkit 2 found.


C:\Program Files (x86)\Flowcode v9\data\tools\PICkit2\pk2cmd.exe reported error code 0xA

Autoclose turned off


FINISHED

Steve-Matrix
Matrix Staff
Posts: 1234
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: Compile to Target fails - No PICkit 2 found

Post by Steve-Matrix »

Hi. What hardware are you using?

If you are using a PICkit2, then it looks like the drivers are not installed.

If not, then it looks like the programmer setting is not correct. If you are using E-blocks, the to fix this open “compiler options” and make sure “E-blocks” is selected under “PIC” and the “default compiler” tick-box is checked for this option.

itservices
Posts: 2
Joined: Tue Jan 12, 2021 8:44 am

Re: Compile to Target fails - No PICkit 2 found

Post by itservices »

Hi Steve,

Thanks for such a quick response,

You will have to bare with a little as this is really not my field.

They are using a :

PICmiro delelopment platform board

with a Matrix EB-006-00-9
12/F /16F /18F pic Multiprogrammer

Which as a PIC16F1937
1646T7Q Microchip

This is connected to a eBlocks Dev board EB083-001

Windows 10 Device manager
has EB006 Multiprogrammer under Univeral Serial Bus devices

I've not installed any drivers? Just Deployed Flowcode 9 and the required Toolchains

But Thank you.

As you suggested, I have use E-blocks under the compiler options. Thats now used the mloader which has worked.

Many thanks
:D

Post Reply