-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathKconfig
More file actions
4805 lines (3864 loc) · 122 KB
/
Copy pathKconfig
File metadata and controls
4805 lines (3864 loc) · 122 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
if ARCH_CHIP_ESP32C3 || ARCH_CHIP_ESP32C6 || ARCH_CHIP_ESP32H2 || ARCH_CHIP_ESP32P4
config ESPRESSIF_CHIP_SERIES
string
default "esp32c3" if ARCH_CHIP_ESP32C3
default "esp32c6" if ARCH_CHIP_ESP32C6
default "esp32h2" if ARCH_CHIP_ESP32H2
default "esp32p4" if ARCH_CHIP_ESP32P4
default "unknown"
choice ESPRESSIF_FLASH
prompt "Flash Size"
default ESPRESSIF_FLASH_4M if ARCH_CHIP_ESP32C3 || ARCH_CHIP_ESP32C6 || ARCH_CHIP_ESP32H2 || ARCH_CHIP_ESP32P4
config ESPRESSIF_FLASH_2M
bool "2 MB"
config ESPRESSIF_FLASH_4M
bool "4 MB"
config ESPRESSIF_FLASH_8M
bool "8 MB"
config ESPRESSIF_FLASH_16M
bool "16 MB"
config ESPRESSIF_FLASH_32M
bool "32 MB"
endchoice # ESPRESSIF_FLASH
config ESPRESSIF_DONT_USE_ROM_LIBC
bool "Don't use ROM libc functions"
default n
---help---
If enabled, NuttX libc will be used instead of ROM newlib
functions (strdup, strndup, atoi, etc.).
This prevents cross-heap allocation issues when ROM newlib
allocators are not mapped to the same heap as NuttX libc.
menuconfig ESPRESSIF_SPIRAM
bool "External SPI RAM (SPIRAM)"
depends on ARCH_CHIP_ESP32P4
default n
---help---
Enable external PSRAM support through the ESP HAL component.
if ESPRESSIF_SPIRAM
config ESPRESSIF_SPIRAM_BOOT_INIT
bool "Initialize SPIRAM during early boot"
default y
---help---
Initialize and map external PSRAM before heap region registration.
config ESPRESSIF_SPIRAM_IGNORE_NOTFOUND
bool "Ignore SPIRAM not found"
depends on !ESPRESSIF_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY
default n
---help---
Keep booting even if PSRAM detection fails.
config ESPRESSIF_SPIRAM_MEMTEST
bool "Run SPIRAM memory test at boot"
default y
---help---
Run a basic memory test before adding PSRAM to the allocator.
config ESPRESSIF_SPIRAM_USE_8LINE_MODE
bool "Use x8 line mode"
default n
---help---
Enable x8 line mode instead of x16 line mode.
config ESPRESSIF_SPIRAM_ECC
bool "Enable SPIRAM ECC"
default n
---help---
Enable ECC for external PSRAM accesses.
choice ESPRESSIF_SPIRAM_SPEED
prompt "SPIRAM speed"
default ESPRESSIF_SPIRAM_SPEED_200M if !ESP32P4_REV_MIN_0
default ESPRESSIF_SPIRAM_SPEED_80M
config ESPRESSIF_SPIRAM_SPEED_20M
bool "20 MHz"
config ESPRESSIF_SPIRAM_SPEED_80M
bool "80 MHz"
config ESPRESSIF_SPIRAM_SPEED_200M
bool "200 MHz"
depends on !ESP32P4_REV_MIN_0
config ESPRESSIF_SPIRAM_SPEED_250M
bool "250 MHz"
depends on !ESP32P4_REV_MIN_0
endchoice # ESPRESSIF_SPIRAM_SPEED
config ESPRESSIF_SPIRAM_SPEED
int
default 20 if ESPRESSIF_SPIRAM_SPEED_20M
default 80 if ESPRESSIF_SPIRAM_SPEED_80M
default 200 if ESPRESSIF_SPIRAM_SPEED_200M
default 250 if ESPRESSIF_SPIRAM_SPEED_250M
config ESPRESSIF_SPIRAM_USER_HEAP
bool "Add SPIRAM to user heap"
default y
select ESPRESSIF_DONT_USE_ROM_LIBC
---help---
Add SPIRAM as an additional NuttX heap region.
config ESPRESSIF_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY
bool "Allow .bss segment placed in external memory"
default n
---help---
If enabled, variables with EXT_RAM_BSS_ATTR attribute will be
placed in SPIRAM instead of internal DRAM.
BSS sections from esp-hal-3rdparty components can also be placed
in SPIRAM through linker fragment mappings when enabled.
Note that variables placed in SPIRAM this way are still
zero-initialized at startup.
endif # ESPRESSIF_SPIRAM
config ESPRESSIF_IDF_ENV_FPGA
bool "IDF FPGA Environment"
default n
---help---
- This option is for internal use only.
- Enabling this option will help enable all FPGA support so as to
run NuttX on an FPGA. This can help reproduce some issues that
only happens on FPGA condition, or when you have to burn some
efuses multiple times.
config ESPRESSIF_FLASH_DETECT
bool "Auto-detect FLASH size"
default n
---help---
Auto detect flash size when flashing.
config ESPRESSIF_NUM_CPUS
int
default 1 if ARCH_CHIP_ESP32C3 || ARCH_CHIP_ESP32C6 || ARCH_CHIP_ESP32H2
default 2 if ARCH_CHIP_ESP32P4
choice ESPRESSIF_CPU_FREQ
prompt "CPU frequency"
default ESPRESSIF_CPU_FREQ_40 if ARCH_CHIP_ESP32P4 && ESPRESSIF_IDF_ENV_FPGA
default ESPRESSIF_CPU_FREQ_96 if ARCH_CHIP_ESP32H2
default ESPRESSIF_CPU_FREQ_160 if ARCH_CHIP_ESP32C3 || ARCH_CHIP_ESP32C6
default ESPRESSIF_CPU_FREQ_360 if ARCH_CHIP_ESP32P4 && ESP32P4_SELECTS_REV_LESS_V3
default ESPRESSIF_CPU_FREQ_400 if ARCH_CHIP_ESP32P4 && !ESP32P4_SELECTS_REV_LESS_V3
---help---
CPU frequency to be set on application startup.
config ESPRESSIF_CPU_FREQ_40
bool "40 MHz"
depends on ARCH_CHIP_ESP32C3 || ARCH_CHIP_ESP32C6 || ARCH_CHIP_ESP32P4
---help---
Set the CPU frequency to 40 MHz.
config ESPRESSIF_CPU_FREQ_48
bool "48 MHz"
depends on ARCH_CHIP_ESP32H2
---help---
Set the CPU frequency to 48 MHz.
config ESPRESSIF_CPU_FREQ_64
bool "64 MHz"
depends on ARCH_CHIP_ESP32H2
---help---
Set the CPU frequency to 64 MHz.
config ESPRESSIF_CPU_FREQ_80
bool "80 MHz"
depends on ARCH_CHIP_ESP32C3 || ARCH_CHIP_ESP32C6
---help---
Set the CPU frequency to 80 MHz.
config ESPRESSIF_CPU_FREQ_96
bool "96 MHz"
depends on ARCH_CHIP_ESP32H2
---help---
Set the CPU frequency to 96 MHz.
config ESPRESSIF_CPU_FREQ_160
bool "160 MHz"
depends on ARCH_CHIP_ESP32C3 || ARCH_CHIP_ESP32C6
---help---
Set the CPU frequency to 160 MHz.
config ESPRESSIF_CPU_FREQ_360
bool "360 MHz"
depends on ARCH_CHIP_ESP32P4 && ESP32P4_SELECTS_REV_LESS_V3
---help---
Set the CPU frequency to 360 MHz.
config ESPRESSIF_CPU_FREQ_400
bool "400 MHz"
depends on ARCH_CHIP_ESP32P4 && !ESP32P4_SELECTS_REV_LESS_V3
---help---
Set the CPU frequency to 400 MHz.
endchoice # ESPRESSIF_CPU_FREQ
config ESPRESSIF_CPU_FREQ_MHZ
int
default 40 if ESPRESSIF_CPU_FREQ_40
default 48 if ESPRESSIF_CPU_FREQ_48
default 64 if ESPRESSIF_CPU_FREQ_64
default 80 if ESPRESSIF_CPU_FREQ_80
default 96 if ESPRESSIF_CPU_FREQ_96
default 160 if ESPRESSIF_CPU_FREQ_160
default 360 if ESPRESSIF_CPU_FREQ_360
default 400 if ESPRESSIF_CPU_FREQ_400
config ESPRESSIF_DFS
bool "Enable DFS (Dynamic Frequency Scaling)"
select PM
default n
config ESPRESSIF_REGION_PROTECTION
bool "Enable region protection"
default y
select ARCH_USE_MPU
---help---
Configure the MPU to disable access to invalid memory regions.
config ESPRESSIF_RUN_IRAM
bool "Run from IRAM"
default n
---help---
This loads all of NuttX inside IRAM. Used to test somewhat small
images that can fit entirely in IRAM.
config ESPRESSIF_ESPTOOLPY_NO_STUB
bool "Disable download stub"
default n
---help---
The flasher tool sends a precompiled download stub first by default.
That stub allows things like compressed downloads and more.
Usually you should not need to disable that feature.
It is only required to be disabled in certain scenarios when either
Secure Boot V2 or Flash Encryption is enabled.
config ESPRESSIF_HAL_ASSERTIONS
bool "Enable HAL assertions"
depends on DEBUG_ASSERTIONS
default y
---help---
Enable the assertions implemented in the HAL. Otherwise, the assertions
are replaced by empty macros.
config ESPRESSIF_SOC_RTC_MEM_SUPPORTED
bool
default n
menu "Espressif DFS Options"
depends on ESPRESSIF_DFS
choice ESPRESSIF_MIN_CPU_FREQ
prompt "Minimum CPU frequency"
default ESPRESSIF_MIN_CPU_FREQ_40 if ARCH_CHIP_ESP32P4 && ESPRESSIF_IDF_ENV_FPGA
default ESPRESSIF_MIN_CPU_FREQ_96 if ARCH_CHIP_ESP32H2
default ESPRESSIF_MIN_CPU_FREQ_160 if ARCH_CHIP_ESP32C3 || ARCH_CHIP_ESP32C6
default ESPRESSIF_MIN_CPU_FREQ_360 if ARCH_CHIP_ESP32P4 && ESP32P4_SELECTS_REV_LESS_V3
default ESPRESSIF_MIN_CPU_FREQ_400 if ARCH_CHIP_ESP32P4 && !ESP32P4_SELECTS_REV_LESS_V3
---help---
Minimum CPU frequency to be scale.
config ESPRESSIF_MIN_CPU_FREQ_40
bool "40 MHz"
depends on ARCH_CHIP_ESP32C3 || ARCH_CHIP_ESP32C6 || ARCH_CHIP_ESP32P4
---help---
Set the minimum CPU frequency to 40 MHz.
config ESPRESSIF_MIN_CPU_FREQ_48
bool "48 MHz"
depends on ARCH_CHIP_ESP32H2
---help---
Set the minimum CPU frequency to 48 MHz.
config ESPRESSIF_MIN_CPU_FREQ_64
bool "64 MHz"
depends on ARCH_CHIP_ESP32H2
---help---
Set the minimum CPU frequency to 64 MHz.
config ESPRESSIF_MIN_CPU_FREQ_80
bool "80 MHz"
depends on ARCH_CHIP_ESP32C3 || ARCH_CHIP_ESP32C6
---help---
Set the minimum CPU frequency to 80 MHz.
config ESPRESSIF_MIN_CPU_FREQ_96
bool "96 MHz"
depends on ARCH_CHIP_ESP32H2
---help---
Set the minimum CPU frequency to 96 MHz.
config ESPRESSIF_MIN_CPU_FREQ_160
bool "160 MHz"
depends on ARCH_CHIP_ESP32C3 || ARCH_CHIP_ESP32C6
---help---
Set the minimum CPU frequency to 160 MHz.
config ESPRESSIF_MIN_CPU_FREQ_360
bool "360 MHz"
depends on ARCH_CHIP_ESP32P4 && ESP32P4_SELECTS_REV_LESS_V3
---help---
Set the minimum CPU frequency to 360 MHz.
config ESPRESSIF_MIN_CPU_FREQ_400
bool "400 MHz"
depends on ARCH_CHIP_ESP32P4 && !ESP32P4_SELECTS_REV_LESS_V3
---help---
Set the minimum CPU frequency to 400 MHz.
endchoice # ESPRESSIF_MIN_CPU_FREQ
config ESPRESSIF_MAX_CPU_FREQ_MHZ
int
default 40 if ESPRESSIF_MAX_CPU_FREQ_40
default 48 if ESPRESSIF_MAX_CPU_FREQ_48
default 64 if ESPRESSIF_MAX_CPU_FREQ_64
default 80 if ESPRESSIF_MAX_CPU_FREQ_80
default 96 if ESPRESSIF_MAX_CPU_FREQ_96
default 160 if ESPRESSIF_MAX_CPU_FREQ_160
default 360 if ESPRESSIF_MAX_CPU_FREQ_360
default 400 if ESPRESSIF_MAX_CPU_FREQ_400
config ESPRESSIF_MIN_CPU_FREQ_MHZ
int
default 40 if ESPRESSIF_MIN_CPU_FREQ_40
default 48 if ESPRESSIF_MIN_CPU_FREQ_48
default 64 if ESPRESSIF_MIN_CPU_FREQ_64
default 80 if ESPRESSIF_MIN_CPU_FREQ_80
default 96 if ESPRESSIF_MIN_CPU_FREQ_96
default 160 if ESPRESSIF_MIN_CPU_FREQ_160
default 360 if ESPRESSIF_MIN_CPU_FREQ_360
default 400 if ESPRESSIF_MIN_CPU_FREQ_400
endmenu #
menu "Espressif Log Level"
visible if DEBUG_FEATURES
config ESPRESSIF_LOG_LEVEL_NONE
bool "NONE"
depends on !DEBUG_FEATURES && !DEBUG_ERROR && !DEBUG_WARN && !DEBUG_INFO
default y
---help---
No log output from Espressif log messages.
config ESPRESSIF_LOG_LEVEL_ERROR
bool "ERROR"
depends on DEBUG_ERROR
default y
---help---
Display critical errors from Espressif log messages.
config ESPRESSIF_LOG_LEVEL_WARN
bool "WARN"
depends on DEBUG_WARN
default y
---help---
Display warning messages from Espressif log messages.
config ESPRESSIF_LOG_LEVEL_INFO
bool "INFO"
depends on DEBUG_INFO
default y
---help---
Display information messages from Espressif log messages.
config ESPRESSIF_LOG_LEVEL_DEBUG
bool "DEBUG"
depends on DEBUG_INFO
default n
---help---
Display extra information from Espressif log messages.
config ESPRESSIF_LOG_LEVEL_VERBOSE
bool "VERBOSE"
depends on DEBUG_INFO
default n
---help---
Display bigger chunks of debugging information, or frequent messages
which can potentially flood the output from Espressif log messages.
config ESPRESSIF_LOG_LEVEL
int
default 5 if ESPRESSIF_LOG_LEVEL_VERBOSE
default 4 if ESPRESSIF_LOG_LEVEL_DEBUG
default 3 if ESPRESSIF_LOG_LEVEL_INFO
default 2 if ESPRESSIF_LOG_LEVEL_WARN
default 1 if ESPRESSIF_LOG_LEVEL_ERROR
default 0 if ESPRESSIF_LOG_LEVEL_NONE
endmenu # Espressif Log Level
menu "Bootloader and Image Configuration"
config ESPRESSIF_SIMPLE_BOOT
bool
depends on !ESPRESSIF_BOOTLOADER_MCUBOOT
default y
config ESPRESSIF_BOOTLOADER_MCUBOOT
bool "Enable MCUboot-bootable format"
select ESPRESSIF_HAVE_OTA_PARTITION
---help---
Enables the Espressif port of MCUboot to be used as 2nd stage bootloader.
config ESPRESSIF_MCUBOOT_VERSION
string "MCUboot version"
depends on ESPRESSIF_BOOTLOADER_MCUBOOT
default "8a07053d42e592c85cb35b79c4de1b7749943387"
choice ESPRESSIF_ESPTOOL_TARGET_SLOT
prompt "Target slot for image flashing"
default ESPRESSIF_ESPTOOL_TARGET_PRIMARY
depends on ESPRESSIF_HAVE_OTA_PARTITION
---help---
Slot to which ESPTOOL will flash the generated binary image.
config ESPRESSIF_ESPTOOL_TARGET_PRIMARY
bool "Application image primary slot"
---help---
This assumes that the generated image is already pre-validated.
This is the recommended option for the initial stages of the
application firmware image development.
config ESPRESSIF_ESPTOOL_TARGET_SECONDARY
bool "Application image secondary slot"
---help---
The application needs to confirm the generated image as valid,
otherwise the bootloader may consider it invalid and perform the
rollback of the update after a reset.
This is the choice most suitable for the development and verification
of a secure firmware update workflow.
endchoice
config ESPRESSIF_MCUBOOT_SIGN_IMAGE_VERSION
string "Sign image version"
depends on ESPRESSIF_BOOTLOADER_MCUBOOT
default "1.0.0"
config ESPRESSIF_APP_MCUBOOT_HEADER_SIZE
int "Application image header size (in bytes)"
default 32
depends on ESPRESSIF_BOOTLOADER_MCUBOOT
config ESPRESSIF_HAVE_OTA_PARTITION
bool
default n
if ESPRESSIF_HAVE_OTA_PARTITION
comment "Application Image OTA Update support"
config ESPRESSIF_OTA_PRIMARY_SLOT_OFFSET
hex "Application image primary slot offset"
default 0x20000
config ESPRESSIF_OTA_PRIMARY_SLOT_DEVPATH
string "Application image primary slot device path"
default "/dev/ota0"
config ESPRESSIF_OTA_SECONDARY_SLOT_OFFSET
hex "Application image secondary slot offset"
default 0x170000
config ESPRESSIF_OTA_SECONDARY_SLOT_DEVPATH
string "Application image secondary slot device path"
default "/dev/ota1"
config ESPRESSIF_OTA_SLOT_SIZE
hex "Application image slot size (in bytes)"
default 0x150000
config ESPRESSIF_OTA_SCRATCH_OFFSET
hex "Scratch partition offset"
default 0x2C0000
config ESPRESSIF_OTA_SCRATCH_SIZE
hex "Scratch partition size"
default 0x40000
config ESPRESSIF_OTA_SCRATCH_DEVPATH
string "Scratch partition device path"
default "/dev/otascratch"
endif # ESPRESSIF_HAVE_OTA_PARTITION
config ESPRESSIF_SECURE_FLASH_ENC_ENABLED
bool "Enable Flash Encryption on boot (READ DOCS FIRST)"
default n
depends on ESPRESSIF_BOOTLOADER_MCUBOOT
select ESPRESSIF_EFUSE
---help---
If this option is set, flash contents will be encrypted by the bootloader on first boot.
Note: After first boot, the system will be permanently encrypted. Re-flashing an encrypted
system is complicated and not always possible.
Read https://docs.espressif.com/projects/esp-idf/en/latest/security/flash-encryption.html
before enabling.
Note: enabling this option will automatically select ESPRESSIF_EFUSE and ESPRESSIF_EFUSE_VIRTUAL,
as a mean to avoid accidental burning of the E-Fuses.
if ESPRESSIF_SECURE_FLASH_ENC_ENABLED
config ESPRESSIF_SECURE_FLASH_UART_BOOTLOADER_ALLOW_ENC
bool "Leave UART bootloader encryption enabled"
depends on ESPRESSIF_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT
default n
---help---
If not set (default), the bootloader will permanently disable UART bootloader encryption access on
first boot. If set, the UART bootloader will still be able to access hardware encryption.
It is recommended to only set this option in testing environments.
config ESPRESSIF_SECURE_FLASH_UART_BOOTLOADER_ALLOW_DEC
bool "Leave UART bootloader decryption enabled"
default n
depends on ESPRESSIF_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT
---help---
If not set (default), the bootloader will permanently disable UART bootloader decryption access on
first boot. If set, the UART bootloader will still be able to access hardware decryption.
Only set this option in testing environments. Setting this option allows complete bypass of flash
encryption.
config ESPRESSIF_SECURE_FLASH_UART_BOOTLOADER_ALLOW_CACHE
bool "Leave UART bootloader flash cache enabled"
default n
depends on ESPRESSIF_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT
---help---
If not set (default), the bootloader will permanently disable UART bootloader flash cache access on
first boot. If set, the UART bootloader will still be able to access the flash cache.
Only set this option in testing environments.
choice ESPRESSIF_SECURE_FLASH_ENCRYPTION_MODE
bool "Enable usage mode"
default ESPRESSIF_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT
---help---
By default, Development mode is enabled which allows ROM download mode to perform Flash Encryption
operations (plaintext is sent to the device, and it encrypts it internally and writes ciphertext
to flash). This mode is not secure, it's possible for an attacker to write their own chosen plaintext
to flash.
Release mode should always be selected for production or manufacturing. Once enabled it's no longer
possible for the device in ROM Download Mode to use the Flash Encryption hardware.
Refer to the Flash Encryption section of the ESP-IDF Programmer's Guide for details:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/security/flash-encryption.html#flash-encryption-configuration
config ESPRESSIF_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT
bool "Development (NOT SECURE)"
select ESPRESSIF_SECURE_FLASH_UART_BOOTLOADER_ALLOW_ENC
config ESPRESSIF_SECURE_FLASH_ENCRYPTION_MODE_RELEASE
bool "Release"
endchoice
config ESPRESSIF_SECURE_FLASH_ENC_USE_HOST_KEY
bool "Require user provided encryption key for flash encryption"
default y
---help---
This option enables the requirement of a host generated flash encryption key.
If not selected, a random key will be generated by the bootloader on first boot.
In this case, the user will not have access to the key and will be unable to reuse it.
if ESPRESSIF_SECURE_FLASH_ENC_USE_HOST_KEY
config ESPRESSIF_SECURE_FLASH_ENC_HOST_KEY_NAME
string "Path to flash encryption key"
default "flash_enc_key.bin"
---help---
Path to the key file used to encrypt the flash.
This key is in a binary format and is generated by espsecure application.
Path is evaluated relative to the NuttX root directory.
You can generate a new signing key by running the following command:
$ espsecure.py generate_flash_encryption_key <key_name>
endif # ESPRESSIF_SECURE_FLASH_ENC_USE_HOST_KEY
config ESPRESSIF_SECURE_FLASH_ENC_FLASH_DEVICE_ENCRYPTED
bool "Device is already encrypted"
default n
depends on ESPRESSIF_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT
depends on !ESPRESSIF_EFUSE_VIRTUAL
---help---
Append --encrypt to esptool.py write_flash command.
This option is useful when the device already has a flash encryption key,
and the user wants to simply flash a new firmware to it, using the key already present.
It requires that the DEVELOPMENT mode is set. It is not possible to reflash in RELEASE mode.
endif # ESPRESSIF_SECURE_FLASH_ENC_ENABLED
endmenu # Bootloader and Image Configuration
menu "LP Core (Low-power core) Coprocessor Configuration"
config ESPRESSIF_USE_LP_CORE
bool "Enable LP Coprocessor"
depends on ARCH_CHIP_ESP32C6 || ARCH_CHIP_ESP32P4
---help---
Enable LP core (Low-power core) coprocessor
if ESPRESSIF_USE_LP_CORE
config ESPRESSIF_ULP_COPROC_RESERVE_MEM_SIZE
int "RTC slow memory reserved for coprocessor"
default 4096
range 32 16352
---help---
Bytes of memory to reserve for ULP Co-processor firmware & data.
Data is reserved at the beginning of RTC slow memory.
config ESPRESSIF_ULP_SHARED_MEM_SIZE
int "Size of the shared memory for ULP core"
default 16
---help---
Size of the shared memory defined in bytes.
config ESPRESSIF_ULP_ENABLE_UBSAN
bool "Enable UBSan (undefined behavior sanitizer) for LP core application"
depends on DEBUG_SYMBOLS
default n
---help---
LP core supports limited set of HW exceptions. This can be overcome
by enabling undefined behavior sanitizer for LP core application to catch some errors.
But note that it will increase code size significantly and it can happen that
application will not fit into RTC RAM
choice ESPRESSIF_ULP_WAKEUP_SOURCE
prompt "LP Coprocessor wakeup source"
default ESPRESSIF_ULP_WAKEUP_HP_CPU
config ESPRESSIF_ULP_WAKEUP_HP_CPU
bool "Wakeup by HP core"
config ESPRESSIF_ULP_WAKEUP_LP_UART
depends on ESPRESSIF_LP_UART
bool "Wakeup by LP UART RX"
config ESPRESSIF_ULP_WAKEUP_LP_IO
bool "Wakeup by LP IO interrupt"
config ESPRESSIF_ULP_WAKEUP_LP_TIMER
bool "Wakeup by LP timer"
endchoice # ESPRESSIF_ULP_WAKEUP_SOURCE
menu "ULP Wakeup LP IO Sources"
depends on ESPRESSIF_ULP_WAKEUP_LP_IO
menu "GPIOs to wakeup ULP when low"
config ESPRESSIF_ULP_WAKEUP_LP_IO0_LOW
bool "LP_IO0"
default n
---help---
Wakeup ULP when LP_GPIO0 is low.
config ESPRESSIF_ULP_WAKEUP_LP_IO1_LOW
bool "LP_IO1"
default n
---help---
Wakeup ULP when LP_GPIO1 is low.
config ESPRESSIF_ULP_WAKEUP_LP_IO2_LOW
bool "LP_IO2"
default n
---help---
Wakeup ULP when LP_GPIO2 is low.
config ESPRESSIF_ULP_WAKEUP_LP_IO3_LOW
bool "LP_IO3"
default n
---help---
Wakeup ULP when LP_GPIO3 is low.
config ESPRESSIF_ULP_WAKEUP_LP_IO4_LOW
bool "LP_IO4"
default n
---help---
Wakeup ULP when LP_GPIO4 is low.
config ESPRESSIF_ULP_WAKEUP_LP_IO5_LOW
bool "LP_IO5"
default n
---help---
Wakeup ULP when LP_GPIO5 is low.
config ESPRESSIF_ULP_WAKEUP_LP_IO6_LOW
bool "LP_IO6"
default n
---help---
Wakeup ULP when LP_GPIO6 is low.
config ESPRESSIF_ULP_WAKEUP_LP_IO7_LOW
bool "LP_IO7"
default n
---help---
Wakeup ULP when LP_GPIO7 is low.
config ESPRESSIF_ULP_WAKEUP_LP_IO8_LOW
bool "LP_IO8"
default n
depends on ARCH_CHIP_ESP32P4
---help---
Wakeup ULP when LP_GPIO8 is low
config ESPRESSIF_ULP_WAKEUP_LP_IO9_LOW
bool "LP_IO9"
default n
depends on ARCH_CHIP_ESP32P4
---help---
Wakeup ULP when LP_GPIO9 is low
config ESPRESSIF_ULP_WAKEUP_LP_IO10_LOW
bool "LP_IO10"
default n
depends on ARCH_CHIP_ESP32P4
---help---
Wakeup ULP when LP_GPIO10 is low
config ESPRESSIF_ULP_WAKEUP_LP_IO11_LOW
bool "LP_IO11"
default n
depends on ARCH_CHIP_ESP32P4
---help---
Wakeup ULP when LP_GPIO11 is low
config ESPRESSIF_ULP_WAKEUP_LP_IO12_LOW
bool "LP_IO12"
default n
depends on ARCH_CHIP_ESP32P4
---help---
Wakeup ULP when LP_GPIO12 is low
config ESPRESSIF_ULP_WAKEUP_LP_IO13_LOW
bool "LP_IO13"
default n
depends on ARCH_CHIP_ESP32P4
---help---
Wakeup ULP when LP_GPIO13 is low
config ESPRESSIF_ULP_WAKEUP_LP_IO14_LOW
bool "LP_IO14"
default n
depends on ARCH_CHIP_ESP32P4
---help---
Wakeup ULP when LP_GPIO14 is low
endmenu # GPIOs to wakeup ULP when low
menu "GPIOs to wakeup ULP when high"
config ESPRESSIF_ULP_WAKEUP_LP_IO0_HIGH
bool "LP_IO0"
default n
---help---
Wakeup ULP when LP_GPIO0 is high.
config ESPRESSIF_ULP_WAKEUP_LP_IO1_HIGH
bool "LP_IO1"
default n
---help---
Wakeup ULP when LP_GPIO1 is high.
config ESPRESSIF_ULP_WAKEUP_LP_IO2_HIGH
bool "LP_IO2"
default n
---help---
Wakeup ULP when LP_GPIO2 is high.
config ESPRESSIF_ULP_WAKEUP_LP_IO3_HIGH
bool "LP_IO3"
default n
---help---
Wakeup ULP when LP_GPIO3 is high.
config ESPRESSIF_ULP_WAKEUP_LP_IO4_HIGH
bool "LP_IO4"
default n
---help---
Wakeup ULP when LP_GPIO4 is high.
config ESPRESSIF_ULP_WAKEUP_LP_IO5_HIGH
bool "LP_IO5"
default n
---help---
Wakeup ULP when LP_GPIO5 is high.
config ESPRESSIF_ULP_WAKEUP_LP_IO6_HIGH
bool "LP_IO6"
default n
---help---
Wakeup ULP when LP_GPIO6 is high.
config ESPRESSIF_ULP_WAKEUP_LP_IO7_HIGH
bool "LP_IO7"
default n
---help---
Wakeup ULP when LP_GPIO7 is high.
config ESPRESSIF_ULP_WAKEUP_LP_IO8_HIGH
bool "LP_IO8"
default n
depends on ARCH_CHIP_ESP32P4
---help---
Wakeup ULP when LP_GPIO8 is high
config ESPRESSIF_ULP_WAKEUP_LP_IO9_HIGH
bool "LP_IO9"
default n
depends on ARCH_CHIP_ESP32P4
---help---
Wakeup ULP when LP_GPIO9 is high
config ESPRESSIF_ULP_WAKEUP_LP_IO10_HIGH
bool "LP_IO10"
default n
depends on ARCH_CHIP_ESP32P4
---help---
Wakeup ULP when LP_GPIO10 is high
config ESPRESSIF_ULP_WAKEUP_LP_IO11_HIGH
bool "LP_IO11"
default n
depends on ARCH_CHIP_ESP32P4
---help---
Wakeup ULP when LP_GPIO11 is high
config ESPRESSIF_ULP_WAKEUP_LP_IO12_HIGH
bool "LP_IO12"
default n
depends on ARCH_CHIP_ESP32P4
---help---
Wakeup ULP when LP_GPIO12 is high
config ESPRESSIF_ULP_WAKEUP_LP_IO13_HIGH
bool "LP_IO13"
default n
depends on ARCH_CHIP_ESP32P4
---help---
Wakeup ULP when LP_GPIO13 is high
config ESPRESSIF_ULP_WAKEUP_LP_IO14_HIGH
bool "LP_IO14"
default n
depends on ARCH_CHIP_ESP32P4
---help---
Wakeup ULP when LP_GPIO14 is high
endmenu # GPIOs to wakeup ULP when high
endmenu # ULP Wakeup LP IO Sources
config ESPRESSIF_ULP_WAKEUP_SLEEP_DURATION_US
int "Sleep duration of LP Coprocessor in us"
depends on ESPRESSIF_ULP_WAKEUP_LP_TIMER
default 1000000
choice ESPRESSIF_ULP_WAKEUP_LPUART_MODE
prompt "LP Coprocessor UART Wakeup Mode"
depends on ESPRESSIF_ULP_WAKEUP_LP_UART
default ESPRESSIF_ULP_WAKEUP_LPUART_START_BIT_MODE
config ESPRESSIF_ULP_WAKEUP_LPUART_ACTIVE_EDGE_THRESHOLD_MODE
bool "Wake-up triggered by active edge threshold"
config ESPRESSIF_ULP_WAKEUP_LPUART_FIFO_THRESHOLD_MODE
bool "Wake-up triggered by the number of bytes received in the RX FIFO"
config ESPRESSIF_ULP_WAKEUP_LPUART_START_BIT_MODE
bool "Wake-up triggered by the detection of a start bit"
config ESPRESSIF_ULP_WAKEUP_LPUART_CHAR_SEQ_MODE
bool "Wake-up triggered by detecting a specific character sequence"
endchoice # ESPRESSIF_ULP_WAKEUP_LPUART_MODE
config ESPRESSIF_ULP_WAKEUP_LPUART_ACTIVE_EDGE_THRESHOLD
int "Number of RXD edge changes to to trigger wake-up"
depends on ESPRESSIF_ULP_WAKEUP_LPUART_ACTIVE_EDGE_THRESHOLD_MODE
default 3
config ESPRESSIF_ULP_WAKEUP_LPUART_FIFO_THRESHOLD
int "Number of bytes needed to receive in the RX FIFO to trigger wake-up"
depends on ESPRESSIF_ULP_WAKEUP_LPUART_FIFO_THRESHOLD_MODE
default 8
config ESPRESSIF_ULP_WAKEUP_LPUART_CHAR_SEQ
string "Character sequence to trigger wake-up"
depends on ESPRESSIF_ULP_WAKEUP_LPUART_CHAR_SEQ_MODE
default "esp"
endif # ESPRESSIF_USE_LP_CORE
endmenu # LP Core (Low-power core) Coprocessor Configuration
menu "PM Configuration"
config ESPRESSIF_AUTO_SLEEP
bool "Auto-sleep"
default n
select PM
select ESPRESSIF_HR_TIMER
select ARCH_HAVE_EXTRA_HEAPS if ARCH_CHIP_ESP32C3
select ESPRESSIF_RETENTION_HEAP if ARCH_CHIP_ESP32C3
select SCHED_TICKLESS
---help---
Enable Auto-sleep
config ESPRESSIF_RETENTION_HEAP
bool "Use retention memory as a separate heap"
depends on ARCH_CHIP_ESP32C3
default n
if PM
config PM_EXT1_WAKEUP
bool "PM EXT1 Wakeup"
depends on !ARCH_CHIP_ESP32C3
default n
---help---
Enable EXT1 wakeup functionality.
This allows the system to wake up from PM_STANDBY or PM_SLEEP
when a GPIO pin configured as an EXT1 wakeup source is triggered.
menu "PM EXT1 Wakeup Sources"
depends on PM_EXT1_WAKEUP
config PM_EXT1_WAKEUP_RTC_GPIO0
bool "RTC_GPIO0"
depends on ARCH_CHIP_ESP32C6 || ARCH_CHIP_ESP32P4
default n
---help---
Enable RTC GPIO0 as an EXT1 wakeup source.
config PM_EXT1_WAKEUP_RTC_GPIO1
bool "RTC_GPIO1"
depends on ARCH_CHIP_ESP32C6 || ARCH_CHIP_ESP32P4
default n
---help---
Enable RTC GPIO1 as an EXT1 wakeup source.
config PM_EXT1_WAKEUP_RTC_GPIO2
bool "RTC_GPIO2"
depends on ARCH_CHIP_ESP32C6 || ARCH_CHIP_ESP32P4
default n
---help---
Enable RTC GPIO2 as an EXT1 wakeup source.
config PM_EXT1_WAKEUP_RTC_GPIO3
bool "RTC_GPIO3"
depends on ARCH_CHIP_ESP32C6 || ARCH_CHIP_ESP32P4
default n
---help---
Enable RTC GPIO3 as an EXT1 wakeup source.
config PM_EXT1_WAKEUP_RTC_GPIO4
bool "RTC_GPIO4"
depends on ARCH_CHIP_ESP32C6 || ARCH_CHIP_ESP32P4
default n
---help---
Enable RTC GPIO4 as an EXT1 wakeup source.
config PM_EXT1_WAKEUP_RTC_GPIO5
bool "RTC_GPIO5"
depends on ARCH_CHIP_ESP32C6 || ARCH_CHIP_ESP32P4
default n
---help---
Enable RTC GPIO5 as an EXT1 wakeup source.