lgt8fx icon indicating copy to clipboard operation
lgt8fx copied to clipboard

LGT8F88A core : SERIAL_RX_BUFFER_SIZE not defined ?

Open SuperUserNameMan opened this issue 3 years ago • 7 comments

Hello,

I was checking if my EEPROM library was compiling with the LGT8F88A variant.

Apparently it is somehow missing SERIAL_RX_BUFFER_SIZE definition :

.../hardware/avr/1.0.6/cores/lgt8f/HardwareSerial.h:61:28: error: operator '>' has no left operand
 #if  (SERIAL_RX_BUFFER_SIZE>256)

By the way, do you think it is really worth it to keep support for the LGT8F88A ?

SuperUserNameMan avatar Feb 19 '21 14:02 SuperUserNameMan

Few days ago I noticed that compiling error too. And I don't understand why. At least in line 51 or in line 53 was SERIAL_RX_BUFFER_SIZE defined, if was not defined as a garbage earlier. I will try to insert a valid value into boards.txt, because not found this in LGT8F88 section.

49  #if !defined(SERIAL_RX_BUFFER_SIZE)
50  #if ((RAMEND - RAMSTART) < 1023)
51  #define SERIAL_RX_BUFFER_SIZE 16
52  #else
53  #define SERIAL_RX_BUFFER_SIZE 64
54  #endif
55  #endif
 ...
61  #if  (SERIAL_RX_BUFFER_SIZE>256)
62  typedef uint16_t rx_buffer_index_t;
63  #else
64  typedef uint8_t rx_buffer_index_t;
65  #endif

By the way, do you think it is really worth it to keep support for the LGT8F88A ?

I think support not really necessary.

Edit: I made a mistake above too. LGT8F88 section not the 88A version in the boards.txt

LaZsolt avatar Feb 19 '21 16:02 LaZsolt

I was checking if my EEPROM library was compiling with the LGT8F88A variant.

You wasn't checked compiling with LGT8F88A, because you selected LGT8F88D-SSOP20. "A" variant not selectable from the menu. Look inside of boards.txt

LaZsolt avatar Feb 19 '21 17:02 LaZsolt

I was checking if my EEPROM library was compiling with the LGT8F88A variant.

You wasn't checked compiling with LGT8F88A, because you selected LGT8F88D-SSOP20. "A" variant not selectable from the menu. Look inside of boards.txt

Okaaaaay .... also i did not notice it was written LGT8F88D-SSOP20 into the Arduino IDE menu "Tool/Variant" ....

Also it is confusing that the lgt8fx8ds20/pins_arduino.h defines it as a __LGT8FX8E__.

Well, I will recheck my EEPROM PR again later.

SuperUserNameMan avatar Feb 19 '21 18:02 SuperUserNameMan

My idea is to delete LGT8F88x support from the Menu, because of many conflict with new interrupts feature.

LaZsolt avatar Feb 19 '21 19:02 LaZsolt

My idea is to delete LGT8F88x support from the Menu, because of many conflict with new interrupts feature.

Agree. Also, there is no LGT8F88x available on Aliexpress ...

A few WEMOS XI using LGT8F328d can still be found there, but Wemos say they are retired. Maybe we could get rid of the LGT8F328d as well given that WEMOS already provide support for them ?

And maybe we could focus on the LGT8F328p ...

SuperUserNameMan avatar Feb 20 '21 10:02 SuperUserNameMan

I will launch a pull request soon to remove LGT8F88x support from this package. But first I need to test my earlier modifications of lgtx8e.h and lgtx8f.h files.

LaZsolt avatar Feb 20 '21 10:02 LaZsolt

My idea is to delete LGT8F88x support from the Menu, because of many conflict with new interrupts feature.

Agree. Also, there is no LGT8F88x available on Aliexpress ...

A few WEMOS XI using LGT8F328d can still be found there, but Wemos say they are retired. Maybe we could get rid of the LGT8F328d as well given that WEMOS already provide support for them ?

And maybe we could focus on the LGT8F328p ...

328d is popular in china. a lot of it in taobao.com

youxiaojie avatar Mar 31 '21 21:03 youxiaojie

@LaZsolt did you commit the removal of LGT8F88x support? If so, please determine if this issue is relevant anymore. Thank you.

dwillmore avatar Jan 12 '23 19:01 dwillmore

This issue not relevant anymore, because support for LGT8F88x has been removed from this repository and LGT8F88x has been unavailable for purcase for a while.

LaZsolt avatar Jan 19 '23 12:01 LaZsolt