OK, I got around the 16 bit incompatibility by forcing MPASM as the default assembler.
Then I get the Duplicate label "DEBUG" problem.
I modified c:\Program files (x86)\Mecanique\MCSP\MPASM\P18F4620.IBC to comment out the DEBUG statements but Win 7 won't let me save the modified file back to the Mecanique directory.
I found I could create a new directory as C:\ MPASM. I moved the entire MPASM directory from the Program files Mecanique\MCSP\MPASM to the new C:\MPASM where I could modify P18F4620.INC.
Hooray my known good code now compiles.
Now I cannot run my MeLabs USB programmer with ver 4.40 code. The code compiles and the small meProg box appears in the top left corner of the screen but it is locked. I cannot move it, view the code, or get any drop down box to open.
I removed meProg 4.40 and tieid to reinstall meProg 4.20 but then I get an error
NT_installer. Cannot start the meProg Win NT/2000/XP service ...
Very frustrated.
BrianT
Bookmarks