Zim Kalinowski
5c82ebce35
Merge branch 'bugfix/fix_esp32s2_deep_sleep_timer_wake_up_fail_backport_v4.2' into 'release/v4.2'
...
rtc: fix esp32s2 fall into sleep forever when deep-sleep time is set to 0(backport v4.2)
See merge request espressif/esp-idf!13562
2021-07-26 07:39:16 +00:00
Aditya Patwardhan
e5b4d5f348
Fix memory leak on error path in register_select
...
And remove dead error handling code from unregister_select.
Closes https://github.com/espressif/esp-idf/pull/7296
2021-07-26 14:43:21 +08:00
Angus Gratton
1d64638333
esp_common: Correctly disable ".bss segment placed in external memory" for ESP32-S2 & ESP32-S3
...
Support for this feature is still pending.
As reported by https://github.com/espressif/esp-idf/issues/6162
2021-07-20 15:24:32 +08:00
Chen Yi Qun
20e41d6265
fix esp32s2 fall into sleep forever when deep-sleep time is set to 0(backport v4.2)
2021-07-14 17:46:20 +08:00
Marius Vikhammer
54383f684f
soc: add dummy bytes to ensure instr prefetch always valid
...
The CPU might prefetch instructions, which means it in some cases
will try to fetch instruction located after the last instruction in
flash.text.
Add dummy bytes to ensure fetching these wont result in an error,
e.g. MMU exceptions
2021-06-26 08:54:46 +08:00
Angus Gratton
2af8fac1d9
esp32s2 ds: Fix invalidating Digital Signature key from HMAC peripheral if assertions are disabled
2021-05-25 14:22:55 +00:00
Angus Gratton
d52331849e
Merge branch 'bugfix/flash_rodata_any_alignement_v4.2' into 'release/v4.2'
...
build: Fix cache issue and add dedicated section for (Custom) App version info (backport v4.2)
See merge request espressif/esp-idf!13465
2021-05-11 01:03:12 +00:00
Jiang Jiang Jian
d29cce7f0a
Merge branch 'bugfix/fix_some_pm_issue_v4.2' into 'release/v4.2'
...
esp_pm: add an interface to get pm configuration (backport to v4.2)
See merge request espressif/esp-idf!13124
2021-05-10 03:45:55 +00:00
Ivan Grokhotkov
af7b21851e
freertos: fix TLS run-time address calculation
...
Since dd849ffc
, _rodata_start label has been moved to a different
linker output section from where the TLS templates (.tdata, .tbss)
are located. Since link-time addresses of thread-local variables are
calculated relative to the section start address, this resulted in
incorrect calculation of THREADPTR/$tp registers.
Fix by introducing new linker label, _flash_rodata_start, which points
to the .flash.rodata output section where TLS variables are located,
and use it when calculating THREADPTR/$tp.
Also remove the hardcoded rodata section alignment for Xtensa targets.
Alignment of rodata can be affected by the user application, which is
the issue dd849ffc
was fixing. To accommodate any possible alignment,
save it in a linker label (_flash_rodata_align) and then use when
calculating THREADPTR. Note that this is not required on RISC-V, since
this target doesn't use TPOFF.
2021-05-10 11:18:09 +08:00
Omar Chebib
974b8dd4c4
build: (Custom) App version info is now on a dedicated section, independent of the rodata alignment
...
It is now possible to have any alignment restriction on rodata in the user
applicaiton. It will not affect the first section which must be aligned
on a 16-byte bound.
Closes https://github.com/espressif/esp-idf/issues/6719
Closes https://github.com/espressif/esp-idf/issues/6976
2021-05-10 11:17:58 +08:00
Angus Gratton
c8d15588e5
Merge branch 'bugfix/rtc_fast_memory_force_on_in_use_for_heap_backport_v4.2' into 'release/v4.2'
...
Bugfix/rtc fast memory force on in use for heap (backport v4.2)
See merge request espressif/esp-idf!12873
2021-04-23 09:06:40 +00:00
ninh
e378ecd6cf
esp_pm: add an interface to get pm configuration (backport to v4.2)
2021-04-13 17:15:35 +08:00
fuzhibo
2f5eba9263
driver(touch): fix touch sensor false trigger in sleep mode
2021-03-26 10:57:50 +08:00
fuzhibo
a866f0d8f6
fix: clear interrupt in touch sensor initialization
2021-03-25 11:14:24 +08:00
fuzhibo
9cb875949c
fix: RTC_FAST_MEM always power on if used for heap
2021-03-24 11:52:55 +08:00
Jiang Jiang Jian
c4c500e241
Merge branch 'bugfix/deep_sleep_stub_heap_rtc_fast_mem_v4.2' into 'release/v4.2'
...
deep sleep: Calculate RTC CRC without using any stack or other RTC heap memory (v4.2)
See merge request espressif/esp-idf!10883
2021-03-18 04:09:50 +00:00
Marius Vikhammer
cf87e114cb
deep_sleep: on S2 disable the brown out detector before deep sleeping
...
On S2 the brown out detector would occasionally trigger erroneously during deep sleep.
Disable it before sleeping to circumvent this issue.
Closes https://github.com/espressif/esp-idf/issues/6179
2021-02-25 14:58:50 +08:00
Angus Gratton
7c5afa262d
deep sleep: Calculate RTC CRC immediately before deep sleep, without using RAM
...
Fix for issues where RTC FAST memory is updated as part of going into deep
sleep. Very high risk if heaps are in RTC memory - in particular task stacks
may be in RTC memory, but also other variables.
Also fixes potential concurrency problems as RTC FAST memory is not accessible
by CPU during the CRC calculation itself.
Method:
- Disable interrupts (currently for single core only, will need update for S3)
- Load all registers before calculating CRC or going to sleep
2021-02-08 09:59:22 +11:00
Krzysztof Budzynski
2ef417df5f
Merge branch 'docs/update_rtc_clock_source_description_in_api_references_backport_v4.2' into 'release/v4.2'
...
docs: update the description for RTC Clock Sources for esp32 and esp32s2 (backport/v4.2)
See merge request espressif/esp-idf!11329
2020-12-08 10:47:42 +08:00
KonstantinKondrashov
3d03264b0a
esp32xx: Fix default values for all RTC sources in RTC_CLK_CAL_CYCLES option
...
Closes: https://github.com/espressif/esp-idf/issues/6037
2020-11-30 23:09:13 +08:00
Wang Fang
e9dae152cd
docs: update the description for RTC Clock Sources for esp32 and esp32s2
2020-11-23 11:37:15 +08:00
Angus Gratton
e5aa2b1d73
Merge branch 'bugfix/esp32s2_define_correct_size_for_rtc_fast_mem_v4.2' into 'release/v4.2'
...
esp32s2: Fix missed features CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP and... (v4.2)
See merge request espressif/esp-idf!9965
2020-11-06 12:49:24 +08:00
ninh
a6467d7683
fix reboot or crash when enable lightsleep on esp32s2
2020-10-28 22:20:41 +08:00
Armando
4c7dca7105
spi: fix issue with closing DMA before CPU reset
2020-10-16 06:00:18 +00:00
KonstantinKondrashov
df5399cfb5
esp32s2: Fix missed features CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP and CONFIG_BOOTLOADER_CUSTOM_RESERVE_RTC
...
Defines the correct size for RTC fast memory (the same as for ESP32).
Closes: IDF-1800
2020-10-15 22:33:12 +00:00
Angus Gratton
f536db1782
Merge branch 'feature/secure_boot_esp32s2_v4.2' into 'release/v4.2'
...
Feature/secure boot esp32s2 v4.2
See merge request espressif/esp-idf!9958
2020-09-25 07:31:45 +08:00
Jakob Hasse
26481c4a9d
toolchain: C++ exception workaround
...
* disable C++ exception FDE sorting (saves RAM)
Closes IDF-1128
2020-09-18 12:32:34 +07:00
Angus Gratton
9856198112
bootloader esp32s2: Increase bootloader DRAM & IRAM allowance
...
Bootloader DRAM now ends at 0x3FFEAB00 which is the start of ROM
static RAM (reclaimable after app is running).
IRAM loader segment increased by 8KB.
Available total static RAM for the app is now reduced by 16KB.
2020-09-15 11:23:51 +05:30
Angus Gratton
9409b2ecb7
Merge branch 'feature/support_for_esp32_pico_v3_02_v4.2' into 'release/v4.2'
...
psram: support for esp32-pico-v3-02 (backport v4.2)
See merge request espressif/esp-idf!9787
2020-08-04 14:30:14 +08:00
Darian Leung
e6db25af9d
TWAI: Add ESP32-S2 support
...
This commit adds TWAI driver support for the
ESP32-S2. The following features were added:
- Expanded BRP support
- Expanded CLKOUT Divider Support
- Updated example READMEs
2020-07-30 22:09:39 +08:00
Michael (XIAO Xufeng)
b284c48854
Merge branch 'bugfix/esp32s2_lightsleep_uart_suspend_v4.2' into 'release/v4.2'
...
esp32s2: suspend UART output using XOFF before entering light sleep (backport v4.2)
See merge request espressif/esp-idf!9293
2020-07-27 15:55:33 +08:00
Angus Gratton
3191a8cbc7
esp32s2: Always use eFuse config for WP pin
...
No reason to override just this pin in software.
2020-07-24 21:45:59 +08:00
chenjianqiang
6a253e8809
bugfix(psram): configure MMU after PSRAM initialization
2020-07-24 21:10:37 +08:00
Mahavir Jain
a9d8d8ea99
esp32s2: remove bt references from esp32s2 ld script
2020-07-14 18:04:28 +05:30
Ivan Grokhotkov
4ed889dfa2
esp32s2: sleep_modes: remove dependency on driver/uart.h
2020-07-13 09:52:29 +02:00
Ivan Grokhotkov
31cd3f1294
esp32s2: suspend UART output using XOFF before entering light sleep
...
Same logic as for the ESP32, except two changes:
* need to set UART_SW_FLOW_CON_EN bit for UART_FORCE_XOFF to take
effect
* need to check if the peripheral is not clockgated and out of reset
2020-07-13 09:52:29 +02:00
Shubham Kulkarni
07abd9092a
Include header file soc/cpu.h in memprot.c and system_api.c
...
This fixes build issues with Vanilla FreeRTOS
2020-07-10 18:21:20 +05:30
Michael (XIAO Xufeng)
76c1be0d94
spiram: fix the read id failure
...
The issue is caused by:
1. The disable_qio_mode inside read_id may have side effects.
2. read_id twice may have side effects.
Fix this issue by moving disable_qio_mode out of read_id and only do it
once before read_id. And retry read_id only when the first one is
failed.
Issue introduced in 3ecbb59c15
.
2020-06-30 21:45:31 +08:00
chenjianqiang
a3a4c828e9
psram: fix 16mbit psram id read error
2020-06-30 21:44:39 +08:00
Jakob Hasse
36ee7d706a
Doc: DS documentation for S2
2020-06-28 09:42:02 +08:00
KonstantinKondrashov
49c9f69eae
esp32s2: Move some code after the stdout initialization
2020-06-17 13:40:42 +08:00
morris
9773f79e6e
intr_alloc: using isr version of critical section
2020-06-08 12:52:25 +08:00
Angus Gratton
baedfab382
Merge branch 'feature/dis_uart_dl_mode' into 'master'
...
feature: Disable UART download mode
Closes IDF-1386
See merge request espressif/esp-idf!8590
2020-05-29 14:09:54 +08:00
Angus Gratton
59f29cbca8
Merge branch 'feature/allow_rtc_memory_for_task_stacks' into 'master'
...
Add RTC Fast Memory to Dynamic Memory Pool
See merge request espressif/esp-idf!8390
2020-05-29 14:07:01 +08:00
Angus Gratton
f64ae4fa99
efuse: Add 'disable Download Mode' & ESP32-S2 'Secure Download Mode' functionality
2020-05-28 17:50:45 +10:00
jiangguangming
b25ccde45f
flash mmap: fix bug for cache2phys and phys2cache on esp32s2
2020-05-26 15:14:23 +08:00
Angus Gratton
084e170a8f
Merge branch 'refactor/esp_ipc' into 'master'
...
Split esp_ipc to a seaparate component
Closes IDF-1295
See merge request espressif/esp-idf!8520
2020-05-25 15:03:04 +08:00
Ivan Grokhotkov
948580d1a2
Merge branch 'gdb/bt_on_invalid_pc' into 'master'
...
gdb: Modify PC in case of invalid PC
See merge request espressif/esp-idf!8391
2020-05-19 16:44:07 +08:00
Darian Leung
11d96b39d0
esp_ipc: Move to new component
...
This commit moves esp_ipc into a separate component.
2020-05-18 16:51:45 +08:00
Mahavir Jain
18c1838587
esp32s2: add config option to place RTC data in fast RAM
2020-05-14 13:12:26 +00:00