@geastack/targets 0.1.100 → 0.1.102
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/package.json +7 -7
- package/targets/cmake/geatsc-generated-archive-build.mjs +32 -1
- package/targets/esp32/app_project.cmake +2 -2
- package/targets/esp32/chip_bindings/audio/echo_cancellation.cpp +392 -28
- package/targets/esp32/chip_bindings/audio/echo_cancellation.h +18 -2
- package/targets/esp32/chip_bindings/audio/es8311.cpp +117 -13
- package/targets/esp32/chip_bindings/displays/co5300.cpp +68 -28
- package/targets/esp32/components/gea_framework/CMakeLists.txt +17 -1
- package/targets/esp32/components/gea_framework/idf_component.yml +4 -0
- package/targets/esp32/components/gea_vpx/CMakeLists.txt +1 -1
- package/targets/esp32/connectivity/wifi.cpp +800 -543
- package/targets/esp32/display.cpp +121 -26
- package/targets/esp32/gea_framework.cmake +22 -28
- package/targets/esp32/host_sources.cmake +1 -0
- package/targets/esp32/services/comparison_benchmark.h +137 -0
- package/targets/esp32/services/comparison_gesture.h +133 -0
- package/targets/esp32/services/comparison_input_trace.h +64 -0
- package/targets/esp32/services/comparison_upload_capture.h +125 -0
- package/targets/esp32/services/debugger.h +634 -0
- package/targets/esp32/services/device_control.cpp +965 -20
- package/targets/esp32/services/frame_scheduler.cpp +128 -4
- package/targets/esp32/services/heap.cpp +125 -0
- package/targets/esp32/services/opus_benchmark.h +1 -1
- package/targets/esp32/services/storage_service.cpp +119 -104
- package/targets/esp32-p4-m5stack-tab5/dependencies.lock +27 -16
- package/targets/esp32-s3-m5stack-stopwatch/.clang-format +10 -0
- package/targets/esp32-s3-m5stack-stopwatch/README.md +14 -9
- package/targets/esp32-s3-m5stack-stopwatch/dependencies.lock +54 -1
- package/targets/esp32-s3-m5stack-stopwatch/main/CMakeLists.txt +10 -7
- package/targets/esp32-s3-m5stack-stopwatch/main/buttons.cpp +80 -0
- package/targets/esp32-s3-m5stack-stopwatch/main/idf_component.yml +18 -0
- package/targets/esp32-s3-m5stack-stopwatch/main/include/board.h +38 -17
- package/targets/esp32-s3-m5stack-stopwatch/main/panel_reset.cpp +132 -129
- package/targets/esp32-s3-m5stack-stopwatch/main/power.cpp +253 -0
- package/targets/esp32-s3-m5stack-stopwatch/main/touch.cpp +158 -88
- package/targets/esp32-s3-m5stack-stopwatch/sdkconfig.defaults +13 -0
- package/targets/esp32-s3-touch-amoled-1.8/main/CMakeLists.txt +30 -3
- package/targets/esp32-s3-touch-amoled-2.06/dependencies.lock +10 -148
- package/targets/esp32-s31-espressif-mosaico/CMakeLists.txt +8 -0
- package/targets/esp32-s31-espressif-mosaico/README.md +54 -2
- package/targets/esp32-s31-espressif-mosaico/dependencies.lock +405 -1
- package/targets/esp32-s31-espressif-mosaico/main/CMakeLists.txt +31 -1
- package/targets/esp32-s31-espressif-mosaico/main/board_power.cpp +117 -0
- package/targets/esp32-s31-espressif-mosaico/main/camera.cpp +389 -0
- package/targets/esp32-s31-espressif-mosaico/main/idf_component.yml +17 -3
- package/targets/esp32-s31-espressif-mosaico/main/include/board.h +23 -0
- package/targets/esp32-s31-espressif-mosaico/main/nand_mount.cpp +172 -0
- package/targets/esp32-s31-espressif-mosaico/partitions.csv +7 -3
- package/targets/esp32-s31-espressif-mosaico/sdkconfig.defaults +24 -0
|
@@ -1,4 +1,103 @@
|
|
|
1
1
|
dependencies:
|
|
2
|
+
78/esp-opus:
|
|
3
|
+
component_hash: 8182b733f071d7bfe1e837f4c9f8649a63e4c937177f089e65772880c02f2e17
|
|
4
|
+
dependencies:
|
|
5
|
+
- name: idf
|
|
6
|
+
require: private
|
|
7
|
+
version: '>=5.0'
|
|
8
|
+
source:
|
|
9
|
+
registry_url: https://components.espressif.com/
|
|
10
|
+
type: service
|
|
11
|
+
version: 1.0.5
|
|
12
|
+
esp-mosaico-bsp:
|
|
13
|
+
component_hash: 85897538499a0683b3f08d07620ae3e4a4c45a6c91cb21264d9c6361f21d7098
|
|
14
|
+
dependencies:
|
|
15
|
+
- name: idf
|
|
16
|
+
version: '>=6.2'
|
|
17
|
+
- git: https://github.com/esp-mosaico/esp-mosaico-bsp.git
|
|
18
|
+
name: mosaico_boot_splash
|
|
19
|
+
path: components/mosaico_boot_splash
|
|
20
|
+
version: a4bfb426afcf2911c01fdd9b6d6f024019f00f8f
|
|
21
|
+
- name: espressif/esp_lvgl_adapter
|
|
22
|
+
public: true
|
|
23
|
+
rules:
|
|
24
|
+
- if: $CONFIG{BSP_DISPLAY_ENABLE} == True && $CONFIG{BSP_DISPLAY_LVGL_ENABLE} == True
|
|
25
|
+
version: 0.6.2
|
|
26
|
+
- name: lvgl/lvgl
|
|
27
|
+
rules:
|
|
28
|
+
- if: $CONFIG{BSP_DISPLAY_ENABLE} == True && $CONFIG{BSP_DISPLAY_LVGL_ENABLE} == True
|
|
29
|
+
version: ^9.5.0,<9.6.0
|
|
30
|
+
- name: espressif/esp_lcd_co5300
|
|
31
|
+
version: ^2.2
|
|
32
|
+
- name: espressif/esp_lcd_touch_cst9220
|
|
33
|
+
version: ^0.1
|
|
34
|
+
- name: espressif/spi_nand_flash
|
|
35
|
+
public: true
|
|
36
|
+
version: ^1.3.0
|
|
37
|
+
- name: espressif/esp_codec_dev
|
|
38
|
+
public: true
|
|
39
|
+
version: ~1.6
|
|
40
|
+
- name: espressif/button
|
|
41
|
+
public: true
|
|
42
|
+
version: ^4
|
|
43
|
+
- name: espressif2022/bmi270
|
|
44
|
+
public: true
|
|
45
|
+
version: ^1.1.0~2
|
|
46
|
+
- name: tangyumei3535/bmm150_sensorapi
|
|
47
|
+
public: true
|
|
48
|
+
version: ^1.0.0
|
|
49
|
+
- name: espressif/bq27220
|
|
50
|
+
public: true
|
|
51
|
+
version: ^0.1.1~1
|
|
52
|
+
source:
|
|
53
|
+
git: https://github.com/esp-mosaico/esp-mosaico-bsp.git
|
|
54
|
+
path: components/esp-mosaico-bsp
|
|
55
|
+
type: git
|
|
56
|
+
targets:
|
|
57
|
+
- esp32s31
|
|
58
|
+
version: a4bfb426afcf2911c01fdd9b6d6f024019f00f8f
|
|
59
|
+
espressif/bq27220:
|
|
60
|
+
component_hash: 6f216c63304baed177cd70bdb1654223e55dfbf3ff5a272d793eed3e3be15e6d
|
|
61
|
+
dependencies:
|
|
62
|
+
- name: espressif/cmake_utilities
|
|
63
|
+
registry_url: https://components.espressif.com
|
|
64
|
+
require: private
|
|
65
|
+
version: 0.*
|
|
66
|
+
- name: espressif/i2c_bus
|
|
67
|
+
registry_url: https://components.espressif.com
|
|
68
|
+
require: public
|
|
69
|
+
version: ^1.4
|
|
70
|
+
- name: idf
|
|
71
|
+
require: private
|
|
72
|
+
version: '>=4.4'
|
|
73
|
+
source:
|
|
74
|
+
registry_url: https://components.espressif.com/
|
|
75
|
+
type: service
|
|
76
|
+
version: 0.1.3
|
|
77
|
+
espressif/button:
|
|
78
|
+
component_hash: a1f34e8ed2e61ffef1a230fd9477005c2db335c7e1f6a239f43e5f119dcbe1b0
|
|
79
|
+
dependencies:
|
|
80
|
+
- name: espressif/cmake_utilities
|
|
81
|
+
registry_url: https://components.espressif.com
|
|
82
|
+
require: private
|
|
83
|
+
version: '*'
|
|
84
|
+
- name: idf
|
|
85
|
+
require: private
|
|
86
|
+
version: '>=4.0'
|
|
87
|
+
source:
|
|
88
|
+
registry_url: https://components.espressif.com/
|
|
89
|
+
type: service
|
|
90
|
+
version: 4.2.1
|
|
91
|
+
espressif/cjson:
|
|
92
|
+
component_hash: e788323270d90738662d66fffa910bfe1fba019bba087f01557e70c40485b469
|
|
93
|
+
dependencies:
|
|
94
|
+
- name: idf
|
|
95
|
+
require: private
|
|
96
|
+
version: '>=5.0'
|
|
97
|
+
source:
|
|
98
|
+
registry_url: https://components.espressif.com/
|
|
99
|
+
type: service
|
|
100
|
+
version: 1.7.19~2
|
|
2
101
|
espressif/cmake_utilities:
|
|
3
102
|
component_hash: 351350613ceafba240b761b4ea991e0f231ac7a9f59a9ee901f751bddc0bb18f
|
|
4
103
|
dependencies:
|
|
@@ -9,6 +108,39 @@ dependencies:
|
|
|
9
108
|
registry_url: https://components.espressif.com
|
|
10
109
|
type: service
|
|
11
110
|
version: 0.5.3
|
|
111
|
+
espressif/dhara:
|
|
112
|
+
component_hash: 46b686fd0599aed21fee222c249744f05eed28d8e62446bcc83b6b50bcc390e0
|
|
113
|
+
dependencies: []
|
|
114
|
+
source:
|
|
115
|
+
registry_url: https://components.espressif.com
|
|
116
|
+
type: service
|
|
117
|
+
version: 1.1.0
|
|
118
|
+
espressif/esp_cam_sensor:
|
|
119
|
+
component_hash: 0dd6634a71cc8756f0e46c961476304a23a82db4f4c4deb8aecfa30161d2185c
|
|
120
|
+
dependencies:
|
|
121
|
+
- name: espressif/cmake_utilities
|
|
122
|
+
registry_url: https://components.espressif.com
|
|
123
|
+
require: private
|
|
124
|
+
version: 0.*
|
|
125
|
+
- name: espressif/esp_sccb_intf
|
|
126
|
+
registry_url: https://components.espressif.com
|
|
127
|
+
require: private
|
|
128
|
+
version: '>=0.0.5'
|
|
129
|
+
- name: idf
|
|
130
|
+
require: private
|
|
131
|
+
version: '>=5.3'
|
|
132
|
+
source:
|
|
133
|
+
registry_url: https://components.espressif.com
|
|
134
|
+
type: service
|
|
135
|
+
targets:
|
|
136
|
+
- esp32p4
|
|
137
|
+
- esp32s3
|
|
138
|
+
- esp32c3
|
|
139
|
+
- esp32c5
|
|
140
|
+
- esp32c6
|
|
141
|
+
- esp32c61
|
|
142
|
+
- esp32s31
|
|
143
|
+
version: 2.6.0
|
|
12
144
|
espressif/esp_codec_dev:
|
|
13
145
|
component_hash: 4779f31a3ba3f9b38aee1afe6ccb9ba8f6108dc3a6e77d39d7d714e9a215371b
|
|
14
146
|
dependencies:
|
|
@@ -19,6 +151,20 @@ dependencies:
|
|
|
19
151
|
registry_url: https://components.espressif.com/
|
|
20
152
|
type: service
|
|
21
153
|
version: 1.6.2
|
|
154
|
+
espressif/esp_h264:
|
|
155
|
+
component_hash: 3d60078419ceac61cd87579664ae6a5a9b9a42d6f2edf4e23d753af8d2a67da9
|
|
156
|
+
dependencies:
|
|
157
|
+
- name: idf
|
|
158
|
+
require: private
|
|
159
|
+
version: '>=4.4'
|
|
160
|
+
source:
|
|
161
|
+
registry_url: https://components.espressif.com/
|
|
162
|
+
type: service
|
|
163
|
+
targets:
|
|
164
|
+
- esp32s3
|
|
165
|
+
- esp32s31
|
|
166
|
+
- esp32p4
|
|
167
|
+
version: 1.4.1
|
|
22
168
|
espressif/esp_io_expander:
|
|
23
169
|
component_hash: 7b7f91270172e46ca4597e3874f48d8412e280e8c295559f5922ec38656e3e5f
|
|
24
170
|
dependencies:
|
|
@@ -89,6 +235,34 @@ dependencies:
|
|
|
89
235
|
registry_url: https://components.espressif.com/
|
|
90
236
|
type: service
|
|
91
237
|
version: 0.1.1
|
|
238
|
+
espressif/esp_libsrtp:
|
|
239
|
+
component_hash: 131560184c73ec09f77d8904a2db709307803f0f9f111898921b6966776eac15
|
|
240
|
+
dependencies: []
|
|
241
|
+
source:
|
|
242
|
+
registry_url: https://components.espressif.com
|
|
243
|
+
type: service
|
|
244
|
+
version: 1.0.0
|
|
245
|
+
espressif/esp_peer:
|
|
246
|
+
component_hash: 92bc1b80772acf8a0e2dc36193ec24278e0793140eca2a4060d8ce7b45c47845
|
|
247
|
+
dependencies:
|
|
248
|
+
- name: espressif/esp_libsrtp
|
|
249
|
+
registry_url: https://components.espressif.com
|
|
250
|
+
require: private
|
|
251
|
+
version: ^1.0.0
|
|
252
|
+
source:
|
|
253
|
+
registry_url: https://components.espressif.com/
|
|
254
|
+
type: service
|
|
255
|
+
version: 1.5.7
|
|
256
|
+
espressif/esp_sccb_intf:
|
|
257
|
+
component_hash: eb6a7d5c992f09583c163b2e3f5e95a0fdc87a2d9f8e026f3e59153935553889
|
|
258
|
+
dependencies:
|
|
259
|
+
- name: idf
|
|
260
|
+
require: private
|
|
261
|
+
version: '>=5.3'
|
|
262
|
+
source:
|
|
263
|
+
registry_url: https://components.espressif.com
|
|
264
|
+
type: service
|
|
265
|
+
version: 0.0.9
|
|
92
266
|
espressif/esp_tinyusb:
|
|
93
267
|
component_hash: 0fab24246e07bdf919c6489d17a590cffbffbbf6a9c44d6235641645c8b946b7
|
|
94
268
|
dependencies:
|
|
@@ -109,6 +283,104 @@ dependencies:
|
|
|
109
283
|
- esp32h4
|
|
110
284
|
- esp32s31
|
|
111
285
|
version: 2.3.0
|
|
286
|
+
espressif/esp_video:
|
|
287
|
+
component_hash: 5694b16c12b8bb26b56ad3f999ad10119f1314d64b2d1c518bc7dfed902df9e1
|
|
288
|
+
dependencies:
|
|
289
|
+
- name: espressif/cmake_utilities
|
|
290
|
+
registry_url: https://components.espressif.com
|
|
291
|
+
require: private
|
|
292
|
+
version: 0.*
|
|
293
|
+
- name: espressif/esp_cam_sensor
|
|
294
|
+
registry_url: https://components.espressif.com
|
|
295
|
+
require: private
|
|
296
|
+
version: 2.6.*
|
|
297
|
+
- matches:
|
|
298
|
+
- if: $CONFIG{ESP_VIDEO_USE_CUSTOMIZED_ESP_H264_VERSION} == False
|
|
299
|
+
name: espressif/esp_h264
|
|
300
|
+
registry_url: https://components.espressif.com
|
|
301
|
+
require: private
|
|
302
|
+
rules:
|
|
303
|
+
- if: target in [esp32p4]
|
|
304
|
+
version: 1.4.*
|
|
305
|
+
- name: espressif/esp_ipa
|
|
306
|
+
registry_url: https://components.espressif.com
|
|
307
|
+
require: private
|
|
308
|
+
rules:
|
|
309
|
+
- if: target in [esp32p4]
|
|
310
|
+
version: 2.4.*
|
|
311
|
+
- name: idf
|
|
312
|
+
require: private
|
|
313
|
+
version: '>=5.4'
|
|
314
|
+
- name: espressif/usb_host_uvc
|
|
315
|
+
registry_url: https://components.espressif.com
|
|
316
|
+
require: private
|
|
317
|
+
rules:
|
|
318
|
+
- if: target in [esp32p4, esp32s3, esp32s31]
|
|
319
|
+
version: 2.5.*
|
|
320
|
+
source:
|
|
321
|
+
registry_url: https://components.espressif.com/
|
|
322
|
+
type: service
|
|
323
|
+
targets:
|
|
324
|
+
- esp32p4
|
|
325
|
+
- esp32s3
|
|
326
|
+
- esp32c3
|
|
327
|
+
- esp32c5
|
|
328
|
+
- esp32c6
|
|
329
|
+
- esp32c61
|
|
330
|
+
- esp32s31
|
|
331
|
+
version: 2.5.0
|
|
332
|
+
espressif/esp_websocket_client:
|
|
333
|
+
component_hash: dc00233af846f3a744ada283a300e0d586040aadc3ee67361645ecdce4523672
|
|
334
|
+
dependencies:
|
|
335
|
+
- name: idf
|
|
336
|
+
require: private
|
|
337
|
+
version: '>=5.0'
|
|
338
|
+
source:
|
|
339
|
+
registry_url: https://components.espressif.com/
|
|
340
|
+
type: service
|
|
341
|
+
version: 1.8.0
|
|
342
|
+
espressif/i2c_bus:
|
|
343
|
+
component_hash: 483112c1619c54c38d0b734fb25f1678733267858a77b7af2f48cc7db6dbbd84
|
|
344
|
+
dependencies:
|
|
345
|
+
- name: espressif/cmake_utilities
|
|
346
|
+
registry_url: https://components.espressif.com
|
|
347
|
+
require: private
|
|
348
|
+
version: '*'
|
|
349
|
+
- name: idf
|
|
350
|
+
require: private
|
|
351
|
+
version: '>=4.0'
|
|
352
|
+
source:
|
|
353
|
+
registry_url: https://components.espressif.com
|
|
354
|
+
type: service
|
|
355
|
+
version: 1.5.2
|
|
356
|
+
espressif/spi_nand_flash:
|
|
357
|
+
component_hash: aa7bae693eee90b2e5e7cd63e67d41f5c30e61a501873b5c2d02838b1b9df6b8
|
|
358
|
+
dependencies:
|
|
359
|
+
- name: espressif/dhara
|
|
360
|
+
registry_url: https://components.espressif.com
|
|
361
|
+
require: private
|
|
362
|
+
version: 1.*
|
|
363
|
+
- name: idf
|
|
364
|
+
require: private
|
|
365
|
+
version: '>=5.0'
|
|
366
|
+
source:
|
|
367
|
+
registry_url: https://components.espressif.com/
|
|
368
|
+
type: service
|
|
369
|
+
version: 1.4.4
|
|
370
|
+
espressif/spi_nand_flash_fatfs:
|
|
371
|
+
component_hash: c72443b207b655172127f15b497c84ff98ef881557581378b37b4d845bf74472
|
|
372
|
+
dependencies:
|
|
373
|
+
- name: espressif/spi_nand_flash
|
|
374
|
+
registry_url: https://components.espressif.com
|
|
375
|
+
require: private
|
|
376
|
+
version: '*'
|
|
377
|
+
- name: idf
|
|
378
|
+
require: private
|
|
379
|
+
version: '>=5.0'
|
|
380
|
+
source:
|
|
381
|
+
registry_url: https://components.espressif.com/
|
|
382
|
+
type: service
|
|
383
|
+
version: 1.1.2
|
|
112
384
|
espressif/tinyusb:
|
|
113
385
|
component_hash: 16c8d774dab1f484d3e0c0f61105624d2424bbae864efd19818baf7b451b41e7
|
|
114
386
|
dependencies:
|
|
@@ -125,17 +397,149 @@ dependencies:
|
|
|
125
397
|
- esp32h4
|
|
126
398
|
- esp32s31
|
|
127
399
|
version: 0.21.0~2
|
|
400
|
+
espressif/usb:
|
|
401
|
+
component_hash: 99eee72ea224d9117d4c342442717a1f20bf8112e2ab5d7d7038b827874f4c92
|
|
402
|
+
dependencies:
|
|
403
|
+
- name: idf
|
|
404
|
+
require: private
|
|
405
|
+
version: '>=5.5.3'
|
|
406
|
+
source:
|
|
407
|
+
registry_url: https://components.espressif.com
|
|
408
|
+
type: service
|
|
409
|
+
targets:
|
|
410
|
+
- esp32s2
|
|
411
|
+
- esp32s3
|
|
412
|
+
- esp32s31
|
|
413
|
+
- esp32p4
|
|
414
|
+
- esp32h4
|
|
415
|
+
- linux
|
|
416
|
+
version: 1.6.0
|
|
417
|
+
espressif/usb_host_uvc:
|
|
418
|
+
component_hash: ecb2604b71cb5a65d64e5f441be54793b1838096043ad8cf1fa0d3012de18a9a
|
|
419
|
+
dependencies:
|
|
420
|
+
- name: idf
|
|
421
|
+
require: private
|
|
422
|
+
version: '>=5.0'
|
|
423
|
+
- name: espressif/usb
|
|
424
|
+
registry_url: https://components.espressif.com
|
|
425
|
+
require: public
|
|
426
|
+
rules:
|
|
427
|
+
- if: idf_version >=6.0
|
|
428
|
+
- if: target not in ["linux"]
|
|
429
|
+
version: ^1.0.0
|
|
430
|
+
source:
|
|
431
|
+
registry_url: https://components.espressif.com
|
|
432
|
+
type: service
|
|
433
|
+
targets:
|
|
434
|
+
- esp32s2
|
|
435
|
+
- esp32s3
|
|
436
|
+
- esp32p4
|
|
437
|
+
- esp32h4
|
|
438
|
+
- esp32s31
|
|
439
|
+
- linux
|
|
440
|
+
version: 2.5.2
|
|
441
|
+
espressif2022/bmi270:
|
|
442
|
+
component_hash: 6c6637680a233845d13961f23df39426a7fad9c02c6c289bf8facbb7f8624e22
|
|
443
|
+
dependencies:
|
|
444
|
+
- name: espressif/cmake_utilities
|
|
445
|
+
registry_url: https://components.espressif.com
|
|
446
|
+
require: private
|
|
447
|
+
version: 0.*
|
|
448
|
+
- name: espressif/i2c_bus
|
|
449
|
+
registry_url: https://components.espressif.com
|
|
450
|
+
require: private
|
|
451
|
+
version: 1.*
|
|
452
|
+
- name: idf
|
|
453
|
+
require: private
|
|
454
|
+
version: '>=4.4'
|
|
455
|
+
source:
|
|
456
|
+
registry_url: https://components.espressif.com/
|
|
457
|
+
type: service
|
|
458
|
+
version: 1.1.0~2
|
|
128
459
|
idf:
|
|
129
460
|
source:
|
|
130
461
|
type: idf
|
|
131
462
|
version: 6.2.0
|
|
463
|
+
mosaico_boot_splash:
|
|
464
|
+
component_hash: 75f0fe6ae0b23792a92a047d371fac351ae972cbb188632633b5b3c665424e1e
|
|
465
|
+
dependencies:
|
|
466
|
+
- name: idf
|
|
467
|
+
version: '>=6.2'
|
|
468
|
+
source:
|
|
469
|
+
git: https://github.com/esp-mosaico/esp-mosaico-bsp.git
|
|
470
|
+
path: components/mosaico_boot_splash
|
|
471
|
+
type: git
|
|
472
|
+
targets:
|
|
473
|
+
- esp32s31
|
|
474
|
+
version: a4bfb426afcf2911c01fdd9b6d6f024019f00f8f
|
|
475
|
+
mosaico_module_camera:
|
|
476
|
+
component_hash: ed3a838b50c512fa6d00aca444bae2bfa28574c094118435df93f3fc864d2945
|
|
477
|
+
dependencies:
|
|
478
|
+
- name: idf
|
|
479
|
+
version: '>=6.2'
|
|
480
|
+
- git: https://github.com/esp-mosaico/esp-mosaico-bsp.git
|
|
481
|
+
name: esp-mosaico-bsp
|
|
482
|
+
path: components/esp-mosaico-bsp
|
|
483
|
+
version: a4bfb426afcf2911c01fdd9b6d6f024019f00f8f
|
|
484
|
+
- git: https://github.com/esp-mosaico/esp-mosaico-bsp.git
|
|
485
|
+
name: mosaico_module_mgr
|
|
486
|
+
path: components/mosaico_module_mgr
|
|
487
|
+
public: true
|
|
488
|
+
version: a4bfb426afcf2911c01fdd9b6d6f024019f00f8f
|
|
489
|
+
- name: espressif/esp_video
|
|
490
|
+
public: true
|
|
491
|
+
version: ^2.4.1
|
|
492
|
+
source:
|
|
493
|
+
git: https://github.com/esp-mosaico/esp-mosaico-bsp.git
|
|
494
|
+
path: components/mosaico_module_camera
|
|
495
|
+
type: git
|
|
496
|
+
targets:
|
|
497
|
+
- esp32s31
|
|
498
|
+
version: a4bfb426afcf2911c01fdd9b6d6f024019f00f8f
|
|
499
|
+
mosaico_module_mgr:
|
|
500
|
+
component_hash: a8954bc6f445dfdfab66d63927718c5fcb1ea5c294db3a62f1ddc2103d8b03f9
|
|
501
|
+
dependencies:
|
|
502
|
+
- git: https://github.com/esp-mosaico/esp-mosaico-bsp.git
|
|
503
|
+
name: esp-mosaico-bsp
|
|
504
|
+
path: components/esp-mosaico-bsp
|
|
505
|
+
public: true
|
|
506
|
+
version: a4bfb426afcf2911c01fdd9b6d6f024019f00f8f
|
|
507
|
+
source:
|
|
508
|
+
git: https://github.com/esp-mosaico/esp-mosaico-bsp.git
|
|
509
|
+
path: components/mosaico_module_mgr
|
|
510
|
+
type: git
|
|
511
|
+
targets:
|
|
512
|
+
- esp32s31
|
|
513
|
+
version: a4bfb426afcf2911c01fdd9b6d6f024019f00f8f
|
|
514
|
+
tangyumei3535/bmm150_sensorapi:
|
|
515
|
+
component_hash: fe12d09c0ff06fabe9f4ae8fcc54b8b0ee59b936650bd26e8a3742e282fa4465
|
|
516
|
+
dependencies:
|
|
517
|
+
- name: espressif2022/bmi270
|
|
518
|
+
registry_url: https://components.espressif.com
|
|
519
|
+
require: private
|
|
520
|
+
version: '*'
|
|
521
|
+
- name: idf
|
|
522
|
+
require: private
|
|
523
|
+
version: '>=4.4'
|
|
524
|
+
source:
|
|
525
|
+
registry_url: https://components.espressif.com/
|
|
526
|
+
type: service
|
|
527
|
+
version: 1.0.0
|
|
132
528
|
direct_dependencies:
|
|
529
|
+
- 78/esp-opus
|
|
530
|
+
- espressif/cjson
|
|
133
531
|
- espressif/esp_codec_dev
|
|
532
|
+
- espressif/esp_h264
|
|
134
533
|
- espressif/esp_lcd_co5300
|
|
135
534
|
- espressif/esp_lcd_panel_io_additions
|
|
136
535
|
- espressif/esp_lcd_touch_cst9220
|
|
536
|
+
- espressif/esp_peer
|
|
137
537
|
- espressif/esp_tinyusb
|
|
538
|
+
- espressif/esp_websocket_client
|
|
539
|
+
- espressif/spi_nand_flash
|
|
540
|
+
- espressif/spi_nand_flash_fatfs
|
|
138
541
|
- idf
|
|
139
|
-
|
|
542
|
+
- mosaico_module_camera
|
|
543
|
+
manifest_hash: a6fdc7e010a8befa9c59a7ccd4b58665dba6209368539d6ae58315d28881a0da
|
|
140
544
|
target: esp32s31
|
|
141
545
|
version: 3.0.0
|
|
@@ -27,6 +27,11 @@ set(GEA_BOARD_EXTRA_REQUIRES
|
|
|
27
27
|
esp_codec_dev
|
|
28
28
|
esp_driver_ledc
|
|
29
29
|
espressif__esp_tinyusb
|
|
30
|
+
# nand_mount.cpp: FAT on the SPI NAND.
|
|
31
|
+
esp_driver_spi
|
|
32
|
+
fatfs
|
|
33
|
+
espressif__spi_nand_flash
|
|
34
|
+
espressif__spi_nand_flash_fatfs
|
|
30
35
|
)
|
|
31
36
|
|
|
32
37
|
set(GEA_BOARD_EXTRA_COMPILE_DEFINITIONS
|
|
@@ -44,6 +49,14 @@ set(GEA_BOARD_EXTRA_COMPILE_DEFINITIONS
|
|
|
44
49
|
GEA_BOARD_TOUCH_CST9220=1
|
|
45
50
|
)
|
|
46
51
|
|
|
52
|
+
# Canvas rotation changes its native storage layout, so it must be enabled
|
|
53
|
+
# consistently by the app for both the framework and board compilation.
|
|
54
|
+
if(";${GEA_EMBEDDED_APP_DEFINES};$ENV{GEA_EMBEDDED_APP_DEFINES};" MATCHES ";GEA_EMBEDDED_DISPLAY_ROTATE_LANDSCAPE=1;")
|
|
55
|
+
list(APPEND GEA_BOARD_EXTRA_COMPILE_DEFINITIONS
|
|
56
|
+
GEA_EMBEDDED_DISPLAY_SOFTWARE_LANDSCAPE_PRIMARY=1
|
|
57
|
+
GEA_EMBEDDED_DISPLAY_RUNTIME_SOFTWARE_ORIENTATION=1)
|
|
58
|
+
endif()
|
|
59
|
+
|
|
47
60
|
set(GEA_BOARD_PLATFORM_SOURCES
|
|
48
61
|
"${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-touch-amoled-1.8/main/app_main.cpp"
|
|
49
62
|
"${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-touch-amoled-1.8/main/i2c.cpp"
|
|
@@ -51,6 +64,8 @@ set(GEA_BOARD_PLATFORM_SOURCES
|
|
|
51
64
|
"${CMAKE_CURRENT_LIST_DIR}/touch.cpp"
|
|
52
65
|
"${CMAKE_CURRENT_LIST_DIR}/board_power.cpp"
|
|
53
66
|
"${CMAKE_CURRENT_LIST_DIR}/peer_uart.cpp"
|
|
67
|
+
"${CMAKE_CURRENT_LIST_DIR}/nand_mount.cpp"
|
|
68
|
+
"${CMAKE_CURRENT_LIST_DIR}/camera.cpp"
|
|
54
69
|
"${GEA_CHIPS}/displays/co5300/co5300.cpp"
|
|
55
70
|
"${CMAKE_CURRENT_LIST_DIR}/../../esp32/display.cpp"
|
|
56
71
|
"${CMAKE_CURRENT_LIST_DIR}/../../esp32/chip_bindings/displays/co5300.cpp"
|
|
@@ -62,6 +77,15 @@ set(GEA_BOARD_PLATFORM_SOURCES
|
|
|
62
77
|
"${CMAKE_CURRENT_LIST_DIR}/../../esp32/power_absent.cpp"
|
|
63
78
|
)
|
|
64
79
|
|
|
80
|
+
# The CLI exposes the analyzed camera binding to both CMake passes and the
|
|
81
|
+
# component manager. Other Mosaico apps keep the camera backend absent.
|
|
82
|
+
if(GEA_EMBEDDED_CAPABILITY_CAMERA OR "$ENV{GEA_EMBEDDED_CAPABILITY_CAMERA}" STREQUAL "1")
|
|
83
|
+
list(APPEND GEA_BOARD_EXTRA_REQUIRES mosaico_module_camera esp_driver_jpeg)
|
|
84
|
+
list(APPEND GEA_BOARD_EXTRA_COMPILE_DEFINITIONS GEA_MOSAICO_CAMERA_ENABLED=1)
|
|
85
|
+
else()
|
|
86
|
+
list(APPEND GEA_BOARD_EXTRA_COMPILE_DEFINITIONS GEA_MOSAICO_CAMERA_ENABLED=0)
|
|
87
|
+
endif()
|
|
88
|
+
|
|
65
89
|
include("${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-touch-amoled-1.8/main/CMakeLists.txt")
|
|
66
90
|
|
|
67
91
|
# IDF 6.2 brings GCC 16 + picolibc: picolibc declares fflush() nonnull, so the
|
|
@@ -69,11 +93,17 @@ include("${CMAKE_CURRENT_LIST_DIR}/../../esp32-s3-touch-amoled-1.8/main/CMakeLis
|
|
|
69
93
|
# std::move()s as redundant. Warnings, not errors, until the compiler runtime
|
|
70
94
|
# and emitter are fixed for this toolchain.
|
|
71
95
|
if(NOT CMAKE_BUILD_EARLY_EXPANSION)
|
|
72
|
-
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,-u,gea_mosaico_peer_uart_open")
|
|
73
96
|
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-error=nonnull -Wno-error=redundant-move)
|
|
97
|
+
# Make the optional native side-link capability discoverable through its
|
|
98
|
+
# weak C API without allocating or driving pins until an app opts in.
|
|
99
|
+
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,-u,gea_mosaico_peer_uart_open")
|
|
74
100
|
# board_power.cpp keeps a crash's registers and log across the reset (no UART0 here)
|
|
75
101
|
# and makes the USB console wait for the host instead of dropping output.
|
|
76
102
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=esp_panic_handler"
|
|
77
103
|
"-Wl,--wrap=tinyusb_cdcacm_write_queue_char"
|
|
78
104
|
"-Wl,--wrap=uart_hal_write_txfifo")
|
|
105
|
+
# board_power.cpp rewrites an older flash partition table to this one.
|
|
106
|
+
idf_build_get_property(_mosaico_build_dir BUILD_DIR)
|
|
107
|
+
target_add_binary_data(${COMPONENT_LIB} "${_mosaico_build_dir}/partition_table/partition-table.bin" BINARY
|
|
108
|
+
DEPENDS partition_table_bin)
|
|
79
109
|
endif()
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
// the crash on the console.
|
|
31
31
|
|
|
32
32
|
#include "board.h"
|
|
33
|
+
#include "platform/file_cache.h"
|
|
33
34
|
|
|
34
35
|
#include <algorithm>
|
|
35
36
|
#include <cstddef>
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
#include "esp_attr.h"
|
|
42
43
|
#include "esp_check.h"
|
|
43
44
|
#include "esp_err.h"
|
|
45
|
+
#include "esp_flash.h"
|
|
44
46
|
#include "esp_heap_caps.h"
|
|
45
47
|
#include "esp_log.h"
|
|
46
48
|
#include "esp_mac.h"
|
|
@@ -335,6 +337,84 @@ namespace
|
|
|
335
337
|
}
|
|
336
338
|
#endif
|
|
337
339
|
|
|
340
|
+
// The partition table this firmware was built with (main/CMakeLists.txt
|
|
341
|
+
// embeds the build's partition-table.bin). A board flashed with an older
|
|
342
|
+
// layout keeps it until something rewrites 0x8000, and on this board the only
|
|
343
|
+
// other writer is the ROM downloader, which needs BOOT held through a power
|
|
344
|
+
// cycle -- so the app does it, once.
|
|
345
|
+
extern "C" const std::uint8_t partitionTableStart[] asm("_binary_partition_table_bin_start");
|
|
346
|
+
extern "C" const std::uint8_t partitionTableEnd[] asm("_binary_partition_table_bin_end");
|
|
347
|
+
|
|
348
|
+
std::uint32_t readLe32(const std::uint8_t *p)
|
|
349
|
+
{
|
|
350
|
+
return static_cast<std::uint32_t>(p[0]) | (static_cast<std::uint32_t>(p[1]) << 8) |
|
|
351
|
+
(static_cast<std::uint32_t>(p[2]) << 16) | (static_cast<std::uint32_t>(p[3]) << 24);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
// The built table's entry of `type`/`subtype` (32-byte entries, magic 0x50AA).
|
|
355
|
+
bool builtPartition(std::uint8_t type, std::uint8_t subtype, std::uint32_t &offset, std::uint32_t &size)
|
|
356
|
+
{
|
|
357
|
+
for (const std::uint8_t *entry = partitionTableStart; entry + 32 <= partitionTableEnd; entry += 32)
|
|
358
|
+
{
|
|
359
|
+
if (entry[0] != 0xAA || entry[1] != 0x50)
|
|
360
|
+
break;
|
|
361
|
+
if (entry[2] == type && entry[3] == subtype)
|
|
362
|
+
{
|
|
363
|
+
offset = readLe32(entry + 4);
|
|
364
|
+
size = readLe32(entry + 8);
|
|
365
|
+
return true;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
return false;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
// Rewrites the flash partition table to the built one when they differ.
|
|
372
|
+
// Only from the first app slot, and only when that slot starts at the same
|
|
373
|
+
// address in both layouts: the running image then never moves. Elsewhere it
|
|
374
|
+
// says so and waits for the next install, which lands in that slot. The
|
|
375
|
+
// otadata is erased with it, so the bootloader boots the first app slot --
|
|
376
|
+
// this one -- whatever the old layout's sequence numbers said.
|
|
377
|
+
void migratePartitionTable()
|
|
378
|
+
{
|
|
379
|
+
constexpr std::uint32_t kTableOffset = CONFIG_PARTITION_TABLE_OFFSET;
|
|
380
|
+
constexpr std::uint32_t kSector = 0x1000;
|
|
381
|
+
const std::size_t bytes = static_cast<std::size_t>(partitionTableEnd - partitionTableStart);
|
|
382
|
+
if (bytes == 0 || bytes > kSector)
|
|
383
|
+
return;
|
|
384
|
+
static std::uint8_t flashed[kSector];
|
|
385
|
+
if (esp_flash_read(nullptr, flashed, kTableOffset, bytes) != ESP_OK)
|
|
386
|
+
return;
|
|
387
|
+
bool same = true;
|
|
388
|
+
for (std::size_t i = 0; i < bytes && same; ++i)
|
|
389
|
+
same = flashed[i] == partitionTableStart[i];
|
|
390
|
+
if (same)
|
|
391
|
+
return;
|
|
392
|
+
std::uint32_t firstApp = 0, firstAppSize = 0, otadata = 0, otadataSize = 0;
|
|
393
|
+
if (!builtPartition(0x00, 0x10, firstApp, firstAppSize) || !builtPartition(0x01, 0x00, otadata, otadataSize))
|
|
394
|
+
return;
|
|
395
|
+
const esp_partition_t *running = esp_ota_get_running_partition();
|
|
396
|
+
if (running == nullptr || running->address != firstApp)
|
|
397
|
+
{
|
|
398
|
+
ESP_LOGW(kTag, "partition table is an older layout; it is rewritten when the app runs from 0x%lx (install once more)",
|
|
399
|
+
static_cast<unsigned long>(firstApp));
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
ESP_LOGW(kTag, "rewriting the partition table to this firmware's layout");
|
|
403
|
+
esp_err_t err = esp_flash_erase_region(nullptr, kTableOffset, kSector);
|
|
404
|
+
if (err == ESP_OK)
|
|
405
|
+
err = esp_flash_write(nullptr, partitionTableStart, kTableOffset, bytes);
|
|
406
|
+
if (err == ESP_OK)
|
|
407
|
+
err = esp_flash_erase_region(nullptr, otadata, otadataSize);
|
|
408
|
+
if (err != ESP_OK)
|
|
409
|
+
{
|
|
410
|
+
ESP_LOGE(kTag, "partition table rewrite failed: %s", esp_err_to_name(err));
|
|
411
|
+
return;
|
|
412
|
+
}
|
|
413
|
+
ESP_LOGW(kTag, "partition table rewritten; restarting into it");
|
|
414
|
+
vTaskDelay(pdMS_TO_TICKS(200));
|
|
415
|
+
esp_restart();
|
|
416
|
+
}
|
|
417
|
+
|
|
338
418
|
void boardStartTask(void *)
|
|
339
419
|
{
|
|
340
420
|
gea::platform::board::powerOnRails();
|
|
@@ -343,13 +423,23 @@ namespace
|
|
|
343
423
|
if (previousBootCrashed())
|
|
344
424
|
xTaskCreatePinnedToCore(panicReportTask, "mosaico_panic", 3072, nullptr, 5, nullptr, 0);
|
|
345
425
|
#endif
|
|
426
|
+
// Mounted here rather than on first use: GEADEV PUSH writes /nand without
|
|
427
|
+
// asking the provider (a blank chip is formatted on this first mount).
|
|
428
|
+
gea::platform::storage::ensureMounted();
|
|
346
429
|
#if CONFIG_BOOTLOADER_APP_ROLLBACK_CONFIRM_BY_APP
|
|
347
430
|
confirmRunningApp();
|
|
348
431
|
#endif
|
|
432
|
+
// After the confirm: the slot this rewrite keeps booting is a proven one.
|
|
433
|
+
migratePartitionTable();
|
|
349
434
|
vTaskDelete(nullptr);
|
|
350
435
|
}
|
|
351
436
|
} // namespace
|
|
352
437
|
|
|
438
|
+
namespace gea::platform::storage
|
|
439
|
+
{
|
|
440
|
+
void installNandFileStorage();
|
|
441
|
+
}
|
|
442
|
+
|
|
353
443
|
namespace gea::platform::board
|
|
354
444
|
{
|
|
355
445
|
void powerOnRails()
|
|
@@ -376,6 +466,7 @@ namespace gea::platform::board
|
|
|
376
466
|
ESP_SYSTEM_INIT_FN(gea_mosaico_board_start, SECONDARY, BIT(0), 999)
|
|
377
467
|
{
|
|
378
468
|
powerLock = xSemaphoreCreateMutexStatic(&powerLockStorage);
|
|
469
|
+
gea::platform::storage::installNandFileStorage();
|
|
379
470
|
if (xTaskCreatePinnedToCore(boardStartTask, "mosaico_start", 4096, nullptr, 10, nullptr, 0) != pdPASS)
|
|
380
471
|
ESP_EARLY_LOGW(kTag, "board start task not created; display init will open VCC_3V3");
|
|
381
472
|
return ESP_OK;
|
|
@@ -405,12 +496,36 @@ extern "C" size_t __real_tinyusb_cdcacm_write_queue_char(tinyusb_cdcacm_itf_t it
|
|
|
405
496
|
extern "C" size_t __wrap_tinyusb_cdcacm_write_queue_char(tinyusb_cdcacm_itf_t itf, char ch)
|
|
406
497
|
{
|
|
407
498
|
static bool txStalled = false;
|
|
499
|
+
static TickType_t stalledSince = 0, lastClear = 0, lastBounce = 0;
|
|
408
500
|
size_t queued = __real_tinyusb_cdcacm_write_queue_char(itf, ch);
|
|
409
501
|
if (queued || txStalled || xPortInIsrContext() || xTaskGetSchedulerState() != taskSCHEDULER_RUNNING ||
|
|
410
502
|
!tud_cdc_n_connected(itf))
|
|
411
503
|
{
|
|
412
504
|
if (queued)
|
|
413
505
|
txStalled = false;
|
|
506
|
+
// A FIFO that stays full for seconds while a host holds the port means the
|
|
507
|
+
// IN endpoint stopped completing (seen after long play sessions: the port
|
|
508
|
+
// enumerates, PONG and logs never arrive, only a power cycle recovered).
|
|
509
|
+
// Drop what is queued, and if that is not enough, re-attach to the bus so
|
|
510
|
+
// the host re-enumerates and the console comes back on its own.
|
|
511
|
+
else if (txStalled && !xPortInIsrContext() && xTaskGetSchedulerState() == taskSCHEDULER_RUNNING &&
|
|
512
|
+
xTaskGetTickCount() - stalledSince > pdMS_TO_TICKS(2000) &&
|
|
513
|
+
xTaskGetTickCount() - lastClear > pdMS_TO_TICKS(2000))
|
|
514
|
+
{
|
|
515
|
+
const TickType_t now = xTaskGetTickCount();
|
|
516
|
+
lastClear = now;
|
|
517
|
+
tud_cdc_n_write_clear(itf);
|
|
518
|
+
if (now - lastBounce > pdMS_TO_TICKS(30000) && now - stalledSince > pdMS_TO_TICKS(6000))
|
|
519
|
+
{
|
|
520
|
+
lastBounce = now;
|
|
521
|
+
tud_disconnect();
|
|
522
|
+
vTaskDelay(pdMS_TO_TICKS(50));
|
|
523
|
+
tud_connect();
|
|
524
|
+
}
|
|
525
|
+
queued = __real_tinyusb_cdcacm_write_queue_char(itf, ch);
|
|
526
|
+
if (queued)
|
|
527
|
+
txStalled = false;
|
|
528
|
+
}
|
|
414
529
|
return queued;
|
|
415
530
|
}
|
|
416
531
|
const TickType_t start = xTaskGetTickCount();
|
|
@@ -422,6 +537,8 @@ extern "C" size_t __wrap_tinyusb_cdcacm_write_queue_char(tinyusb_cdcacm_itf_t it
|
|
|
422
537
|
if (queued)
|
|
423
538
|
return queued;
|
|
424
539
|
}
|
|
540
|
+
if (!txStalled)
|
|
541
|
+
stalledSince = xTaskGetTickCount();
|
|
425
542
|
txStalled = true;
|
|
426
543
|
return 0;
|
|
427
544
|
}
|