Pic18F46K80 in Flowcode 6

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

Moderator: Benj

Post Reply
electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Pic18F46K80 in Flowcode 6

Post by electron67 »

Hello everyone,

I made a program in which I use the 18F46K80 chip, Flowcode compiled correctly but when I am going to record it with the programmer (eb006 or PicKit3), it does not identify the chip (Could not ID onboard chip).

Thanks
Enrique

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by QMESAR »

Hi

In my opinion one of the following is your problem
1 device is not powered or powered on all VDD pins
2 does not have a 10uF ceramic or tantalum Cap connected to it
3 mcu has an error

would be nice to hear when you found the problem what caused it ,I guess the above based on the fact that the PICkit3 also does not programm the mcu considering that you use the MPLAB IPE programming SW

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by electron67 »

Hi Qmesar

But the programmer eb006 and PicKit 3 will require component connections to program the pic ?

Enrique

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by electron67 »

In fact I have programmed the 18F4685 and the 18F4620 correctly

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by QMESAR »

Hi

It is not totally clear what is your problem the Programmer SW which does not respond or the programmer which can not read the mcu ID
if it is the case that it does not read the ID Then my comments are 100% valid(and should be checked ) as if the device is not powered correctly the programmer can not Read the device ID to identify it for programming (Could not ID on board chip).
just keep in mind 18F4685 and 4620 does not have the VDD_cap pin look at my comment 2


I have seen very strange issues with the new PIC18's if they do not have or have a incorrect capacitor / Capacitance value at VDD_cap or even when the AVDD pin is not powered

:D

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by electron67 »

Hi

The only difference that this chip has TX1, RX1, TX2, RX2, also does not accept to program; "Copile to chip"

success

Launching the programmer...
C:\Archivos de programa\Flowcode 6\tools\mLoader\mLoader.exe -chip 18F46K80 "E:\USB\GPS\GPS_GSM.hex"
ERROR: Can not launch process: %1 no es una aplicacin Win32 vlida.

C:\Archivos de programa\Flowcode 6\tools\mLoader\mLoader.exe reported error code -1

FINISHED

This is show me

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by electron67 »

The program in Flowcode 6 is fine, but the programmer mloader (PPP) not detect the chip, what can I do ?

RAM available:3584 bytes, used:485 bytes (13.6%), free:3099 bytes (86.4%),
Heap size:3099 bytes, Heap max single alloc:127 bytes
ROM available:65536 bytes, used:6620 bytes (10.2%), free:58916 bytes (89.8%)

success

FINISHED

Thanks
Enrique

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by electron67 »

Hi

Connect in the pic and programmer a 10uf capacitor on pin 6 and ground; But neither does the programmer detect it pic !

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by jgu1 »

Hi!

Do you have anything connecetd to the port's ( display, led ect.) while you are
Programming the Pic? If you have, try to disconnect these when you are programming.

Br

Jorgen

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: Pic18F46K80 in Flowcode 6

Post by kersing »

electron67 wrote: ERROR: Can not launch process: %1 no es una aplicacin Win32 vlida.
If this is the error you should look at the programmer settings in Flowcode, not at the hardware. Windows tells you it can not start a program because it is not a valid windows 32 executable, that message should not be EB006/PICkit related.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by QMESAR »

electron67 wrote: Launching the programmer...
C:\Archivos de programa\Flowcode 6\tools\mLoader\mLoader.exe -chip 18F46K80 "E:\USB\GPS\GPS_GSM.hex"
ERROR: Can not launch process: %1 no es una aplicacin Win32 vlida.
C:\Archivos de programa\Flowcode 6\tools\mLoader\mLoader.exe reported error code -1
Thank you kersing for helping us out here
as mentioned in my second post I am not sure if you have an SW issue or that the programmer does not detect the micro the second was my judgement of your description of your problem and then my comments are valid as said however it is clear now that you have a SW setup issue as Kersing has clearly pointed out :D no power issues :D

Hope you get it right

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by electron67 »

thanks guys

Maybe I'm wrong; But according to the mloader datasheet, I think this PIC is not included in the chips that can be programmed :?:

Flowcode 6 if you compile this chip, but the programmer does not work with the PIC18F46K80 :?:

Enrique

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by electron67 »

4. Dispositivos soportados
Actualmente, el PPP y el EB006 soportan los siguientes dispositivos:
PIC12F629, PIC12F675, PIC12F635, PIC12F683
PIC16F627A, PIC16F627, PIC16F628A, PIC16F628, PIC16F630, PIC16F648A, PIC16F676, PIC16F684,
PIC16F688, PIC16F636, PIC16F716, PIC16F72, PIC16F737, PIC16F73, PIC16F747, PIC16F74, PIC16F767,
PIC16F76, PIC16F777, PIC16F77, PIC16F818, PIC16F819, PIC16F83, PIC16F84A, PIC16F84, PIC16F870,
PIC16F871, PIC16F872, PIC16F873A, PIC16F873, PIC16F874A, PIC16F874, PIC16F876A, PIC16F876,
PIC16F877A, PIC16F877, PIC16F87, PIC16F88
PIC18F242, PIC18F248, PIC18F252, PIC18F258, PIC18F442, PIC18F448, PIC18F452, PIC18F458, PIC18F1220,
PIC18F1320, PIC18F2220, PIC18F2320, PIC18F2331, PIC18F2410, PIC18F2420, PIC18F2431, PIC18F2439,
PIC18F2455, PIC18F2510, PIC18F2515, PIC18F2520, PIC18F2525, PIC18F2539, PIC18F2550, PIC18F2585,
PIC18F2586, PIC18F2610, PIC18F2620, PIC18F2680, PIC18F2681, PIC18F4220, PIC18F4320, PIC18F4331,
PIC18F4410, PIC18F4420, PIC18F4431, PIC18F4439, PIC18F4455, PIC18F4510, PIC18F4515, PIC18F4520,
PIC18F4525, PIC18F4539, PIC18F4550, PIC18F4585, PIC18F4586, PIC18F4610, PIC18F4620, PIC18F4680,
PIC18F4681

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by electron67 »

eb006 v8

18F Devices
PIC18F242, PIC18F248, PIC18F252, PIC18F258, PIC18F442,
PIC18F448, PIC18F452, PIC18F458, PIC18F1220, PIC18F1230,
PIC18F1231, PIC18F1320, PIC18F1330, PIC18F1331,
PIC18F13K50, PIC18F14K50, PIC18F2220, PIC18F2221,
PIC18F2320, PIC18F2321, PIC18F2331, PIC18F2410,
PIC18F2420, PIC18F2423, PIC18F2431, PIC18F2439,
PIC18F2450, PIC18F2455, PIC18F2458, PIC18F2480,
PIC18F2510, PIC18F2515, PIC18F2520, PIC18F2523,
PIC18F2525, PIC18F2539, PIC18F2550, PIC18F2553,
PIC18F2580, PIC18F2585, PIC18F2586, PIC18F2610,
PIC18F2620, PIC18F2680, PIC18F2681, PIC18F2682,
PIC18F2685, PIC18F4220, PIC18F4221, PIC18F4320,
PIC18F4321, PIC18F4331, PIC18F4410, PIC18F4420,
PIC18F4423, PIC18F4431, PIC18F4439, PIC18F4450,
PIC18F4455, PIC18F4458, PIC18F4480, PIC18F4510,
PIC18F4515, PIC18F4520, PIC18F4523, PIC18F4525,
PIC18F4539, PIC18F4550, PIC18F4553, PIC18F4580,
PIC18F4585, PIC18F4586, PPIC18F4610, PIC18F4620,
PIC18F4680, PIC18F4681, PIC18F4682, PIC18F4685

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by electron67 »

But what happens with PicKit 3, I have MpLab 8.92, maybe I need to upgrade to MpLab X and also update PicKit 3 :?:

Enrique

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by electron67 »

Hi Matrix team

I have the eb006 programmer (works perfectly), the firmware version is old, is it possible to update the firmware of this programmer :?:
To complement it with some PIC that were not included in that time.

Thanks
Enrique

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by electron67 »

Hi

Anyone know what programmer I can use for the PIC18F46K80 or some trick to do it; Probe with IC prog, JDM, PICPgm, USBurn, and of course this eb006 and PicKit 3 :?
I have installed the MpLab 8.92

Thanks
Enrique

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: Pic18F46K80 in Flowcode 6

Post by Benj »

Hello Enrique,

I would recommend the EB006 + PICkit 3 programmer for the newer devices. You can plug the chip into the EB006 and then program using a PICkit 3 if the chip is not supported directly by the programming IC.

We don't have a newer version of the firmware at the moment. Maintaining an ever growing list of chips in our hardware is an uphill struggle and we have much more pressing things to attend to, such as better Flowcode libraries, new chip packs etc. So for the time being it's much better to go with the tool designed by the chip manufacturer on the EB006 that allows you to use all the various DIL chip packages.

MPLAB 8.92 is now very old. MPLABX is much newer and is a bit of a struggle to get used to but does support a lot more of the newer devices. MPLABX also comes with the IPE (Integrated Programming Environment) application so you don't actually have to use MPLABX at all to do .hex file programming.

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by electron67 »

Hello benj
Thanks for the answer, you could explain briefly how to do it, I do not understand how :?:

Thanks
Enrique

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by electron67 »

Hello

I decided to order another chip, the PIC18F25K22, can Flowcode 6 and PicKit 3; I could not program the PIC18F46K80.
I appreciate the help and guidance; (Had made the PCB :( )

Thanks
Enrique

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by QMESAR »

Benj wrote:Hello Enrique,

I would recommend the EB006 + PICkit 3 programmer for the newer devices. You can plug the chip into the EB006 and then program using a PICkit 3 if the chip is not supported directly by the programming IC.

We don't have a newer version of the firmware at the moment. Maintaining an ever growing list of chips in our hardware is an uphill struggle and we have much more pressing things to attend to, such as better Flowcode libraries, new chip packs etc. So for the time being it's much better to go with the tool designed by the chip manufacturer on the EB006 that allows you to use all the various DIL chip packages.
I agree with Benj 100% here I think it makes a lot of sense to use the PICKIT as it supports all the devices and if you are like me that likes to work with a debugger and
want to maintain the Ghost functionality then this is how I work currently,

(1) EB006V9 with the new device in as development board and PicKIT3 as programmer
(2) FlowKit V2
(3) FC connected to Flowkit for Ghost /debugging

works like a dream for me :D

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by QMESAR »

electron67 wrote: Thanks for the answer, you could explain briefly how to do it, I do not understand how :?:
Enrique
Enrique

I try to help you
(1) download and install MPLABX from the Microchip web page ,take care that MPLABX install 2 things with it 1 is the IPE which is the programming interface and 2 is the driver selector, I expect by having installed MPLAB 8xx MPLABx will detect it and once you plugged you PICkit in and it installed you will have to run the Driver selector and select MPLABx to use the driver .(look in the archive and take MPLABx 3.30)

(2) you then connect your PICkit to the ICSP port on your EB006 and set the jumpers to ICSP on the EB006 (see the manaul of the EB006)

(3) you setup in FC6 under Compiler options >> programmer to use PICkit3 and you will be able to program out of FC6 just as with mLoader
see this document how to set it up

http://www.matrixtsl.com/wikiv7/index.p ... _.28NEW.29
Attachments
14858673_1105374729577376_410909040_o.jpg
14858673_1105374729577376_410909040_o.jpg (38.95 KiB) Viewed 15792 times
2.JPG
2.JPG (45.47 KiB) Viewed 15792 times

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Pic18F46K80 in Flowcode 6

Post by electron67 »

Thanks Qmesar,

I'm going to download MpLab X to install it and follow the instructions you give me;

I really appreciate your help :D

Enrique

Post Reply