Using PICBASIC PRO in MPLAB IDE
Hello. I have been writing code for some time in PBP and had a need to try to simulate it. I have gotten the code to compile in MPLAB but it tells me there are errors.
Here is what the error message is:
Warning[207] C:\PROJECTS\2212\HEIGHT SENSOR V02.ASM 278 : Found label after column 1. (DEVICE)
Error[122] C:\PROJECTS\2212\HEIGHT SENSOR V02.ASM 278 : Illegal opcode (pic16F688)
and looking at the appropriate asm file I found the lines that are for 278 are
; C:\PROJECTS\2212\HEIGHT SENSOR V02.PBP 00045 @ DEVICE pic16F688, PROTECT_ON
ASM?
DEVICE pic16F688, PROTECT_ON ' line 278
ENDASM?
Does anyone have any ideas? Where can I look to find out more info about what is actually happening when I compile it in MPLAB. Thanks for your help.
Chip away until the only thing left is the sculpture
Thanks guys for the replies
I am in the process of updating to 8.10, though I doubt that will address my problem, as I think it is on my end, not the folks at microchip. And I will play with the .asm vs pbp. I think there was a reason that I went that way, but I'll have to re-discover it again.
As for the config answer, that was great! It was actually just some notes that I left myself in the code so that I would get back to it when I had the other issues resolved. Good catch. I just re-read Melanie's thread on it and I'm still trying to get my arms around when to use which one. Can I entirely abandon PM, or do i need to mix them?
I have been dabbling with PICs for years using different approaches, and it doesn't take much for me to get confused on which syntax gets used in which system. I have no idea how professional programmers keep 37 different languages in their heads!
Re-reading my post, I see that there could be a bit of confusion. The issue of PBP and MPLAB playing together was related to the N&V article and I was only trying to get the famous "BLINK.BAS" to run through the system to prove that I could get it to work. As far as my program, "encTest12F675-6.BAS" to get to the point that I could watch it on the simulator, well, that's a bit far off. I'm not sure if I can just open the .bas and see it, or if I have to jump through some extra hoops. I imagine it's seen as a source file and I need to have the Header File for the Include there, but what about the linker? Does it matter if I get it in the wrong section (Source, Header, object, library, linker, other)?
Because PBP and MPLAB are from different companies, there doesn't seem to be a comprehensive set of instructions that covers the integration of them. Hours of searching the forum (using the Google ver.) all I get are partial answers or squeals of excitement from people that got it to play well. I think I just need to drive to Colorado Springs and pay Jeff Schmoyer his hourly rate and sit by his side for a few days until my dim bulb starts to give off some light :-) [rant mode-off]
Thanks again for all the help. I'll keep banging my head... there has to be a door here somewhere..
Mark