Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
Automated device select in PCH
Posted: Thu Aug 31, 2006 12:53 am
I use PCH inside MPLAB. I have applications that support multiple hardware platforms. Currently to compile an image I set a flag in the source code to select the target platform plus select the target PIC from MPLABs configure window. How can I embed the target PIC info into the source such that I do not have to manually reconfigure MPLAB each time I select a new target platform in my source code? _________________ Regards, Andrew
You can also throw in fuse lines device lines etc into the various blocks...
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
Posted: Thu Aug 31, 2006 5:07 am
This was the mechaism I tried but it does not work correctly.
For example if I specify a PIC18F8722 both in the code (as per your example) and as the device in the config window the code compiles correctly however if I select some other 18F family processor in the configure device menu like a PIC18F24J10 and select PIC18F8722 in the code then I get an error message of the form "The Extended Mode Configuration bit is enabled but...." _________________ Regards, Andrew
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum