Commit Graph

755 Commits

Author SHA1 Message Date
Laukik Hase
19ab0213d9 change(bootloader): Map only the necessary length when fetching the app description struct 2024-11-07 18:13:53 +05:30
Mahavir Jain
4c6cda734d Merge branch 'feature/mmu_page_size_from_app_bin' into 'master'
feat(bootloader): add support to use MMU page size from app binary

Closes IDF-8209

See merge request espressif/esp-idf!33989
2024-11-06 17:14:31 +08:00
Mahavir Jain
afa46c06a8 feat(bootloader): add support to use MMU page size from app binary
For the SoCs that support configurable MMU page size, it is possible
that the bootloader and application are built with different MMU page
size configuration. This mismatch is not supported at the moment and
application verification fails (at bootup or during OTA update).

Configuring MMU page size helps to optimize the flash space by having
smaller alignment and padding (secure) requirements. Please note that
the MMU page size is tied with the flash size configuration at the
moment (`ESPTOOLPY_FLASHSIZE_XMB`).

This MR ensures that application verification happens using the MMU page
size configured in its binary header. Thus, bootloader and application
can now have different MMU page sizes and different combinations shall
be supported.
2024-11-05 20:37:18 +05:30
Song Ruo Jing
2cb35a2955 refactor(regi2c): ana i2c master clock is enabled per request 2024-11-04 12:37:17 +08:00
Song Ruo Jing
92ed77933b refactor(clk): deprecate SOC_RTC_FAST_CLK_SRC_XTAL_DIV 2024-11-04 12:37:17 +08:00
Konstantin Kondrashov
8c4f576f99 feat(partition_table): Support primary subtypes partitions 2024-10-31 13:16:01 +02:00
Omar Chebib
908e1e670a test(bootloader_support): enable analog super wdt reset for the ESP32-C61 2024-10-31 10:11:44 +08:00
Aditya Patwardhan
82db0feab2 fix(security): Update key manager specific initializations for esp32c5 2024-10-28 11:13:43 +08:00
Jiang Jiang Jian
88317cff24 Merge branch 'feat/pwr_glitch_bringup_c5_c61' into 'master'
feat(pwr_glitch): Add power glitch reset support on esp32c5, esp32c61

See merge request espressif/esp-idf!33032
2024-10-15 14:15:49 +08:00
zhoupeng
858d0647e8 fix(pwr_glitch): Add Comment and only add power glitch reset support on esp32c5 ECO0 2024-10-09 11:08:38 +08:00
chaijie@espressif.com
e1423c53d5 feat(pwr_glitch): Add power glitch support on esp32c5/esp32c61 2024-10-08 11:44:21 +08:00
Konstantin Kondrashov
d5f37b526d feat(partitions): Adds new partition types and subtypes for bootloader and partition_table 2024-10-01 14:22:22 +03:00
Mahavir Jain
336f938110 fix(bootloader): self encryption workflow in bootloader not working on C5
Added explicit wait for key manager state to be idle before configuring
the register for flash encryption key usage from efuse. This now ensures
that flash contents are encrypted using efuse programmed key.

Also refactored code a bit to move into target specific directory.
2024-09-25 14:21:16 +05:30
Mahavir Jain
a71e0fc028 Merge branch 'feature/enable_sha_support_for_esp32c61' into 'master'
feat: enable support for sha peripheral in esp32c61

Closes IDF-9234

See merge request espressif/esp-idf!32830
2024-09-20 13:22:14 +08:00
Sachin Billore
b4749b88d9 feat(APM): Add APM APIs for ESP32-C61 2024-09-19 11:07:42 +05:30
Konstantin Kondrashov
e8dab4c257 Merge branch 'feature/esp32c61_update_efuses' into 'master'
feat(efuse): Updates efuse table for esp32c61

Closes IDF-11057 and IDF-9282

See merge request espressif/esp-idf!33436
2024-09-12 01:20:20 +08:00
nilesh.kale
12fc7a677e feat: enable support for sha peripheral in esp32c61 2024-09-11 14:49:01 +05:30
wuzhenghui
05e74480f5 feat(esp_system): gate some clock by default to optmize esp32p4 active power 2024-09-11 10:53:00 +08:00
Konstantin Kondrashov
8539760e79 feat(efuse): Updates efuse table for esp32c61 2024-09-10 14:16:29 +03:00
Armando
42cf1d8867 fix(mspi): fixed mspi clock wrong on ram loadable app on c5 2024-09-10 11:12:02 +08:00
Armando
6933ba39bc fix(system): fixed ram loadable app on p4 2024-09-09 10:31:48 +08:00
Armando
8842e5764f feat(psram): xip psram c5 2024-09-03 18:17:03 +08:00
Song Ruo Jing
b6916ca304 Merge branch 'bugfix/custom_console_uart_pins_c5_c61' into 'master'
fix(uart): make custom console uart TX/RX pins same to the default console uart pins

See merge request espressif/esp-idf!33110
2024-09-02 21:26:56 +08:00
Song Ruo Jing
8e53e91ec9 fix(uart): make custom console uart pins same to the default console uart pins 2024-09-02 15:24:29 +08:00
Aditya Patwardhan
d1c47835a2 fix(security): Fixed flash encryption for esp32p4
The flash encryption on esp32p4 was broken due to some code related
    to key manager not being executed when key manager support was
    disabled on esp32p4 target.
    This commit fixes that behaviour
    Additionally, the atomic env enablement for
    key_mgr_ll_enable_peripheral_clock was fixed.
2024-09-02 14:00:55 +08:00
Lou Tianhao
4393343ac9 fix(ci): some actions taken to pass ci 2024-08-29 14:15:41 +08:00
laokaiyao
1c2f8b8ce0 feat(bootloader): support to check efuse block revision
change(bootloader): remove ignore efuse check flag (temp)

change(bootloader): use int for the minimum efuse blk rev (temp)
2024-08-26 10:02:31 +08:00
C.S.M
8078ad7840 feat(brownout): Add brownout detector support on esp32c61 2024-08-22 11:26:30 +08:00
C.S.M
e76c2c4b53 feat(brownout): Add brownout detector support on esp32c5 2024-08-22 11:26:30 +08:00
Song Ruo Jing
7b510049fb fix(ci): esp32 build failure due to bootloader size too large 2024-08-19 19:08:10 +08:00
Nilesh Kale
6028332164 Merge branch 'feature/enable_secure_boot_in_esp32c61' into 'master'
feat: enable secure boot feature for esp32c61

Closes IDF-9233

See merge request espressif/esp-idf!31420
2024-08-13 19:23:53 +08:00
morris
001527e63b Merge branch 'feat/adding_esp32c61_gdma' into 'master'
feat: c61 add gdma support

Closes IDF-9310, IDF-9311, and IDF-9315

See merge request espressif/esp-idf!32145
2024-08-13 12:14:47 +08:00
Mahavir Jain
f38f77a7fc fix(rng): avoid clearing PMU_PERIF_I2C_RSTB in random disable API for C6
This configuration bit is required for ADC operation as well and hence
should not be cleared in the RNG API sequence.

Ideally, the ADC driver should take care of initializing this bit but
still the RNG layer change is required because of interleaved API usage
scenario described in following linked issue.

Closes https://github.com/espressif/esp-idf/issues/14124
Closes https://github.com/espressif/esp-idf/issues/14280
2024-08-12 08:26:05 +05:30
hongshuqing
0c817d9238 fix(bootloader): update random disable api for ESP32-C5 2024-08-11 22:02:27 +05:30
igor.udot
a262df7c31 feat: c61 add gdma support 2024-08-09 10:12:40 +08:00
Hong Shu Qing
50df8480b4 Merge branch 'feature/esp32c61_rng_func_support' into 'master'
feat(esp32c61): support rng api

See merge request espressif/esp-idf!32534
2024-08-08 11:16:10 +08:00
morris
9716d9e5ca refactor(brownout): correct names comments in the LL driver 2024-08-07 10:46:57 +08:00
hongshuqing
e036a7b745 feat(bootloader): add rng support for ESP32-C61 2024-08-06 20:21:07 +08:00
Mahavir Jain
9b5137347d Merge branch 'fix/incorrect_config_name' into 'master'
Fix encrypt image instead of the partition optimisation not being enabled

See merge request espressif/esp-idf!32517
2024-08-05 15:37:25 +08:00
nilesh.kale
849726a3b7 feat: enable secure boot feature for esp32c61 2024-08-05 09:23:27 +05:30
harshal.patil
470ad32f2c fix(bootloader_support): Fix encrypt image instead of the partition feature not being enabled 2024-08-01 14:10:06 +05:30
Song Ruo Jing
335d39b869 feat(clk): Add basic clock support for esp32c61
- Support SOC ROOT clock source switch
- Support CPU frequency change
- Support RTC SLOW clock source switch
- Support RTC SLOW clock + RC FAST calibration
- Remove FPGA build
2024-07-31 22:41:22 +08:00
Hong Shu Qing
90ea731fe1 Merge branch 'feature/esp32c5_rng_support' into 'master'
feat(esp32c5mp): support for rng api and test example

Closes IDF-8626

See merge request espressif/esp-idf!31902
2024-07-31 11:49:59 +08:00
Song Ruo Jing
3aa27ae960 refactor(regi2c): add LL function to control analog i2c master clock 2024-07-24 12:26:59 +08:00
Fu Zhibo
a90c9101ff feat: support regi2c for esp32c61 2024-07-24 12:17:11 +08:00
nilesh.kale
2bf74cf86d feat: enable flash encyption support in esp32c61
This commit add support for flash ecnyrption in ESP32C61.
2024-07-19 17:23:11 +05:30
hongshuqing
1454be7d4e feat(esp32c5): add rng support for bootloader and app 2024-07-18 11:04:44 +08:00
Mahavir Jain
d1ddd1660e Merge branch 'feature/esp32c5_apm_api' into 'master'
feat: add APM support for esp32c5

See merge request espressif/esp-idf!31964
2024-07-11 13:22:45 +08:00
Sachin Billore
f92afd85cd feat: add APM support for ESP32C5 2024-07-08 12:37:56 +05:30
nilesh.kale
b839bf95aa feat: Uncomment UART bootloader cache code in FE for ESP32C5 2024-07-04 16:27:32 +05:30