@geastack/targets 0.1.107 → 0.1.108

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.
Files changed (39) hide show
  1. package/build-config.json +73 -0
  2. package/package.json +6 -6
  3. package/targets/esp32/chip_bindings/displays/sh8601.cpp +12 -2
  4. package/targets/esp32/chip_bindings/imu/qmi8658.cpp +10 -3
  5. package/targets/esp32/chip_bindings/power/axp2101.cpp +58 -0
  6. package/targets/esp32/chip_bindings/touch/cst9217.cpp +26 -23
  7. package/targets/esp32/connectivity/wifi.cpp +30 -2
  8. package/targets/esp32/gea_board_buttons.cmake +13 -0
  9. package/targets/esp32/gpio.cpp +124 -1
  10. package/targets/esp32/gpio_pins.h +17 -0
  11. package/targets/esp32/services/buttons.cpp +185 -0
  12. package/targets/esp32/services/buttons.h +46 -0
  13. package/targets/esp32/services/device_control.cpp +28 -0
  14. package/targets/esp32-s3-touch-amoled-1.75c/CMakeLists.txt +11 -0
  15. package/targets/esp32-s3-touch-amoled-1.75c/main/CMakeLists.txt +54 -0
  16. package/targets/esp32-s3-touch-amoled-1.75c/main/Kconfig.projbuild +12 -0
  17. package/targets/esp32-s3-touch-amoled-1.75c/main/gea-dependencies.json +42 -0
  18. package/targets/esp32-s3-touch-amoled-1.75c/main/idf_component.yml +10 -0
  19. package/targets/esp32-s3-touch-amoled-1.75c/main/include/board.h +113 -0
  20. package/targets/esp32-s3-touch-amoled-1.75c/partitions.csv +9 -0
  21. package/targets/esp32-s3-touch-amoled-1.75c/sdkconfig.defaults +279 -0
  22. package/targets/esp32-s3-touch-amoled-1.8/main/CMakeLists.txt +10 -1
  23. package/targets/esp32-s3-touch-amoled-1.8/main/app_main.cpp +2 -0
  24. package/targets/esp32-s3-touch-amoled-2.06/main/CMakeLists.txt +13 -0
  25. package/targets/esp32-s3-touch-amoled-2.06/main/app_main.cpp +2 -0
  26. package/targets/esp32-s3-touch-amoled-2.06/sdkconfig.defaults +5 -3
  27. package/targets/esp32-s3-touch-lcd-3.49/CMakeLists.txt +11 -0
  28. package/targets/esp32-s3-touch-lcd-3.49/main/CMakeLists.txt +82 -0
  29. package/targets/esp32-s3-touch-lcd-3.49/main/Kconfig.projbuild +12 -0
  30. package/targets/esp32-s3-touch-lcd-3.49/main/gea-dependencies.json +42 -0
  31. package/targets/esp32-s3-touch-lcd-3.49/main/idf_component.yml +8 -0
  32. package/targets/esp32-s3-touch-lcd-3.49/main/include/axs15231b_panel_init.h +9 -0
  33. package/targets/esp32-s3-touch-lcd-3.49/main/include/board.h +160 -0
  34. package/targets/esp32-s3-touch-lcd-3.49/main/panel_reset.cpp +93 -0
  35. package/targets/esp32-s3-touch-lcd-3.49/main/power.cpp +60 -0
  36. package/targets/esp32-s3-touch-lcd-3.49/main/touch.cpp +327 -0
  37. package/targets/esp32-s3-touch-lcd-3.49/partitions.csv +7 -0
  38. package/targets/esp32-s3-touch-lcd-3.49/sdkconfig.defaults +279 -0
  39. package/targets.json +60 -1
@@ -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
package/targets.json CHANGED
@@ -36,7 +36,21 @@
36
36
  "appPlatform": "esp32",
37
37
  "idfTarget": "esp32s3",
38
38
  "esptoolChip": "esp32s3",
39
- "ipcTaskStackSize": "4096"
39
+ "ipcTaskStackSize": "4096",
40
+ "buttons": [
41
+ {
42
+ "code": "Boot",
43
+ "pin": 0,
44
+ "activeLevel": 0,
45
+ "key": "Escape"
46
+ },
47
+ {
48
+ "code": "Power",
49
+ "source": "pmu",
50
+ "key": "Enter"
51
+ }
52
+ ],
53
+ "_buttons": "RESET is the chip's EN line, which no software sees. PWR is the AXP2101's PWRON key, read from the PMU."
40
54
  },
41
55
  "esp32-s3-touch-amoled-1.8": {
42
56
  "adapter": "esp32-idf",
@@ -63,6 +77,28 @@
63
77
  "idfTarget": "esp32s3",
64
78
  "esptoolChip": "esp32s3"
65
79
  },
80
+ "esp32-s3-touch-amoled-1.75c": {
81
+ "adapter": "esp32-idf",
82
+ "targetPath": "targets/esp32-s3-touch-amoled-1.75c",
83
+ "flashSize": "32MB",
84
+ "appPlatform": "esp32",
85
+ "idfTarget": "esp32s3",
86
+ "esptoolChip": "esp32s3",
87
+ "buttons": [
88
+ {
89
+ "code": "Boot",
90
+ "pin": 0,
91
+ "activeLevel": 0,
92
+ "key": "Escape"
93
+ },
94
+ {
95
+ "code": "Power",
96
+ "source": "pmu",
97
+ "key": "Enter"
98
+ }
99
+ ],
100
+ "_buttons": "RESET is the chip's EN line, which no software sees. PWR is the AXP2101's PWRON key, read from the PMU."
101
+ },
66
102
  "esp32-s3-epaper-1.54": {
67
103
  "adapter": "esp32-idf",
68
104
  "targetPath": "targets/esp32-s3-epaper-1.54",
@@ -180,6 +216,29 @@
180
216
  "idfTarget": "esp32s3",
181
217
  "esptoolChip": "esp32s3"
182
218
  },
219
+ "esp32-s3-touch-lcd-3.49": {
220
+ "adapter": "esp32-idf",
221
+ "targetPath": "targets/esp32-s3-touch-lcd-3.49",
222
+ "flashSize": "16MB",
223
+ "appPlatform": "esp32",
224
+ "idfTarget": "esp32s3",
225
+ "esptoolChip": "esp32s3",
226
+ "_buttons": "RESET is the chip's EN line, which no software sees. PWR is GPIO16, the vendor's SYS_OUT (V2 factory program, button_bsp.c); on battery it is also the hardware power-on key.",
227
+ "buttons": [
228
+ {
229
+ "code": "Boot",
230
+ "pin": 0,
231
+ "activeLevel": 0,
232
+ "key": "Escape"
233
+ },
234
+ {
235
+ "code": "Power",
236
+ "pin": 16,
237
+ "activeLevel": 0,
238
+ "key": "Enter"
239
+ }
240
+ ]
241
+ },
183
242
  "esp32-s31-espressif-mosaico": {
184
243
  "adapter": "esp32-idf",
185
244
  "targetPath": "targets/esp32-s31-espressif-mosaico",