News:

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

Main Menu

Declare Reminders What is this declare for?

Started by Giuseppe, Jan 13, 2022, 05:25 PM

Previous topic - Next topic

Giuseppe

Hi everyone I'm using an 18f26k20. using the pluin fuse configurator Mk2 at the beginning of the configuration puts
Declare Reminders Off ultimately puts Declare Reminders On. It never happened to me. What is this declare for?

$if Device = _18f26k20 Then
Declare Reminders Off
@ CONFIG_REQ = 0 ; Override Compiler's configuration settings
Asm-
Config FOSC = INTIO67   ;Internal oscillator block, port function on RA6 and RA7
Config FCMEN = OFF   ;Fail-Safe Clock Monitor disabled
Config IESO = OFF   ;Oscillator Switchover mode disabled
Config PWRT = OFF   ;PWRT disabled
Config BOREN = SBORDIS   ;Brown-out Reset enabled in hardware only (SBOREN is disabled)
Config BORV = 18   ;VBOR set to 1.8 V nominal
Config WDTEN = OFF   ;WDT is controlled by SWDTEN bit of the WDTCON register
Config WDTPS = 32768   ;1:32768
Config CCP2MX = PORTC   ;CCP2 input/output is multiplexed with RC1
Config PBADEN = OFF   ;PORTB<4:0> pins are configured as digital I/O on Reset
Config LPT1OSC = OFF   ;Timer1 configured for higher power operation
Config HFOFST = On   ;HFINTOSC starts clocking the CPU without waiting for the oscillator to stablize.
Config MCLRE = OFF   ;RE3 input pin enabled; MCLR disabled
Config STVREN = OFF   ;Stack full/underflow will not cause Reset
Config LVP = OFF   ;Single-Supply ICSP disabled
Config XINST = OFF   ;Instruction set extension and Indexed Addressing mode disabled (Legacy mode)
Config Debug = OFF   ;Background debugger disabled, RB6 and RB7 configured as general purpose I/O pins
Config Cp0 = OFF   ;Block 0 (000800-003FFFh) not code-protected
Config CP1 = On   ;Block 1 (004000-007FFFh) code-protected
Config CP2 = On   ;Block 2 (008000-00BFFFh) code-protected
Config CP3 = On   ;Block 3 (00C000-00FFFFh) code-protected
Config CPB = On   ;Boot block (000000-0007FFh) code-protected
Config CPD = On   ;Data EEPROM code-protected
Config WRT0 = OFF   ;Block 0 (000800-003FFFh) not write-protected
Config WRT1 = OFF   ;Block 1 (004000-007FFFh) not write-protected
Config WRT2 = OFF   ;Block 2 (008000-00BFFFh) not write-protected
Config WRT3 = OFF   ;Block 3 (00C000h-00FFFFh) not write-protected
Config WRTC = OFF   ;Configuration registers (300000-3000FFh) not write-protected
Config WRTB = OFF   ;Boot Block (000000-0007FFh) not write-protected
Config WRTD = OFF   ;Data EEPROM not write-protected
Config EBTR0 = OFF   ;Block 0 (000800-003FFFh) not protected from table reads executed in other blocks
Config EBTR1 = OFF   ;Block 1 (004000-007FFFh) not protected from table reads executed in other blocks
Config EBTR2 = OFF   ;Block 2 (008000-00BFFFh) not protected from table reads executed in other blocks
Config EBTR3 = OFF   ;Block 3 (00C000-00FFFFh) not protected from table reads executed in other blocks
Config EBTRB = OFF   ;Boot Block (000000-0007FFh) not protected from table reads executed in other blocks
Endasm-
Declare Reminders On
$endif

top204

The compiler now uses the text "Hints" for the Declare, but "Reminders" is still valid for it. I changed the name because the compiler produces the text "Hint" in its results, so it made more sense to use the same name in the Declare that enables/disables them. Older firmware will still use the text "Reminders", because it is still valid. But should be changed to "Hints", where possible.

See page 415 of the Positron8 compiler's PDF manual, within the "Compiler Directives\Declares" section.