1. Drop the DEVICE line and select the device from the IDE (say MicroCode or FineLine).
2. Comment out the config lines in the *.inc file of the PBP folder.
HTH,
Ioannis
1. Drop the DEVICE line and select the device from the IDE (say MicroCode or FineLine).
2. Comment out the config lines in the *.inc file of the PBP folder.
HTH,
Ioannis
Thanks, I'll try that. But, does it work by selecting the device from the IDE only? I need to get the HEX file with the full configuration of the chip and the type of chip. I have seen this "@ DEVICE PIC16LF1939" line been used before by people here in the forum, so I don't know why it doesn't work in my case.
"No one is completely worthless. They can always serve as a bad example."
Anonymous
Because you are using MPASM and
"@ DEVICE PIC16LF1939"
is for PM.
http://www.picbasic.co.uk/forum/showthread.php?t=543
Dave
Always wear safety glasses while programming.
Yes it works OK. Don't worry about that.
It makes sense if your IDE does not support it. For example compiling from Command Line.
Ioannis
Thank you guys. Now, it works fine. There is a "condensed" version of the thread that Dave mentioned that was really helpful.
http://www.picbasic.co.uk/forum/cont...o-your-Program
The tricky part (at least for me) to make it work was figuring out that I needed two CONFIG statement lines. One for CONFIG1 and another one for CONFIG2.
Code:@ __CONFIG _CONFIG1, ....... @ __CONFIG _CONFIG2, .......
"No one is completely worthless. They can always serve as a bad example."
Anonymous
Bookmarks