News:

Let's find out together what makes a PIC Tick!

Main Menu

proton compiler question

Started by Pepe, Apr 13, 2021, 02:21 PM

Previous topic - Next topic

Pepe

when then device unexist why the error is as show in then test.jpgtest.jpg

okmn

proton does not has support "xxx2551" pic, becaouse there is no 2551 named pic in microchip!! if iremember correct

Pepe

ya se que no existe ese pic pero no deberia decirlo en vez de dar otro error

Stephen Moss

You do not need to put Declare before XTAL, I have found that if you do it will generate and error but that is the only Declare you do not need to proceed with the "Declare" statement.

top204

#4
Stephen.... The compiler will not generate an error if a Declare precedes the Xtal text.

To keep some backward compatability, the compiler accepts the Xtal text with or without a preceding Declare, but it is recommended to use the preceeding Declare so the preprocessor can extract the Xtal value for its _xtal define.

Try it:

Declare Xtal = 20

or

Xtal = 20

For an unrecognised microcontroller after the Device directive, the compiler will produce the error message:

Unrecognised microcontroller type.
Cannot find its corresponding .PPI file.
Make sure it has one in the compiler's Includes\PPI folder.
If not, then it is not yet supported by the compiler.


To see the error messages outside of the IDE, or if using a different IDE, look in the ".pbe" file that the compiler creates in the folder where the BASIC program is. All OKs, Hints, Warning and Errors are held in this file.

Pepe


top204

What compiler version are you using?


Pepe

the free version