ICD 2, ICD 3 & PcKit 3 Parameters for 16Bit chips

An area to discuss 16-bit PIC specific problems and examples

Moderator: Benj

Quartz
Posts: 18
Joined: Sat May 20, 2017 7:39 pm
Has thanked: 5 times
Been thanked: 8 times
Contact:

ICD 2, ICD 3 & PcKit 3 Parameters for 16Bit chips

Postby Quartz » Sun Sep 10, 2017 9:23 pm

Hi all

I need help with the Compiler Options if you'd be so kind.

I am trying to set my FC7 to use various settings for chips and hardware because depending on where I am working will dictate what I have access to. So I'd like to set it up in FC7 with a variety of options and test them out before I need to use them and not have a choice.

I have found some but not for the following combinations.
XC16 (16bit pic) with an ICD 2
XC16 (16bit pic) with an ICD 3
XC16 (16bit pic) with a Pickit 3

I have MPLABX V4.00 loaded and use Pro versions of all the XC compilers if that makes a difference...

Can anyone tell me what the parameters in Compiler Options will be for the them please.

Thanks for any help given

User avatar
LeighM
Matrix Staff
Posts: 1843
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 429 times
Been thanked: 611 times
Contact:

Re: ICD 2, ICD 3 & PcKit 3 Parameters for 16Bit chips

Postby LeighM » Mon Sep 11, 2017 8:56 am


Quartz
Posts: 18
Joined: Sat May 20, 2017 7:39 pm
Has thanked: 5 times
Been thanked: 8 times
Contact:

Re: ICD 2, ICD 3 & PcKit 3 Parameters for 16Bit chips

Postby Quartz » Mon Sep 11, 2017 11:00 am

Hi

Thanks for the reply and pointer, I had found something like that but not with as much info in.
With that I can start using that info and test it out.

First try...

I used the external powerd PicKit 3 compiler option settings for 16 bit pic and then went to create the hex file.
At first it complained that it couldn't find the PicKit 3 and failed to create the hex file, I don't know why as I only wanted to create the hex file.
I gave in and connected a Pickit 3, same thing almost it complained about not finding the PIC chip. and failed to create the hex file.

I connected the board with the pic chip on, tried again and OK it created the hex file but it also programmed the Pic chip! Not what I wanted or expected, no warning it just did it.

Programming.jpg
Output window
Programming.jpg (56.83 KiB) Viewed 1686 times


That all seems fine if I wanted to program the chip but if I only want to create the hex file do I have to then mess about with the compiler options again (put back to original) before creating the hex file??

And a final question here as it points to a Flowcode batch file in the parameters will it still be using my versions of the XC compilers or those supplied with FC??

Best Regard

User avatar
LeighM
Matrix Staff
Posts: 1843
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 429 times
Been thanked: 611 times
Contact:

Re: ICD 2, ICD 3 & PcKit 3 Parameters for 16Bit chips

Postby LeighM » Mon Sep 11, 2017 12:15 pm

Hi,
There are two separate icons in the Flowcode tool bar, "Compile to Hex" and "Compile to Chip".
Only "Compile to Chip" will invoke the programmer step.

You could edit the compiler batch file, or create a new one for your tool chain and create a new setting for it using the Compiler Options dialog.

Quartz
Posts: 18
Joined: Sat May 20, 2017 7:39 pm
Has thanked: 5 times
Been thanked: 8 times
Contact:

Re: ICD 2, ICD 3 & PcKit 3 Parameters for 16Bit chips

Postby Quartz » Mon Sep 11, 2017 12:45 pm

Hi

I know it should but that is not so, I used the compile to Hex and it programmed my chip!