Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LGT8F88A core : SERIAL_RX_BUFFER_SIZE not defined ? #108

Closed
SuperUserNameMan opened this issue Feb 19, 2021 · 9 comments
Closed

LGT8F88A core : SERIAL_RX_BUFFER_SIZE not defined ? #108

SuperUserNameMan opened this issue Feb 19, 2021 · 9 comments

Comments

@SuperUserNameMan
Copy link
Contributor

SuperUserNameMan commented Feb 19, 2021

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 ?

@LaZsolt
Copy link
Collaborator

LaZsolt commented Feb 19, 2021

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
Copy link
Collaborator

LaZsolt commented Feb 19, 2021

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

@SuperUserNameMan
Copy link
Contributor Author

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.

@LaZsolt
Copy link
Collaborator

LaZsolt commented Feb 19, 2021

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

@SuperUserNameMan
Copy link
Contributor Author

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 ...

@LaZsolt
Copy link
Collaborator

LaZsolt commented Feb 20, 2021

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.

@youxiaojie
Copy link

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

@dwillmore
Copy link
Collaborator

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

@LaZsolt
Copy link
Collaborator

LaZsolt commented Jan 19, 2023

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 LaZsolt closed this as completed Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants