News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

HSerOutLn it is not highlighted in bold

Started by Giuseppe, Feb 23, 2024, 11:21 AM

Previous topic - Next topic

Giuseppe

Hi, I wanted to point out that I'm using

Declare HSerial1_Terminator = CRLF
When using HSerOutLn it is not highlighted in bold

RGV250

Hi,
What device, compiler version etc.
It highlights on my version 4.0.3.3 and 18F25K20.

Bob

Giuseppe

The compiler version is 4.0.3.6 the Pic is 16f1826. Trying to use the HRSOutLn command highlights this

RGV250

#3
Hi,
Removed as I think it was not the right information.

Bob

Dolci

as per manual

If HSerout2Ln, HSerout3Ln, or HSeroutLn
are used, the device must contain more than 1 USART.

Giuseppe

Yes, but the HSerOutLn command works but does not remain highlighted and does not give an error during compilation

RGV250

Hi,
I wonder if that should be
QuoteIf HSerout2Ln, HSerout3Ln, or HSerout4Ln
are used, the device must contain more than 1 USART.

Bob

Giuseppe

Ok then for a single serial it is better to use the HRSOutLn command

top204

It just needs the IDE's "Database.mcd" file updated with the commands that are to be highlighted. For example:

KEY ("HSerOutLn")
  DeviceCore = [dc14, dc16, dc24, dc33]
  Highlighter = Keyword
  Hint = "<b>HSerOutLn</b> <i>[Item {,Item}]</i>"
ENDKEY

KEY ("HSerOut1Ln")
  DeviceCore = [dc14, dc16, dc24, dc33]
  Highlighter = Keyword
  Hint = "<b>HSerOut1Ln</b> <i>[Item {,Item}]</i>"
ENDKEY


And the same for the other HSeroutXLn commands. But only ever edit the file in notepad or some other editor that does not add control bytes to the text, and Never in a word processor.

They are something I forgot to add to the file a few years ago.


Dompie

@top204 There are interesting things in Database.cmd like:
    Hint = "<b>HEData</b> <i>Comma delimited Constant Values or Constant Expressions that are stored in High Endurance Flash memory</i>"

I cannot find HEData in the entire Positron manual. Is this something for a next update/upgrade or have I missed something?

Johan

trastikata

#10
Quote from: Dompie on Feb 25, 2024, 11:23 AMI cannot find HEData in the entire Positron manual. Is this something for a next update/upgrade or have I missed something?

I think the High endurance directives have been dropped some time ago. It's hard to implement them because each PIC with HEF has different write and erase block sizes.

However you can use CData instead. Erasing and writing in Flash space is not difficult, however one has to read datasheets carefully and to use correct Erase and Write block sizes.