Skip to content

Commit 5d98c90

Browse files
committed
Merge branch 'bugfix/lp_core_array_bounds_p4' into 'master'
fix(lp_core): fixed array-bound warning when compiling on P4 with -Os Closes IDFGH-16115 See merge request espressif/esp-idf!41583
2 parents adf05d9 + 140effd commit 5d98c90

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

components/ulp/lp_core/lp_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const static char* TAG = "ulp-lp-core";
3737

3838
#define WAKEUP_SOURCE_MAX_NUMBER 6
3939

40-
#define RESET_HANDLER_ADDR (intptr_t)(&_rtc_ulp_memory_start + 0x80 / 4) // Placed after the 0x80 byte long vector table
40+
#define RESET_HANDLER_ADDR ((intptr_t)&_rtc_ulp_memory_start + 0x80) // Placed after the 0x80 byte long vector table
4141

4242
/* Maps the flags defined in ulp_lp_core.h e.g. ULP_LP_CORE_WAKEUP_SOURCE_HP_CPU to their actual HW values */
4343
static uint32_t wakeup_src_sw_to_hw_flag_lookup[WAKEUP_SOURCE_MAX_NUMBER] = {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
2+
CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y
3+
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y

0 commit comments

Comments
 (0)