Page 1 of 1

External programmer Parameters [resolved]

Posted: Tue Aug 08, 2017 10:06 am
by medelec35
If programming using PRESTO Programmer ASIX then correct format is:

Code: Select all

 /p "$(outdir)$(target).hex" /part PIC16F883
This programs target device.
The problem I'm having is trying to get target in the format of either PIC16F883 or pic16f883.
Using

Code: Select all

 $(chip)
or the format

Code: Select all

$(chipalt)
then target is only in the format 16f883.
If use

Code: Select all

$(chippath)
then format is PIC.16F.16F883
I can leave as

Code: Select all

 /p "$(outdir)$(target).hex" /part PIC16F883
but when change target device I will have to manually change the target device which is undesirable.
Any solution please?

Martin.

Re: External programmer Parameters

Posted: Tue Aug 08, 2017 10:51 am
by LeighM
try this

Code: Select all

/p "$(outdir)$(target).hex" /part PIC$(chip)
you can also force upper case ...

Code: Select all

/p "$(outdir)$(target).hex" /part PIC$(chip:u)

Re: External programmer Parameters

Posted: Tue Aug 08, 2017 11:03 am
by medelec35
Hi Leigh
LeighM wrote:/p "$(outdir)$(target).hex" /part PIC$(chip)
That's perfect!
All working now.

Not sure why I did not spot that.

Thank you.

Martin