Page 1 of 1
ESP32 Circular buffer max size and variable String max size
Posted: Wed Oct 02, 2024 1:46 pm
by Xbiotec
hi,
what are the max size ?
for :
- 8 bit buffer size
- 16 bit buffer size
- String array dimension
thx for prompt reply
Re: ESP32 Circular buffer max size and variable String max size
Posted: Wed Oct 02, 2024 2:36 pm
by mnfisher
Like a Rolls Royce - probably big enough
8 bit and 16bit allow the same size - they just refer to the size of the data returned.
Not sure of the top of my head if they have 16 or 32 bit size but if its 16bit then 65535 entries . If its 32 not then you don't have enough memory. Lookup tables are stored in program memory. Circular buffers and Strings in Ram.
Strings the same - they have a size defined as 16bit so 65535 bytes.
You need to be careful with large data structures that they don't get copied on entering a function.
Martin
Re: ESP32 Circular buffer max size and variable String max size
Posted: Wed Oct 02, 2024 4:09 pm
by Xbiotec
thx Martin