Skip to content

Commit 2fbbcc6

Browse files
committed
feat(ulp): updated to reflect eco2 ulp changes
1 parent f66a750 commit 2fbbcc6

File tree

7 files changed

+22
-8
lines changed

7 files changed

+22
-8
lines changed

components/soc/esp32c5/include/soc/Kconfig.soc_caps.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,3 +1606,7 @@ config SOC_LP_CORE_SINGLE_INTERRUPT_VECTOR
16061606
config SOC_LP_CORE_SUPPORT_ETM
16071607
bool
16081608
default y
1609+
1610+
config SOC_LP_CORE_SUPPORT_STORE_LOAD_EXCEPTIONS
1611+
bool
1612+
default y

components/soc/esp32c5/include/soc/soc_caps.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,5 +670,6 @@
670670
// #define SOC_PHY_COMBO_MODULE (1) /*!< Support Wi-Fi, BLE and 15.4*/
671671

672672
/*------------------------------------- ULP CAPS -------------------------------------*/
673-
#define SOC_LP_CORE_SINGLE_INTERRUPT_VECTOR (1) /*!< LP Core interrupts all map to a single entry in vector table */
674-
#define SOC_LP_CORE_SUPPORT_ETM (1) /*!< LP Core supports ETM */
673+
#define SOC_LP_CORE_SINGLE_INTERRUPT_VECTOR (1) /*!< LP Core interrupts all map to a single entry in vector table */
674+
#define SOC_LP_CORE_SUPPORT_ETM (1) /*!< LP Core supports ETM */
675+
#define SOC_LP_CORE_SUPPORT_STORE_LOAD_EXCEPTIONS (1) /*!< LP Core will raise exceptions if accessing invalid addresses */

components/soc/esp32p4/include/soc/Kconfig.soc_caps.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2190,3 +2190,7 @@ config SOC_LP_CORE_SUPPORT_LP_ADC
21902190
config SOC_LP_CORE_SUPPORT_LP_VAD
21912191
bool
21922192
default y
2193+
2194+
config SOC_LP_CORE_SUPPORT_STORE_LOAD_EXCEPTIONS
2195+
bool
2196+
default y

components/soc/esp32p4/include/soc/soc_caps.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,7 @@
810810
#define SOC_I3C_MASTER_COMMAND_TABLE_NUM (12)
811811

812812
/*------------------------------------- ULP CAPS -------------------------------------*/
813-
#define SOC_LP_CORE_SUPPORT_ETM (1) /*!< LP Core supports ETM */
814-
#define SOC_LP_CORE_SUPPORT_LP_ADC (1) /*!< LP ADC can be accessed from the LP-Core */
815-
#define SOC_LP_CORE_SUPPORT_LP_VAD (1) /*!< LP VAD can be accessed from the LP-Core */
813+
#define SOC_LP_CORE_SUPPORT_ETM (1) /*!< LP Core supports ETM */
814+
#define SOC_LP_CORE_SUPPORT_LP_ADC (1) /*!< LP ADC can be accessed from the LP-Core */
815+
#define SOC_LP_CORE_SUPPORT_LP_VAD (1) /*!< LP VAD can be accessed from the LP-Core */
816+
#define SOC_LP_CORE_SUPPORT_STORE_LOAD_EXCEPTIONS (1) /*!< LP Core will raise exceptions if accessing invalid addresses */

components/ulp/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ menu "Ultra Low Power (ULP) Co-processor"
9797
depends on ULP_COPROC_TYPE_LP_CORE && SOC_ULP_LP_UART_SUPPORTED
9898
bool
9999
prompt "Enable panic handler which outputs over LP UART"
100-
default "y" if IDF_TARGET_ESP32P4
100+
default "y" if SOC_LP_CORE_SUPPORT_STORE_LOAD_EXCEPTIONS
101101
help
102102
Set this option to enable panic handler functionality. If this option is
103103
enabled then the LP Core will output a panic dump over LP UART,

examples/system/.build-test-rules.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ examples/system/ulp/lp_core/build_system:
273273
examples/system/ulp/lp_core/debugging:
274274
enable:
275275
- if: SOC_LP_CORE_SUPPORTED == 1
276+
disable:
277+
- if: IDF_TARGET == "esp32c5"
278+
temporary: true
279+
reason: binary size too large TODO IDF-13063
276280
depends_components:
277281
- ulp
278282

examples/system/ulp/lp_core/debugging/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| Supported Targets | ESP32-C5 | ESP32-C6 | ESP32-P4 |
2-
| ----------------- | -------- | -------- | -------- |
1+
| Supported Targets | ESP32-C6 | ESP32-P4 |
2+
| ----------------- | -------- | -------- |
33

44
# LP Core Debugging Example
55

0 commit comments

Comments
 (0)