News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

Compiler says it has finished but NO hex file?

Started by Ecoli-557, Jan 17, 2025, 12:06 AM

Previous topic - Next topic

Ecoli-557

Recently while compiling - with no errors - there does not seem to be a hex file generated.
There are .eer, .lst, .mci, .pbe files.
The .err file says "ETHERNET-1\CODE\A.S 162 : Warning level superseded by command line value. (2)" which I have no idea what that is telling me.
The ""ETHERNET-1\CODE" is directory stuff, no idea on the rest.
Some help or insight here please?

John Drew

#1
I don't think you had a successful compile as there's an assembler error.There is an error in your source somewhere..
Positron produces an ASM file first for the MPLAB assembler to create a HEXfile.
No HEX is produced if a compile/assembler fails.
John

JohnB

Just by way of explanation of the files generated:
.pbe file is the results of an attempted compiler and is the file used by the IDE to display the results.
.lst and .asm files are produced by the compiler prior to assembly.
.mci files carry meta data for each source file.  Items such as last position of cursor, version number etc.
.hex file is the assembled code programmed into the PIC.
JohnB

John Drew

If your code isn't too long you could post it and someone will have a look and spot the error for you. It can be difficult when starting out with a new compiler.

Ecoli-557

Thanks to All who responded on this.  I am learning each day from the group here.
Code is currently 2,081 lines and is too large to share.
I cancelled the editor and went to bed, brought it up this morning and it compiled fine.  Perhaps some resources were in short supply?
I deeply appreciate the info on the files generated and hope I can make better use of them in the future.
For now, everything is fine, just fine.
Thanks and Regards!

Ecoli-557

Well, I still get the error message in the .err file stating "Warning Level superseded by command line value. (2)"
And I cannot compile even after exiting the IDE and getting back in.
What a Warning Level and how can I look to see how to correct it?
-Dazed and Confused.......

trastikata

If it is not a proprietary code, could you archive to a ZIP file the entire folder and post it here?

Ecoli-557

Thank you for your interest Trastikata, but it is for the moment.