SF compiler reconize wrong pic?

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
toyman
Posts: 39
Joined: Tue Feb 18, 2014 8:25 pm

SF compiler reconize wrong pic?

Post by toyman » Sat Mar 22, 2014 9:50 pm

Using Swordfish compiler in conjunction with Pickit2
using same code but programming an 18F24K20 no problems
using same code but didn't catch the pic number was an 18F24K20 instead of 18F2420 in DEVICE
the code compiled without an error but wouldn't work as planned. Started getting worried!!
Got worried something went wrong or ?
after several minutes I saw by chance, the 18F24K20 in the code explorer instead of 18F2420
changed the DEVICE number and all is well
curious if this is "normal" for the compiler but didn't think it would compile ??
maybe a bug ??

User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Re: SF compiler reconize wrong pic?

Post by David Barker » Sun Mar 23, 2014 1:23 am

I don't understand your post. Please state clearly what the problem is.

toyman
Posts: 39
Joined: Tue Feb 18, 2014 8:25 pm

Re: SF compiler reconize wrong pic?

Post by toyman » Sun Mar 23, 2014 4:44 am

It isn't really a problem but curious why the SF compiler used with a Pickit2 didn't recognize I had a different pic.
I am using an 18F2420 to test out and configure my code. Then I connect the Pickit2 /ICSP to my pcboard that has an 18F24K20 soldered to it. I failed to add the K in the DEVICE setting but the code compiled it anyway but the pcboard project would not run until I redid the compile with correct DEVICE number.
Maybe someone has had same problem and couldn't figure out WHY when it worked yesterday, same code but didn't change DEVICE number BUT it still compiled.

User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Re: SF compiler reconize wrong pic?

Post by David Barker » Sun Mar 23, 2014 9:36 am

(a) Are you using Swordfish and Pickit2 from within MPLAB?

or

(b) are you using the Swordfish IDE and the command line interface to Pickit2?

or

(c) are you using the Swordfish IDE and programming using the Pickit2 via MPLAB?

toyman
Posts: 39
Joined: Tue Feb 18, 2014 8:25 pm

Re: SF compiler reconize wrong pic?

Post by toyman » Sun Mar 23, 2014 5:18 pm

Am using Pickit2 v 2.61 (Pickit2 via MPLAB, have desktop icon shortcut)
Swordfish IDE (SE) version 2.2.1.6 ICC 1.1.5.5
I was/am curious but it's not an important issue. Just that I got worried why my code ran one day and not the next until I noticed the DEVICE number was missing the K (18F24K20)

User avatar
RangerBob
Posts: 152
Joined: Thu May 31, 2007 8:52 am
Location: Beds, UK

Re: SF compiler reconize wrong pic?

Post by RangerBob » Mon Mar 24, 2014 10:18 am

David, I think MrDeb... Sorry Toyman seems to believe that Swordfish should detect what PIC is mounted on his board and refuse to compile if it detects the wrong device is fitted.
...
Somehow.
...
Even though Swordfish and Pickit are two completely separate entities.
...

User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Re: SF compiler reconize wrong pic?

Post by David Barker » Mon Mar 24, 2014 6:59 pm

Yes, it doesn't look like a bug at all - it's a user issue rather than compiler...

Post Reply