@geastack/targets 0.1.107 → 0.1.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-config.json +120 -1
- package/package.json +6 -6
- package/targets/esp32/chip_bindings/audio/ns4168.cpp +326 -0
- package/targets/esp32/chip_bindings/displays/rgb_panel.cpp +2485 -105
- package/targets/esp32/chip_bindings/displays/sh8601.cpp +12 -2
- package/targets/esp32/chip_bindings/expanders/elecrow_board_control.cpp +169 -0
- package/targets/esp32/chip_bindings/expanders/io_expander.h +4 -0
- package/targets/esp32/chip_bindings/imu/qmi8658.cpp +10 -3
- package/targets/esp32/chip_bindings/power/axp2101.cpp +58 -0
- package/targets/esp32/chip_bindings/rtc/bm8563.cpp +129 -0
- package/targets/esp32/chip_bindings/touch/cst9217.cpp +26 -23
- package/targets/esp32/connectivity/wifi.cpp +30 -2
- package/targets/esp32/gea_board_buttons.cmake +13 -0
- package/targets/esp32/gpio.cpp +124 -1
- package/targets/esp32/gpio_pins.h +17 -0
- package/targets/esp32/services/buttons.cpp +185 -0
- package/targets/esp32/services/buttons.h +46 -0
- package/targets/esp32/services/device_control.cpp +98 -6
- package/targets/esp32/services/heap.cpp +25 -1
- package/targets/esp32-s3-elecrow-crowpanel-advance-7.0.json +182 -0
- package/targets/esp32-s3-touch-amoled-1.75c/CMakeLists.txt +11 -0
- package/targets/esp32-s3-touch-amoled-1.75c/main/CMakeLists.txt +54 -0
- package/targets/esp32-s3-touch-amoled-1.75c/main/Kconfig.projbuild +12 -0
- package/targets/esp32-s3-touch-amoled-1.75c/main/gea-dependencies.json +42 -0
- package/targets/esp32-s3-touch-amoled-1.75c/main/idf_component.yml +10 -0
- package/targets/esp32-s3-touch-amoled-1.75c/main/include/board.h +113 -0
- package/targets/esp32-s3-touch-amoled-1.75c/partitions.csv +9 -0
- package/targets/esp32-s3-touch-amoled-1.75c/sdkconfig.defaults +279 -0
- package/targets/esp32-s3-touch-amoled-1.8/main/CMakeLists.txt +13 -1
- package/targets/esp32-s3-touch-amoled-1.8/main/app_main.cpp +2 -0
- package/targets/esp32-s3-touch-amoled-2.06/main/CMakeLists.txt +44 -2
- package/targets/esp32-s3-touch-amoled-2.06/main/app_main.cpp +13 -0
- package/targets/esp32-s3-touch-amoled-2.06/main/sdcard_mount.cpp +56 -0
- package/targets/esp32-s3-touch-amoled-2.06/sdkconfig.defaults +5 -3
- package/targets/esp32-s3-touch-lcd-3.49/CMakeLists.txt +11 -0
- package/targets/esp32-s3-touch-lcd-3.49/main/CMakeLists.txt +82 -0
- package/targets/esp32-s3-touch-lcd-3.49/main/Kconfig.projbuild +12 -0
- package/targets/esp32-s3-touch-lcd-3.49/main/gea-dependencies.json +42 -0
- package/targets/esp32-s3-touch-lcd-3.49/main/idf_component.yml +8 -0
- package/targets/esp32-s3-touch-lcd-3.49/main/include/axs15231b_panel_init.h +9 -0
- package/targets/esp32-s3-touch-lcd-3.49/main/include/board.h +160 -0
- package/targets/esp32-s3-touch-lcd-3.49/main/panel_reset.cpp +93 -0
- package/targets/esp32-s3-touch-lcd-3.49/main/power.cpp +60 -0
- package/targets/esp32-s3-touch-lcd-3.49/main/touch.cpp +327 -0
- package/targets/esp32-s3-touch-lcd-3.49/partitions.csv +7 -0
- package/targets/esp32-s3-touch-lcd-3.49/sdkconfig.defaults +279 -0
- package/targets.json +70 -1
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
#include "board.h"
|
|
2
|
+
#include "chip_bindings/expanders/io_expander.h"
|
|
3
|
+
#include "i2c.h"
|
|
4
|
+
#include "touch.h"
|
|
5
|
+
|
|
6
|
+
#include <algorithm>
|
|
7
|
+
#include <atomic>
|
|
8
|
+
#include <cstddef>
|
|
9
|
+
#include <cstdint>
|
|
10
|
+
|
|
11
|
+
#include "driver/gpio.h"
|
|
12
|
+
#include "driver/i2c_master.h"
|
|
13
|
+
#include "esp_attr.h"
|
|
14
|
+
#include "esp_check.h"
|
|
15
|
+
#include "esp_err.h"
|
|
16
|
+
#include "esp_log.h"
|
|
17
|
+
#include "esp_timer.h"
|
|
18
|
+
#include "freertos/FreeRTOS.h"
|
|
19
|
+
#include "freertos/task.h"
|
|
20
|
+
|
|
21
|
+
namespace {
|
|
22
|
+
|
|
23
|
+
using Phase = gea::platform::touch::Phase;
|
|
24
|
+
using Touchscreen = gea::platform::touch::Touchscreen;
|
|
25
|
+
|
|
26
|
+
constexpr char kTag[] = "axs15231b-touch";
|
|
27
|
+
constexpr std::uint8_t kAxs15231Address = 0x3b;
|
|
28
|
+
constexpr int kNativeWidth = 172;
|
|
29
|
+
constexpr int kNativeHeight = 640;
|
|
30
|
+
constexpr int kPollIntervalMs = 10;
|
|
31
|
+
#ifndef GEA_EMBEDDED_TOUCH_TASK_PRIORITY
|
|
32
|
+
#define GEA_EMBEDDED_TOUCH_TASK_PRIORITY 4
|
|
33
|
+
#endif
|
|
34
|
+
constexpr int kTaskPriority = GEA_EMBEDDED_TOUCH_TASK_PRIORITY;
|
|
35
|
+
constexpr std::uint32_t kTaskStackWords = 3072;
|
|
36
|
+
|
|
37
|
+
struct TouchSample {
|
|
38
|
+
bool touching = false;
|
|
39
|
+
int x = 0;
|
|
40
|
+
int y = 0;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
struct Contact {
|
|
44
|
+
int id = 0;
|
|
45
|
+
int x = 0;
|
|
46
|
+
int y = 0;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// One controller report: up to two contacts, each with the controller's own id.
|
|
50
|
+
struct HardwareSample {
|
|
51
|
+
bool valid = false;
|
|
52
|
+
int count = 0;
|
|
53
|
+
Contact contacts[2]{};
|
|
54
|
+
|
|
55
|
+
const Contact *find(int id) const
|
|
56
|
+
{
|
|
57
|
+
for (int i = 0; i < count; ++i)
|
|
58
|
+
if (contacts[i].id == id) return &contacts[i];
|
|
59
|
+
return nullptr;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
Touchscreen::Observer gObserver = nullptr;
|
|
64
|
+
Touchscreen::PointerObserver gPointerObserver = nullptr;
|
|
65
|
+
i2c_master_dev_handle_t gDevice = nullptr;
|
|
66
|
+
TouchSample gCurrent{};
|
|
67
|
+
TouchSample gLatestMove{};
|
|
68
|
+
std::atomic<bool> gLatestMoveQueued{false};
|
|
69
|
+
TaskHandle_t gTask = nullptr;
|
|
70
|
+
StaticTask_t gTaskControlBlock{};
|
|
71
|
+
#if GEA_EMBEDDED_TOUCH_TASK_STACK_EXTERNAL
|
|
72
|
+
EXT_RAM_BSS_ATTR
|
|
73
|
+
#endif
|
|
74
|
+
StackType_t gTaskStack[kTaskStackWords]{};
|
|
75
|
+
|
|
76
|
+
void notify(Phase phase, const TouchSample &sample)
|
|
77
|
+
{
|
|
78
|
+
if (gPointerObserver) {
|
|
79
|
+
gPointerObserver(phase, sample.touching, sample.x, sample.y, 0);
|
|
80
|
+
} else if (gObserver) {
|
|
81
|
+
gObserver(phase, sample.touching, sample.x, sample.y);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
void notifyMove(const TouchSample &sample)
|
|
86
|
+
{
|
|
87
|
+
gLatestMove = sample;
|
|
88
|
+
if (gLatestMoveQueued.exchange(true, std::memory_order_acq_rel)) return;
|
|
89
|
+
notify(Phase::Move, sample);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
HardwareSample readHardware()
|
|
93
|
+
{
|
|
94
|
+
static constexpr std::uint8_t command[] = {
|
|
95
|
+
0xb5, 0xab, 0xa5, 0x5a, 0, 0, 0, 0x0e, 0, 0, 0};
|
|
96
|
+
std::uint8_t report[14]{};
|
|
97
|
+
// Command and report in one transaction with a repeated start, at the
|
|
98
|
+
// vendor's 300 kHz -- exactly as Waveshare's V2 examples read this panel.
|
|
99
|
+
if (i2c_master_transmit_receive(gDevice, command, sizeof(command), report, sizeof(report), 20) != ESP_OK)
|
|
100
|
+
return {};
|
|
101
|
+
if (report[0] == 0xff || report[1] > 2) return {};
|
|
102
|
+
HardwareSample sample{.valid = true};
|
|
103
|
+
// report[1] is the contact count; each contact is six bytes from report[2]:
|
|
104
|
+
// [0] event (bits 7:6: 0 down, 1 up, 2 contact, 3 none) | along 11:8
|
|
105
|
+
// [1] along 7:0
|
|
106
|
+
// [2] contact id (bits 7:4) | across 11:8
|
|
107
|
+
// [3] across 7:0
|
|
108
|
+
// [4..5] report sequence
|
|
109
|
+
// The controller keeps contacts in fixed slots, so the first slot is not
|
|
110
|
+
// necessarily the finger that went down first; contacts are matched by id.
|
|
111
|
+
for (int i = 0; i < report[1]; ++i) {
|
|
112
|
+
const std::uint8_t *point = report + 2 + 6 * i;
|
|
113
|
+
const unsigned event = point[0] >> 6;
|
|
114
|
+
if (event == 1 || event == 3) continue;
|
|
115
|
+
// The controller reports along the glass's long axis first: its X
|
|
116
|
+
// runs down the 640-pixel side from the bottom, its Y across the
|
|
117
|
+
// 172-pixel side. The vendor example maps it the same way into native
|
|
118
|
+
// portrait.
|
|
119
|
+
const int along = ((point[0] & 0x0f) << 8) | point[1];
|
|
120
|
+
const int across = ((point[2] & 0x0f) << 8) | point[3];
|
|
121
|
+
// Edge reports can land one past the glass; clamp them as the vendor does.
|
|
122
|
+
if (along > kNativeHeight + 8 || across > kNativeWidth + 8) continue;
|
|
123
|
+
Contact &contact = sample.contacts[sample.count++];
|
|
124
|
+
contact.id = point[2] >> 4;
|
|
125
|
+
contact.x = std::min(across, kNativeWidth - 1);
|
|
126
|
+
contact.y = std::clamp(kNativeHeight - along, 0, kNativeHeight - 1);
|
|
127
|
+
}
|
|
128
|
+
return sample;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
#ifndef GEA_EMBEDDED_TOUCH_POLL
|
|
132
|
+
#define GEA_EMBEDDED_TOUCH_POLL 0
|
|
133
|
+
#endif
|
|
134
|
+
// The controller's INT reaches the ESP32 through the expander, whose own INT
|
|
135
|
+
// (GPIO8) falls whenever one of its inputs changes. Reads follow that line:
|
|
136
|
+
// the controller is read when it signals, and while a finger is down it is
|
|
137
|
+
// also read every kPollIntervalMs so a lift is seen even if its edge is
|
|
138
|
+
// shared with a change the expander already reported. With no finger down
|
|
139
|
+
// the task sleeps until the next edge. GEA_EMBEDDED_TOUCH_POLL=1 opts back
|
|
140
|
+
// into reading on a fixed interval.
|
|
141
|
+
constexpr gpio_num_t kInterruptPin = gea::platform::board::touch.interrupt;
|
|
142
|
+
constexpr bool kInterruptDriven = kInterruptPin != GPIO_NUM_NC && !GEA_EMBEDDED_TOUCH_POLL;
|
|
143
|
+
|
|
144
|
+
void IRAM_ATTR expanderInterrupt(void *)
|
|
145
|
+
{
|
|
146
|
+
BaseType_t woken = pdFALSE;
|
|
147
|
+
if (gTask) vTaskNotifyGiveFromISR(gTask, &woken);
|
|
148
|
+
if (woken) portYIELD_FROM_ISR();
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// Reading the expander's input port releases its INT, so the next change
|
|
152
|
+
// produces a fresh falling edge.
|
|
153
|
+
void acknowledgeExpander()
|
|
154
|
+
{
|
|
155
|
+
bool level = true;
|
|
156
|
+
gea::platform::esp32::chip_bindings::expanders::ioExpander().readPin(
|
|
157
|
+
gea::platform::board::touch.expanderInterruptPin, level);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// The primary pointer follows one contact id from its down to its lift; a
|
|
161
|
+
// second contact never takes it over mid-gesture. A contact that is still
|
|
162
|
+
// present when the primary lifts belongs to that gesture and cannot start a new
|
|
163
|
+
// one until it lifts too -- otherwise a second contact left on the glass turns
|
|
164
|
+
// every lift into a fresh tap at its position.
|
|
165
|
+
void pollLoop()
|
|
166
|
+
{
|
|
167
|
+
int primaryId = -1;
|
|
168
|
+
unsigned staleIds = 0;
|
|
169
|
+
bool anyContact = false;
|
|
170
|
+
if constexpr (kInterruptDriven) acknowledgeExpander();
|
|
171
|
+
while (true) {
|
|
172
|
+
if constexpr (kInterruptDriven) {
|
|
173
|
+
const TickType_t wait = anyContact ? pdMS_TO_TICKS(kPollIntervalMs) : portMAX_DELAY;
|
|
174
|
+
if (ulTaskNotifyTake(pdTRUE, wait) > 0) acknowledgeExpander();
|
|
175
|
+
} else {
|
|
176
|
+
vTaskDelay(pdMS_TO_TICKS(kPollIntervalMs));
|
|
177
|
+
}
|
|
178
|
+
const HardwareSample result = readHardware();
|
|
179
|
+
if (!result.valid) continue;
|
|
180
|
+
anyContact = result.count > 0;
|
|
181
|
+
|
|
182
|
+
unsigned present = 0;
|
|
183
|
+
for (int i = 0; i < result.count; ++i) present |= 1u << result.contacts[i].id;
|
|
184
|
+
staleIds &= present;
|
|
185
|
+
|
|
186
|
+
if (primaryId >= 0) {
|
|
187
|
+
const Contact *contact = result.find(primaryId);
|
|
188
|
+
if (contact) {
|
|
189
|
+
if (contact->x != gCurrent.x || contact->y != gCurrent.y) {
|
|
190
|
+
const TouchSample next{true, contact->x, contact->y};
|
|
191
|
+
notifyMove(next);
|
|
192
|
+
gCurrent = next;
|
|
193
|
+
}
|
|
194
|
+
continue;
|
|
195
|
+
}
|
|
196
|
+
const TouchSample lifted{false, gCurrent.x, gCurrent.y};
|
|
197
|
+
notify(Phase::Up, lifted);
|
|
198
|
+
gCurrent = lifted;
|
|
199
|
+
primaryId = -1;
|
|
200
|
+
staleIds = present;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
for (int i = 0; i < result.count; ++i) {
|
|
204
|
+
const Contact &contact = result.contacts[i];
|
|
205
|
+
if (staleIds & (1u << contact.id)) continue;
|
|
206
|
+
primaryId = contact.id;
|
|
207
|
+
const TouchSample next{true, contact.x, contact.y};
|
|
208
|
+
gLatestMove = next;
|
|
209
|
+
notify(Phase::Down, next);
|
|
210
|
+
gCurrent = next;
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
esp_err_t attachInterrupt()
|
|
217
|
+
{
|
|
218
|
+
if constexpr (!kInterruptDriven) return ESP_OK;
|
|
219
|
+
if (!gea::platform::esp32::chip_bindings::expanders::ioExpander().init()) {
|
|
220
|
+
ESP_LOGE(kTag, "expander unavailable for the touch interrupt");
|
|
221
|
+
return ESP_FAIL;
|
|
222
|
+
}
|
|
223
|
+
gpio_config_t config{};
|
|
224
|
+
config.pin_bit_mask = 1ULL << kInterruptPin;
|
|
225
|
+
config.mode = GPIO_MODE_INPUT;
|
|
226
|
+
config.pull_up_en = GPIO_PULLUP_ENABLE;
|
|
227
|
+
config.intr_type = GPIO_INTR_NEGEDGE;
|
|
228
|
+
ESP_RETURN_ON_ERROR(gpio_config(&config), kTag, "touch interrupt pin");
|
|
229
|
+
const esp_err_t service = gpio_install_isr_service(0);
|
|
230
|
+
if (service != ESP_OK && service != ESP_ERR_INVALID_STATE) return service;
|
|
231
|
+
return gpio_isr_handler_add(kInterruptPin, expanderInterrupt, nullptr);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
void taskEntry(void *)
|
|
235
|
+
{
|
|
236
|
+
pollLoop();
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
// Touch sits on its own I2C pair, apart from the sensor/codec bus that
|
|
240
|
+
// Bus::primary() owns.
|
|
241
|
+
i2c_master_bus_handle_t touchBus()
|
|
242
|
+
{
|
|
243
|
+
static i2c_master_bus_handle_t bus = nullptr;
|
|
244
|
+
if (bus) return bus;
|
|
245
|
+
i2c_master_bus_config_t config{};
|
|
246
|
+
config.i2c_port = -1;
|
|
247
|
+
config.sda_io_num = gea::platform::board::touch.bus.sda;
|
|
248
|
+
config.scl_io_num = gea::platform::board::touch.bus.scl;
|
|
249
|
+
config.clk_source = I2C_CLK_SRC_DEFAULT;
|
|
250
|
+
config.glitch_ignore_cnt = 7;
|
|
251
|
+
config.flags.enable_internal_pullup = true;
|
|
252
|
+
if (i2c_new_master_bus(&config, &bus) != ESP_OK) {
|
|
253
|
+
ESP_LOGE(kTag, "touch I2C bus init failed");
|
|
254
|
+
bus = nullptr;
|
|
255
|
+
}
|
|
256
|
+
return bus;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
esp_err_t attachDevice(i2c_master_bus_handle_t bus)
|
|
260
|
+
{
|
|
261
|
+
ESP_RETURN_ON_ERROR(i2c_master_probe(bus, kAxs15231Address, 100), kTag, "touch probe");
|
|
262
|
+
i2c_device_config_t config{};
|
|
263
|
+
config.dev_addr_length = I2C_ADDR_BIT_LEN_7;
|
|
264
|
+
config.device_address = kAxs15231Address;
|
|
265
|
+
config.scl_speed_hz = 300000;
|
|
266
|
+
return i2c_master_bus_add_device(bus, &config, &gDevice);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
esp_err_t startTask()
|
|
270
|
+
{
|
|
271
|
+
gTask = xTaskCreateStaticPinnedToCore(taskEntry, "axs15231b-touch", kTaskStackWords,
|
|
272
|
+
nullptr, kTaskPriority, gTaskStack, &gTaskControlBlock, 1);
|
|
273
|
+
return gTask ? ESP_OK : ESP_ERR_NO_MEM;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
} // namespace
|
|
277
|
+
|
|
278
|
+
void gea::platform::touch::Touchscreen::setObserver(Observer observer)
|
|
279
|
+
{
|
|
280
|
+
gObserver = observer;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
void gea::platform::touch::Touchscreen::setPointerObserver(PointerObserver observer)
|
|
284
|
+
{
|
|
285
|
+
gPointerObserver = observer;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
bool gea::platform::touch::Touchscreen::init()
|
|
289
|
+
{
|
|
290
|
+
if (gTask) return true;
|
|
291
|
+
i2c_master_bus_handle_t bus = touchBus();
|
|
292
|
+
if (!bus) return false;
|
|
293
|
+
|
|
294
|
+
if (attachDevice(bus) != ESP_OK) return false;
|
|
295
|
+
if (startTask() != ESP_OK) return false;
|
|
296
|
+
// The task is created first so an edge arriving during setup has a target.
|
|
297
|
+
if (attachInterrupt() != ESP_OK) return false;
|
|
298
|
+
ESP_LOGI(kTag, "Physical touch ready (%s)", kInterruptDriven ? "interrupt" : "polling");
|
|
299
|
+
return true;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
int gea::platform::touch::Touchscreen::read(int *x, int *y)
|
|
303
|
+
{
|
|
304
|
+
if (x) *x = gCurrent.x;
|
|
305
|
+
if (y) *y = gCurrent.y;
|
|
306
|
+
return gCurrent.touching ? 1 : 0;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
int gea::platform::touch::Touchscreen::readCached(int *x, int *y)
|
|
310
|
+
{
|
|
311
|
+
return read(x, y);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
void gea::platform::touch::Touchscreen::consumeLatestMove(int *x, int *y)
|
|
315
|
+
{
|
|
316
|
+
gLatestMoveQueued.store(false, std::memory_order_release);
|
|
317
|
+
if (x) *x = gLatestMove.x;
|
|
318
|
+
if (y) *y = gLatestMove.y;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
void gea::platform::touch::Touchscreen::injectEvent(Phase phase, bool touching, int x, int y)
|
|
322
|
+
{
|
|
323
|
+
const TouchSample sample{touching, x, y};
|
|
324
|
+
gCurrent = sample;
|
|
325
|
+
if (phase == Phase::Move) notifyMove(sample);
|
|
326
|
+
else notify(phase, sample);
|
|
327
|
+
}
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
# Target: ESP32-S3
|
|
2
|
+
CONFIG_IDF_TARGET="esp32s3"
|
|
3
|
+
|
|
4
|
+
# Flash: 16 MB (Waveshare ESP32-S3-Touch-LCD-3.49)
|
|
5
|
+
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
|
|
6
|
+
|
|
7
|
+
# Allow bootloader cache-mapped reads from 32-bit SPI flash addresses. This is
|
|
8
|
+
# required for bootable app partitions above 16 MB on the board's DIO flash.
|
|
9
|
+
CONFIG_IDF_EXPERIMENTAL_FEATURES=y
|
|
10
|
+
CONFIG_BOOTLOADER_CACHE_32BIT_ADDR_QUAD_FLASH=y
|
|
11
|
+
|
|
12
|
+
# Console over USB Serial/JTAG (native USB-C on this board)
|
|
13
|
+
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
|
|
14
|
+
|
|
15
|
+
# esp_codec_dev should share the existing new-driver I2C bus with touch/PMIC.
|
|
16
|
+
# CONFIG_CODEC_I2C_BACKWARD_COMPATIBLE is not set
|
|
17
|
+
|
|
18
|
+
# Disable secondary console to avoid duplicate output
|
|
19
|
+
CONFIG_ESP_CONSOLE_SECONDARY_NONE=y
|
|
20
|
+
|
|
21
|
+
# FreeRTOS tick rate — 1000 Hz gives 1 ms resolution for modMilliseconds
|
|
22
|
+
CONFIG_FREERTOS_HZ=1000
|
|
23
|
+
|
|
24
|
+
# Run the S3 at its full rated app CPU clock. Bouncing display workloads are
|
|
25
|
+
# otherwise CPU-bound before the 80 MHz QSPI flush finishes.
|
|
26
|
+
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
|
|
27
|
+
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=240
|
|
28
|
+
|
|
29
|
+
# Main task stack for the app event loop. gea TSX frames can build deep
|
|
30
|
+
# reactive call chains before returning to the firmware loop.
|
|
31
|
+
CONFIG_ESP_MAIN_TASK_STACK_SIZE=32768
|
|
32
|
+
# The IPC task is per-core and its stack is internal DRAM, so 16384 cost 32 KiB of
|
|
33
|
+
# the scarcest memory on this board for tasks that only ever run ESP-IDF's own
|
|
34
|
+
# cross-core callbacks (intr_alloc is the single caller of esp_ipc_call_blocking
|
|
35
|
+
# in this firmware). IDF's default is 1024; 4096 keeps a 4x margin and hands ~24
|
|
36
|
+
# KiB back to the DMA-capable heap that the display staging and the WiFi RX
|
|
37
|
+
# frames were fighting over.
|
|
38
|
+
CONFIG_ESP_IPC_TASK_STACK_SIZE=4096
|
|
39
|
+
|
|
40
|
+
# Wi-Fi scan/connect callbacks run on ESP-IDF's system event task.
|
|
41
|
+
CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=4096
|
|
42
|
+
|
|
43
|
+
# Custom partition table with two OTA slots for wireless updates
|
|
44
|
+
CONFIG_PARTITION_TABLE_CUSTOM=y
|
|
45
|
+
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
|
46
|
+
|
|
47
|
+
# On panic: print backtrace then reboot. (Halting was meant to "keep USB alive
|
|
48
|
+
# for reflashing", but a halted ESP32-S3 won't accept an esptool reset — it has
|
|
49
|
+
# to be recovered over JTAG. Rebooting allows the firmware to remain
|
|
50
|
+
# reachable for diagnosis and reflashing.)
|
|
51
|
+
CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT=y
|
|
52
|
+
|
|
53
|
+
# Enable octal PSRAM for framebuffer
|
|
54
|
+
CONFIG_SPIRAM=y
|
|
55
|
+
CONFIG_SPIRAM_MODE_OCT=y
|
|
56
|
+
CONFIG_SPIRAM_SPEED_80M=y
|
|
57
|
+
CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=y
|
|
58
|
+
CONFIG_FREERTOS_TASK_CREATE_ALLOW_EXT_MEM=y
|
|
59
|
+
# vTaskDeleteWithCaps(NULL) (fetchAsync job tasks end this way) deletes the task from a helper task with
|
|
60
|
+
# configMINIMAL_STACK_SIZE, which follows this; the default 1536 overflows while the job's thread-local
|
|
61
|
+
# state is torn down and reboots the board.
|
|
62
|
+
CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=3072
|
|
63
|
+
CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y
|
|
64
|
+
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=0
|
|
65
|
+
# IDF defaults this to 32 KiB when SPIRAM malloc is enabled. That creates a
|
|
66
|
+
# second DMA/internal heap by allocating a chunk from internal DRAM and
|
|
67
|
+
# re-registering it, which splits the physical heap map into a middle green
|
|
68
|
+
# reserve island. Keep internal memory globally allocatable; app/display code
|
|
69
|
+
# already asks for MALLOC_CAP_INTERNAL/MALLOC_CAP_DMA when it truly needs it.
|
|
70
|
+
CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=0
|
|
71
|
+
|
|
72
|
+
# Wi-Fi/LwIP memory budget: prefer lower throughput over internal DRAM pressure.
|
|
73
|
+
CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=8
|
|
74
|
+
CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM=16
|
|
75
|
+
CONFIG_ESP_WIFI_STATIC_TX_BUFFER_NUM=4
|
|
76
|
+
CONFIG_ESP_WIFI_CACHE_TX_BUFFER_NUM=2
|
|
77
|
+
CONFIG_ESP_WIFI_MGMT_SBUF_NUM=16
|
|
78
|
+
CONFIG_ESP_WIFI_RX_BA_WIN=8
|
|
79
|
+
# RX-MGMT buffers DYNAMIC, not static. A RAM-tight app (maps: full-screen canvas
|
|
80
|
+
# + tile cache) leaves esp_wifi_init only ~11 KB internal DMA, but its STATIC
|
|
81
|
+
# esf_buf pool (static_rx 3 + rx_mgmt 5 + cache_tx 2 = 10 DMA-capable internal
|
|
82
|
+
# buffers) overflows it → esf_buf_setup_static NO_MEM → WiFi never comes up (no
|
|
83
|
+
# map tiles). Dynamic mgmt buffers leave the static pool and, with
|
|
84
|
+
# CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y above, allocate on demand from PSRAM.
|
|
85
|
+
# MUST be set here, not via the runtime wifi_init_config: flipping rx_mgmt_buf_type
|
|
86
|
+
# at runtime against a static-configured build asserts inside esp_wifi_init
|
|
87
|
+
# (panic/reboot loop). Doing it in sdkconfig keeps WIFI_INIT_CONFIG_DEFAULT consistent.
|
|
88
|
+
# CONFIG_ESP_WIFI_STATIC_RX_MGMT_BUFFER is not set
|
|
89
|
+
CONFIG_ESP_WIFI_DYNAMIC_RX_MGMT_BUFFER=y
|
|
90
|
+
# CONFIG_ESP_WIFI_IRAM_OPT is not set
|
|
91
|
+
# Measured on this board, NOT worth it for OTA. Putting the WiFi RX path in IRAM
|
|
92
|
+
# does what it promises — the receive phase of a 3.8 MB image went from 277 KB/s
|
|
93
|
+
# to 488 KB/s, because RX keeps running through the cache-disabled windows that
|
|
94
|
+
# esp_ota_write opens. But the same live RX path then contends with the flash
|
|
95
|
+
# operation it is running alongside, and the write phase fell from 502 KB/s to
|
|
96
|
+
# 213 KB/s. End to end that is 116 KB/s against 133 KB/s, plus ~10 KB of internal
|
|
97
|
+
# DRAM. Left off deliberately; do not re-enable without re-measuring both phases.
|
|
98
|
+
# CONFIG_ESP_WIFI_RX_IRAM_OPT is not set
|
|
99
|
+
# Wi-Fi driver task: IDF 5.5/6.0 no longer exposes a public
|
|
100
|
+
# CONFIG_ESP_WIFI_TASK_STACK_SIZE knob. targets/esp32/connectivity/wifi.cpp
|
|
101
|
+
# wraps wifi_init_config_t.osi_funcs task creation and bumps the closed-source
|
|
102
|
+
# "wifi" task to 8192 bytes there.
|
|
103
|
+
CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=4096
|
|
104
|
+
|
|
105
|
+
# Allow lwIP to buffer out-of-sequence TCP segments. Without them a single dropped
|
|
106
|
+
# segment forces go-back-N retransmission of everything in flight, which (with RTO
|
|
107
|
+
# backoff 1.5+3+6+...s) turns one packet loss into a ~15s stall on an otherwise-fast
|
|
108
|
+
# link. 0 means UNCAPPED here, which is also IDF's own default whenever
|
|
109
|
+
# CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP is set, because the pbufs then come from
|
|
110
|
+
# PSRAM and are only held while a gap actually exists. The previous cap of 8 was
|
|
111
|
+
# below the widened receive window, so a loss early in a 16-segment window could
|
|
112
|
+
# not be bridged: an OTA transfer was bimodal, either ~17 s or ~87 s for the same
|
|
113
|
+
# 3.9 MB image under identical conditions, with the slow mode sitting in RTO backoff.
|
|
114
|
+
CONFIG_LWIP_TCP_OOSEQ_MAX_PBUFS=0
|
|
115
|
+
|
|
116
|
+
# Advertise selective acknowledgements. An OTA receiver drops frames every time
|
|
117
|
+
# esp_ota_write disables the flash cache, and without SACK the sender cannot tell
|
|
118
|
+
# which single segment went missing — it retransmits the whole window and backs
|
|
119
|
+
# off. This is the other half of the bimodal-throughput fix above.
|
|
120
|
+
CONFIG_LWIP_TCP_SACK_OUT=y
|
|
121
|
+
|
|
122
|
+
# TCP receive window. The IDF default of 5760 is four segments: an OTA image
|
|
123
|
+
# arrives through a receiver that has to stop and write to flash, and with a
|
|
124
|
+
# four-segment window the sender spends most of the transfer blocked waiting for
|
|
125
|
+
# a window update instead of keeping the link busy. Sixteen segments give the
|
|
126
|
+
# flash writes something to overlap with. The buffering behind the window is
|
|
127
|
+
# lwIP pbufs and WiFi dynamic RX frames, both of which prefer PSRAM here
|
|
128
|
+
# (CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP above), so this does not spend internal
|
|
129
|
+
# DRAM. 23040 stays under 65535, so no window scaling is required.
|
|
130
|
+
CONFIG_LWIP_TCP_WND_DEFAULT=23040
|
|
131
|
+
CONFIG_LWIP_TCP_RECVMBOX_SIZE=16
|
|
132
|
+
|
|
133
|
+
# Firmware uses STA mode for OTA/log/mirror; trim unused Wi-Fi/LwIP features.
|
|
134
|
+
CONFIG_ESP_WIFI_SOFTAP_SUPPORT=y
|
|
135
|
+
# CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT is not set
|
|
136
|
+
# CONFIG_ESP_WIFI_ENABLE_WPA3_SAE is not set
|
|
137
|
+
# CONFIG_ESP_WIFI_ENABLE_WPA3_OWE_STA is not set
|
|
138
|
+
# esp_peer (WebRTC transport) needs IPv6 sockets.
|
|
139
|
+
CONFIG_LWIP_IPV6=y
|
|
140
|
+
# WiFi provisioning runs a captive-portal SoftAP with its own DHCP server.
|
|
141
|
+
CONFIG_LWIP_DHCPS=y
|
|
142
|
+
|
|
143
|
+
# Bluetooth: NimBLE dual-role for the BLE control surface. This board serves
|
|
144
|
+
# HID + BLE-MIDI as a peripheral AND hosts remote peripherals as a central
|
|
145
|
+
# (XPPen ACK05 macro pad, WIDI/pedal BLE-MIDI adapter) — 4 simultaneous links:
|
|
146
|
+
# desktop (our HID), DAW (our MIDI), XPPen, pedal.
|
|
147
|
+
CONFIG_BT_ENABLED=y
|
|
148
|
+
CONFIG_BT_NIMBLE_ENABLED=y
|
|
149
|
+
CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL=y
|
|
150
|
+
CONFIG_BT_NIMBLE_MAX_CONNECTIONS=4
|
|
151
|
+
CONFIG_BT_NIMBLE_ROLE_BROADCASTER=y
|
|
152
|
+
CONFIG_BT_NIMBLE_ROLE_PERIPHERAL=y
|
|
153
|
+
CONFIG_BT_NIMBLE_ROLE_CENTRAL=y
|
|
154
|
+
CONFIG_BT_NIMBLE_ROLE_OBSERVER=y
|
|
155
|
+
CONFIG_BT_NIMBLE_SM_LEGACY=y
|
|
156
|
+
CONFIG_BT_NIMBLE_SM_SC=y
|
|
157
|
+
CONFIG_BT_NIMBLE_NVS_PERSIST=y
|
|
158
|
+
CONFIG_BT_NIMBLE_LOG_LEVEL_NONE=y
|
|
159
|
+
|
|
160
|
+
# Pin WiFi + BT controller + NimBLE host to core 1, leaving core 0 for the app
|
|
161
|
+
# frame/render task (GEA_EMBEDDED_APP_FRAME_TASK_CORE=0). IDF pins all of these
|
|
162
|
+
# to core 0 by default, where they contend with rendering: launching an app
|
|
163
|
+
# through the launcher dropped to ~22 fps because the per-chunk flush wait was
|
|
164
|
+
# preempted (19 ms vs 1.6 ms). Moving them to core 1 restores ~60 fps. Keep
|
|
165
|
+
# WiFi and BT on the SAME core for coexistence (ESP_COEX_SW_COEXIST_ENABLE).
|
|
166
|
+
CONFIG_ESP_WIFI_TASK_PINNED_TO_CORE_1=y
|
|
167
|
+
CONFIG_BT_CTRL_PINNED_TO_CORE_1=y
|
|
168
|
+
CONFIG_BT_NIMBLE_PINNED_TO_CORE_1=y
|
|
169
|
+
|
|
170
|
+
# WebRTC: mbedTLS DTLS + DTLS-SRTP for esp_peer
|
|
171
|
+
# Required by espressif/esp_peer (DTLS-SRTP handshake, DTLS cookies, MTU
|
|
172
|
+
# config). Off by default in IDF — turning them on costs ~30-40 kB of
|
|
173
|
+
# mbedTLS code but is non-negotiable for SRTP-protected RTP.
|
|
174
|
+
CONFIG_MBEDTLS_SSL_PROTO_DTLS=y
|
|
175
|
+
CONFIG_MBEDTLS_SSL_DTLS_SRTP=y
|
|
176
|
+
CONFIG_MBEDTLS_SSL_DTLS_HELLO_VERIFY=y
|
|
177
|
+
CONFIG_MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE=y
|
|
178
|
+
CONFIG_MBEDTLS_SSL_DTLS_CONNECTION_ID=y
|
|
179
|
+
# esp_peer generates a self-signed DTLS cert at runtime via
|
|
180
|
+
# mbedtls_x509write_crt_*; those live behind MBEDTLS_X509_CREATE_C, which
|
|
181
|
+
# ESP-IDF 6.0 flipped to default-off (was implicitly available in 5.5). Without
|
|
182
|
+
# it esp_peer fails to link (implicit-declaration of mbedtls_x509write_crt_*).
|
|
183
|
+
CONFIG_MBEDTLS_X509_CREATE_C=y
|
|
184
|
+
CONFIG_MBEDTLS_X509_CRT_WRITE_C=y
|
|
185
|
+
CONFIG_MBEDTLS_X509_CSR_WRITE_C=y
|
|
186
|
+
|
|
187
|
+
# Allocate mbedTLS memory from PSRAM instead of internal DRAM. IDF defaults to
|
|
188
|
+
# INTERNAL_MEM_ALLOC, but internal RAM is scarce on this board (app + 2-deep
|
|
189
|
+
# flush pipeline + WiFi driver). A TLS handshake's PSA signature verification
|
|
190
|
+
# and 16 KB input buffer then fail to allocate, surfacing as the misleading
|
|
191
|
+
# "esp-x509-crt-bundle: Certificate matched but signature verification failed"
|
|
192
|
+
# with PSA error -141 (PSA_ERROR_INSUFFICIENT_MEMORY) — a heap shortage, not a
|
|
193
|
+
# trust failure. PSRAM has megabytes free; the hardware MPI/crypto path copies
|
|
194
|
+
# operands into the peripheral so PSRAM-resident TLS buffers are fine.
|
|
195
|
+
# CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC is not set
|
|
196
|
+
CONFIG_MBEDTLS_EXTERNAL_MEM_ALLOC=y
|
|
197
|
+
|
|
198
|
+
# Run TLS crypto in SOFTWARE so it allocates from PSRAM (via EXTERNAL_MEM_ALLOC
|
|
199
|
+
# above) rather than DMA-capable internal SRAM. EXTERNAL_MEM_ALLOC moves the
|
|
200
|
+
# mbedTLS input/output buffers to PSRAM, but the ESP32-S3 SHA/MPI/AES hardware
|
|
201
|
+
# drivers bypass the mbedTLS allocator and demand MALLOC_CAP_DMA|MALLOC_CAP_INTERNAL
|
|
202
|
+
# scratch buffers (e.g. sha.c allocates a DMA buffer sized to the data being
|
|
203
|
+
# hashed). Once WiFi is up, internal 8-bit RAM is ~1 KB free, so those allocations
|
|
204
|
+
# fail mid-handshake — surfacing as mbedtls_ssl_setup -> MBEDTLS_ERR_SSL_ALLOC_FAILED
|
|
205
|
+
# (PSA -141) and ESP_ERR_HTTP_CONNECT on every HTTPS fetch. Software crypto keeps
|
|
206
|
+
# everything in PSRAM and is amply fast for the app's occasional small fetches.
|
|
207
|
+
# CONFIG_MBEDTLS_HARDWARE_SHA is not set
|
|
208
|
+
# CONFIG_MBEDTLS_HARDWARE_MPI is not set
|
|
209
|
+
# CONFIG_MBEDTLS_MPI_USE_INTERRUPT is not set
|
|
210
|
+
# CONFIG_MBEDTLS_HARDWARE_AES is not set
|
|
211
|
+
|
|
212
|
+
# Release optimization level. ESP-IDF defaults to -Og (DEBUG) which is
|
|
213
|
+
# friendly for debugging but leaves real perf on the table for compute-heavy
|
|
214
|
+
# code paths. -O2 (PERF) is the correct release setting.
|
|
215
|
+
CONFIG_COMPILER_OPTIMIZATION_PERF=y
|
|
216
|
+
# CONFIG_COMPILER_OPTIMIZATION_DEBUG is not set
|
|
217
|
+
|
|
218
|
+
# --- Development logging / diagnostics defaults ---
|
|
219
|
+
# VS Code launch tasks build per-app firmware under build/app-builds/<app>.
|
|
220
|
+
# Keep those dev builds chatty by default so serial monitor shows boot logs,
|
|
221
|
+
# gea.perf fps windows, frame scheduler diagnostics, and assertion failures.
|
|
222
|
+
# Production lockdown can still be enabled via menuconfig, but it is not the
|
|
223
|
+
# default for local flash/monitor iteration.
|
|
224
|
+
# CONFIG_GEA_EMBEDDED_PRODUCTION_LOCKDOWN is not set
|
|
225
|
+
|
|
226
|
+
# Runtime and bootloader logs visible on USB serial/JTAG.
|
|
227
|
+
# CONFIG_LOG_DEFAULT_LEVEL_NONE is not set
|
|
228
|
+
CONFIG_LOG_DEFAULT_LEVEL_INFO=y
|
|
229
|
+
CONFIG_LOG_DEFAULT_LEVEL=3
|
|
230
|
+
CONFIG_LOG_MAXIMUM_EQUALS_DEFAULT=y
|
|
231
|
+
CONFIG_LOG_MAXIMUM_LEVEL=3
|
|
232
|
+
|
|
233
|
+
# Keep assertions enabled in local dev builds.
|
|
234
|
+
# CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE is not set
|
|
235
|
+
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE=y
|
|
236
|
+
CONFIG_COMPILER_OPTIMIZATION_ASSERTION_LEVEL=2
|
|
237
|
+
# geatsc lowers a program's `throw`/`try`/`catch` to real C++ exceptions, and
|
|
238
|
+
# its runtime header (`gea_runtime.h`, e.g. the regex cache's std::regex_error
|
|
239
|
+
# translation) contains typed catch handlers unconditionally. ESP-IDF's default
|
|
240
|
+
# stubs __cxa_throw to abort and compiles with -fno-exceptions, under which
|
|
241
|
+
# gcc rejects those handlers -- so no geatsc-generated app compiles for this
|
|
242
|
+
# board without exception support. The emergency pool stays 0: the cost is
|
|
243
|
+
# unwind tables in flash and ~500 B of heap on the first throw, nothing at rest.
|
|
244
|
+
CONFIG_COMPILER_CXX_EXCEPTIONS=y
|
|
245
|
+
CONFIG_COMPILER_CXX_EXCEPTIONS_EMG_POOL_SIZE=0
|
|
246
|
+
|
|
247
|
+
# Keep early boot output visible too.
|
|
248
|
+
# CONFIG_BOOTLOADER_LOG_LEVEL_NONE is not set
|
|
249
|
+
CONFIG_BOOTLOADER_LOG_LEVEL_INFO=y
|
|
250
|
+
CONFIG_BOOTLOADER_LOG_LEVEL=3
|
|
251
|
+
|
|
252
|
+
# Diagnostic allocation attribution. Keep standalone heap tracing available for
|
|
253
|
+
# app-init fragmentation investigations; trace records are placed in PSRAM by
|
|
254
|
+
# the caller, and tracing remains idle unless explicitly started.
|
|
255
|
+
# Heap tracing costs about a kilobyte of IRAM (1,067 bytes measured on
|
|
256
|
+
# esp32-s3-touch-amoled-2.06) and puts a hook on the allocator's hot path. On the
|
|
257
|
+
# S3 that IRAM is not free space: the linker sizes .dram0.dummy to whatever IRAM
|
|
258
|
+
# the image used, so every byte of .iram0.text is a byte the internal heap never
|
|
259
|
+
# gets -- and the internal heap is what DMA, USB host enumeration and aligned
|
|
260
|
+
# coefficient banks come out of. The framework's only users, the display and
|
|
261
|
+
# AXP2101 init traces, are already gated on GEA_EMBEDDED_HEAP_DIAGNOSTICS_LOG,
|
|
262
|
+
# which defaults to 0. So nothing traced by default and every app paid for it.
|
|
263
|
+
# Turn this and that macro on together when you actually want a trace.
|
|
264
|
+
CONFIG_HEAP_TRACING_OFF=y
|
|
265
|
+
# CONFIG_HEAP_TRACING_STANDALONE is not set
|
|
266
|
+
# CONFIG_HEAP_TRACING_TOHOST is not set
|
|
267
|
+
# CONFIG_HEAP_TRACING is not set
|
|
268
|
+
# CONFIG_HEAP_TRACE_HASH_MAP is not set
|
|
269
|
+
|
|
270
|
+
# Instruction cache: the default 16 KB / 32-byte-line I-cache thrashes on
|
|
271
|
+
# frame loops that touch libm. Measured on bubble-grid: a Math.pow costs
|
|
272
|
+
# 25.4k cycles cold but 6.5k warm back-to-back, and Date.now 11.5k vs 4.1k --
|
|
273
|
+
# i.e. ~19k and ~7.4k cycles per frame are pure cold-flash refetch, because
|
|
274
|
+
# the rest of the frame evicts the routine before the next frame calls it.
|
|
275
|
+
# 32 KB holds more of the frame's working set. (S3's I-cache line size is
|
|
276
|
+
# 16B or 32B only -- there is no 64B option.) the gea CLI also enforces this
|
|
277
|
+
# on every build, because the generated sdkconfig is sticky and defaults only
|
|
278
|
+
# fill values that an existing build directory has not already frozen.
|
|
279
|
+
CONFIG_ESP32S3_INSTRUCTION_CACHE_32KB=y
|