Esp32S3 : Wifi Memory optimization
Posted: Thu Jun 08, 2023 2:37 pm
Good afternoon,
I have a question concerning memory optimization related to Wifi. Could you please help me ?
I am testing the OTA update via Wifi on an Esp32S3- Mini-1 chip, which have no external PSRAM.
On a chip that have no external PSRAM, I can choose in the Wifi configuration that the Wifi Tx Buffers are dynamic.
Using the following Wifi configuration, I measured that the Internal RAM needed for Wifi was 51220 bytes.
Max nbr of Wifi static Rx Buffers : 10
Max nbr of Wifi dynamic RX Buffers : 32
Type of Wifi TX Buffers : Dynamic
Max nbr Wifi dyn TX Buffers : 32
Wifi AMPDU TX BA Window Size : 6
Wifi AMPDU RX BA Windows Size : 6
Max length Wifi SoftAP Beacon : 752
Wifi mgmt short buffer number : 32
So, I modified the configuration with the following, and I measured that the Internal RAM needed for Wifi was 39876 bytes.
Max nbr of Wifi static Rx Buffers : 3
Max nbr of Wifi dynamic RX Buffers : 5
Type of Wifi TX Buffers : Dynamic
Max nbr Wifi dyn TX Buffers : 5
Wifi AMPDU TX BA Window Size : 5
Wifi AMPDU RX BA Windows Size : 5
Max length Wifi SoftAP Beacon : 752
Wifi mgmt short buffer number : 32
this configuration and the amout of Internal RAM needed is quite ok for me.
Now, I would like to do the same configuration on a Esp32S3-Wroom-1 module which have external PSRAM.
I would like to use this external PSRAM. But on a chip that have an external PSRAM, I can only choose Type of Wifi TX Buffers state = Static.
I try to reproduce the same configuration as above with Static TX Buffers in order to improve memory optimization.
Here is my configuration :
Max nbr Wifi static RX Buffers : 4
Max nbr of Wifi dyn RX Buffers : 4
Type of Wifi TX Buffers : Static
Max number of Wifi static TX Buffers : 4
Wifi AMPDU TX BA Window size : 4
Wifi AMPDU RX BA window size : 4
Wifi mgmt short buffer number = 10
Wifi IRAM speed optimization = No
Wifi RX IRAM speed optimization = No
However, the amount of internal RAM needed is 48324 bytes. I would like to reduce the amount of memory needed.
Is there a possibility to change the Type of Wifi TX buffers state to dynamic on a chip that have external PSRAM please ?
Thank you for your answer,
best regards,
Thomas TRUILHE
I have a question concerning memory optimization related to Wifi. Could you please help me ?
I am testing the OTA update via Wifi on an Esp32S3- Mini-1 chip, which have no external PSRAM.
On a chip that have no external PSRAM, I can choose in the Wifi configuration that the Wifi Tx Buffers are dynamic.
Using the following Wifi configuration, I measured that the Internal RAM needed for Wifi was 51220 bytes.
Max nbr of Wifi static Rx Buffers : 10
Max nbr of Wifi dynamic RX Buffers : 32
Type of Wifi TX Buffers : Dynamic
Max nbr Wifi dyn TX Buffers : 32
Wifi AMPDU TX BA Window Size : 6
Wifi AMPDU RX BA Windows Size : 6
Max length Wifi SoftAP Beacon : 752
Wifi mgmt short buffer number : 32
So, I modified the configuration with the following, and I measured that the Internal RAM needed for Wifi was 39876 bytes.
Max nbr of Wifi static Rx Buffers : 3
Max nbr of Wifi dynamic RX Buffers : 5
Type of Wifi TX Buffers : Dynamic
Max nbr Wifi dyn TX Buffers : 5
Wifi AMPDU TX BA Window Size : 5
Wifi AMPDU RX BA Windows Size : 5
Max length Wifi SoftAP Beacon : 752
Wifi mgmt short buffer number : 32
this configuration and the amout of Internal RAM needed is quite ok for me.
Now, I would like to do the same configuration on a Esp32S3-Wroom-1 module which have external PSRAM.
I would like to use this external PSRAM. But on a chip that have an external PSRAM, I can only choose Type of Wifi TX Buffers state = Static.
I try to reproduce the same configuration as above with Static TX Buffers in order to improve memory optimization.
Here is my configuration :
Max nbr Wifi static RX Buffers : 4
Max nbr of Wifi dyn RX Buffers : 4
Type of Wifi TX Buffers : Static
Max number of Wifi static TX Buffers : 4
Wifi AMPDU TX BA Window size : 4
Wifi AMPDU RX BA window size : 4
Wifi mgmt short buffer number = 10
Wifi IRAM speed optimization = No
Wifi RX IRAM speed optimization = No
However, the amount of internal RAM needed is 48324 bytes. I would like to reduce the amount of memory needed.
Is there a possibility to change the Type of Wifi TX buffers state to dynamic on a chip that have external PSRAM please ?
Thank you for your answer,
best regards,
Thomas TRUILHE