ESP32 Circular buffer max size and variable String max size

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Xbiotec
Posts: 217
http://meble-kuchenne.info.pl
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 35 times
Been thanked: 26 times

Flowcode v10 ESP32 Circular buffer max size and variable String max size

Post by Xbiotec »

hi,
what are the max size ?
for :
- 8 bit buffer size
- 16 bit buffer size
- String array dimension

thx for prompt reply
Seb

mnfisher
Valued Contributor
Posts: 1628
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 761 times

Re: ESP32 Circular buffer max size and variable String max size

Post 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

Xbiotec
Posts: 217
Joined: Thu Sep 23, 2021 3:44 pm
Location: France
Has thanked: 35 times
Been thanked: 26 times

Re: ESP32 Circular buffer max size and variable String max size

Post by Xbiotec »

thx Martin
Seb

Post Reply