Ivan Grokhotkov
18af031791
Merge branch 'bugfix/rom_time_t_size_deps' into 'master'
...
esp_rom: remove functions which depend on sizeof(struct stat) and all their callers
Closes IDFGH-6318
See merge request espressif/esp-idf!16679
2022-01-11 12:58:55 +00:00
morris
869bed1bb5
soc: don't expose unstable soc header files in public api
2022-01-06 23:10:22 +08:00
Ivan Grokhotkov
24c20d188e
esp_rom: remove functions which depend on sizeof(struct stat)
...
...and all their callers.
With the upcoming switch from sizeof(time_t)==4 to sizeof(time_t)==8,
sizeof(struct stat) is also increasing.
A few newlib functions present in ROM allocate 'struct stat' on the
stack and call _fstat_r on this structure. The implementation of
fstat is provided in ESP-IDF. This implementation will often do
memset(st, 0, sizeof(*st)), where st is 'struct stat*', before setting
some fields of this structure. If IDF is built with sizeof(st)
different from sizeof(st) which ROM was built with, this will lead
to an out-of-bounds write and a stack corruption.
This commit removes problematic ROM functions from the linker script.
Here are the functions which allocate 'struct stat':
* _isatty_r (in ROM)
* __swhatbuf_r, called by __smakebuf_r, called by __swsetup_r and
__srefill_r (in ROM)
* _fseeko_r (not in ROM)
* glob2 (not in ROM)
* _gettemp (not in ROM)
As a result, these functions are used from libc.a, and use correct
size of 'stat' structure.
Closes https://github.com/espressif/esp-idf/issues/7980
2022-01-06 15:20:04 +01:00
Cao Sen Miao
d397464fc4
spi_flash: refactor spi_flash.h to esp_rom_spiflash.h but keep the content in spi_flash.h
2021-12-30 14:12:31 +08:00
morris
8e220f7bbe
esp_rom: add README to describe the component layout
2021-12-30 14:05:12 +08:00
Cao Sen Miao
b0decda1e3
bootloader: move bootloader flash support to isolate folders
2021-12-30 14:05:12 +08:00
Cao Sen Miao
3a4db97cec
spi_flash: move patch files to common rom patch folder
2021-12-30 14:05:12 +08:00
Cao Sen Miao
3dd1cfea18
spi_flash: refactor spi_flash.h to decline duplicated code
2021-12-30 14:05:12 +08:00
Simon
1c82e6eac7
Merge branch 'ci/8684_build_ci' into 'master'
...
CI: Enable ESP8684 build (2nd stage) CI on master (except example build)
Closes IDF-4388
See merge request espressif/esp-idf!16197
2021-12-14 11:12:10 +00:00
Jiang Jiang Jian
e3137693c1
Merge branch 'bugfix/fix_rx_fragment_error_issue' into 'master'
...
esp_wifi: fix fragment issue and PMF compatible for faulty APs
Closes WIFI-4218
See merge request espressif/esp-idf!16321
2021-12-13 12:32:33 +00:00
Cao Sen Miao
e81841318f
CI: Enable ESP8684 build stage CI on master
2021-12-13 19:18:47 +08:00
Cao Sen Miao
463cf2cf1c
ESP8684: Clean up ESP8684 code, remove useless code, update headers
2021-12-09 18:36:39 +08:00
Ivan Grokhotkov
c358aceb1b
Merge branch 'feature/soc_caps_build_sys' into 'master'
...
build-system: parse soc caps and integrate into kconfig
Closes IDF-2223
See merge request espressif/esp-idf!15305
2021-12-09 06:54:08 +00:00
muhaidong
832123a5e1
esp_wifi: fix fragment plt loss and update header file
...
1. fix(pp): fix fragment plt loss when 2td pn compare with 1th pn
2. pmf allow keyindex in big endian format to workaround faulty APs
3. docs: update miswritten and abbreviated words and syntax errors for initialize WiFi section in esp_wifi.h header file
4. allow for minimal scope of wifi_init_config_t
2021-12-08 19:39:14 +08:00
Marius Vikhammer
c6d60615c6
build-system: include soc_caps defines into kconfig
...
Adds gen_soc_caps_kconfig.py which parses the soc caps (soc_caps.h) into
a format that can be included in kconfig.
2021-12-06 12:37:07 +08:00
muhaidong
f9b2cb6f11
esp_wifi:compute packet length use lldesc length instead of rx_ctl sig_len in sniffer mode
2021-12-01 21:07:32 +08:00
Mahavir Jain
b9b55bc32b
Merge branch 'contrib/github_pr_7971' into 'master'
...
bugfix: Conflicting declaration error when include<rom/secure_boot.h>
Closes IDFGH-6308
See merge request espressif/esp-idf!16202
2021-12-01 11:59:20 +00:00
Mahavir Jain
f667b1039b
Fix copyright headers for few include files
2021-11-30 22:25:33 +05:30
lovyan03
cb91b51c52
bugfix: Conflicting declaration error with include<esp_efuse.h>, and Unified secure_boot.h include guard to "pragma once".
2021-11-30 15:46:49 +09:00
laokaiyao
f21020ce04
esp32h2: update reg and struct for beta2
2021-11-24 12:34:17 +08:00
wuzhenghui
388615add0
update esp32h2beta2 chip_id to 14
2021-11-24 12:30:43 +08:00
wuzhenghui
968c42d88c
822 FPGA rnv init
2021-11-24 12:30:17 +08:00
laokaiyao
b9a84b96ce
esp32h2: add support for beta2
2021-11-24 12:30:17 +08:00
Roland Dobai
766aa57084
Build & config: Remove leftover files from the unsupported "make" build system
2021-11-11 15:32:36 +01:00
Cao Sen Miao
bf6fa70812
ESP8684: update bootloader, bootloader_support, esp_rom
2021-11-06 17:33:44 +08:00
Li Shuai
e8188e5d8f
ci: replacing old header with new SPDX header style
2021-10-20 11:36:23 +08:00
Li Shuai
881e1b0fd5
deep sleep: add deep sleep support for esp32s3
2021-10-20 11:36:20 +08:00
Kapil Gupta
797c7144bd
esp_wifi: Add support for GCMP and GMAC ciphers
2021-10-12 20:48:51 +08:00
Jiang Jiang Jian
3b48b7e663
Merge branch 'Fix/update_reset_reason' into 'master'
...
update reset reason for c3/s3/h2
See merge request espressif/esp-idf!14747
2021-09-18 07:03:50 +00:00
boarchuz
cda459672a
fix bootloader build with rom flash driver
...
Closes https://github.com/espressif/esp-idf/pull/7508
Closes https://github.com/espressif/esp-idf/issues/6849
2021-09-15 14:51:35 +08:00
wanglei
c3abbe3866
cache: Update cache.h and autoload api
2021-09-02 02:27:40 +08:00
SalimTerryLi
23e23b697c
rom/tjpgd: unify library & add rom patch
...
remove external tjpgd library inside example
enable tjpgd decoding on all chips
2021-09-01 14:42:17 +08:00
Mahavir Jain
d9fdb9dc3f
esp_rom: remove "newlib.h" header
...
We found conflict in "sizeof(time_t)" due to inclusion of this
header over toolchain specific "newlib.h".
Moreover, there are no users for this header and implementation
for API is also not available in ROM. Hence removing it.
2021-08-27 14:33:05 +05:30
Sachin Parekh
2d82560ed5
bootloader: Enable Secure boot V2 for ESP32-S3
2021-08-19 14:08:12 +05:30
wuzhenghui
f913a10a22
update reset reason for c3/s3/h2
2021-08-13 17:45:53 +08:00
Jakob Hasse
7029f0537e
[build system]: Fixed common requirement for Linux
2021-08-13 16:50:29 +08:00
Jiang Jiang Jian
6e1f8a68b9
Merge branch 'feature/support_esp32s3_wifi_lightsleep' into 'master'
...
support esp32s3 wifi lightsleep
Closes IDF-1781
See merge request espressif/esp-idf!14569
2021-08-06 12:51:46 +00:00
Sachin Parekh
41973b761e
newlib: Override __assert and __assert_func
...
Default assert implementation calls fiprintf, which tries to acquire a
lock and fails if it is executing in critical section or ISR
2021-08-05 11:09:22 +05:30
Li Shuai
d73a09cd8b
light sleep: add wifi mac sleep support for esp32s3
2021-08-04 21:58:33 +08:00
Jakob Hasse
4dd88329c1
[esp_rom]: Partially buildable for linux
...
The following files have been ported:
* esp_rom_crc.h
* esp_rom_sys.h
* esp_rom_efuse.h (mostly no-ops)
* esp_rom_md5.h
Integrated Linux-based rom implementation into log
and NVS component.
Added brief host tests for ROM to ensure basic
consistency on Linux.
Added ROM printf host unit tests.
Temporarily added reset reason for Linux in ROM.
2021-08-03 12:03:24 +08:00
Song Ruo Jing
5d82d7c6ee
Merge branch 'typo_fix/fix-length-typo' into 'master'
...
docs: Fix length typo
Closes IDFGH-5272
See merge request espressif/esp-idf!14371
2021-08-02 09:35:15 +00:00
ChenJianxing
9e7d75cb95
esp_wifi: fix some wifi bugs
...
1. support config 80211 tx rate
2. fix 80211 tx crash issue
3. disable ampdu+amsdu bit
2021-07-31 18:02:20 +08:00
Ato Araki
aea865b360
Fix length typo
...
Closes https://github.com/espressif/esp-idf/pull/7037
2021-07-29 14:44:43 +08:00
Cao Sen Miao
c29b3e2e36
spi_flash: move the unlock patch to bootloader and add support for GD
2021-07-29 10:46:33 +08:00
Ivan Grokhotkov
7534c4467f
rom, spi_flash: add a patch for esp_flash_erase_region for C3, S3, H2
2021-07-24 13:28:25 +02:00
morris
1560d6f1ba
soc: add reset reasons in soc component
2021-07-13 10:45:38 +08:00
chenjianxing
564068d5af
esp_wifi: support esp32s3 wifi and fix not tx 9M rate issue
2021-07-06 11:38:40 +08:00
Shu Chen
ee23a489b9
esp32h2: code clean up
2021-07-01 19:53:50 +08:00
Shu Chen
37f4cb8b4b
esp32h2: add rom code for esp32h2
2021-07-01 19:53:11 +08:00
Angus Gratton
57fa883127
esp32s3: Remove APB frequency RTC register
...
Usage of this register changed between ESP32-S3 beta2 and the
final chip.
2021-06-29 17:38:46 +10:00