PDA

View Full Version : COFF problem when box checked at compile time.



csantex
- 28th July 2022, 21:51
Hello everyone,

Every time I compile my code with the COFF check box selected I get these errors:
[ASM ERROR] Project name (1172) : Address label duplicated or different in second pass (Z0004F)
[ASM ERROR] Project name (1235) : Address label duplicated or different in second pass (Z00050)
[ASM ERROR] Project name (1288) : Address label duplicated or different in second pass (Z00051)
[ASM ERROR] Project name (1319) : Address label duplicated or different in second pass (Z00052)

If I don't have this box checked then I get no issues or errors report.
The code being compile was originally compiled with it checked but it started giving issues when I changed to the last MPASMX available.
Can anyone shed some light on this?

Greatly appreciated.

mpgmike
- 30th July 2022, 20:02
When you say "The latest MPLABX", you do know PBP3 works with MPLABX versions 5.35 and older. MPLABX is currently on version 6.00, which uses pic-as instead of the traditional ASM for compilations. If you got a PBP file to compile at all with MPLABX v6.00 I don't know how. Older versions of MPLABX are available on the microchip.com web site: from the header, mouse over "Tools and Resources", then down to "Develop", finally selecting "MPLABX IDE". Click the Download button. Under the current version is a link "Go To Downloads Archive". It's in there somewhere (large page with lots of stuff).

csantex
- 3rd August 2022, 20:18
Hi mpgmike!
Thanks for your reply. This is what is written in the notes area of the code in question. I didn't write this code as I'm only trying to update it.
"'PIC is PIC18F66J11
'Using PBP3 GOLD 3.1.3.4
'MPASMX V 3.30
'Microcode Studio Plus 5.0.0.5 / `1'Microcode Studio 5.0.0.5"

This relates to the environment in which this code was developed back in June of 2018.
I assumed this info to be correct but now that I use the newer version below, it fails.
"'PIC is PIC18F66J11
'Using PBP3 GOLD 3.1.3.4
'MPASMX V 5.50
'Microcode Studio Plus 5.0.0.5 / `1'Microcode Studio 5.0.0.5"

I just didn't understand why the code compiles with the COFF check box unchecked and not with it checked.
I have other code that has it checked and it makes not different whether it's checked or not.

I did go back and set MPASMX V3.30 as the assembler but still not success.
All this started when the code was recompiled with the new environment and then it didn't work anymore.
I can rewrite the code, that's not an issue, I just wondered what the problem was.

No need to make anymore posts, thanks for your time.