External programmer Parameters [resolved]

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

Moderator: Benj

Post Reply
medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

External programmer Parameters [resolved]

Post 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.
Martin

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: External programmer Parameters

Post 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)

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: External programmer Parameters

Post 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
Martin

Post Reply