From 77a7eb217ae36a1b243c7f370600615861c8afb3 Mon Sep 17 00:00:00 2001 From: Laukik Hase Date: Mon, 11 Dec 2023 10:21:27 +0530 Subject: [PATCH] fix(esp_hw_support): Fix different signed comparison in `esp_ptr_in_drom` - Closes https://github.com/espressif/esp-idf/pull/12720 --- components/soc/include/soc/soc_memory_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/soc/include/soc/soc_memory_types.h b/components/soc/include/soc/soc_memory_types.h index 915912d00b..5cc17a3e70 100644 --- a/components/soc/include/soc/soc_memory_types.h +++ b/components/soc/include/soc/soc_memory_types.h @@ -127,7 +127,7 @@ inline static bool IRAM_ATTR esp_ptr_in_iram(const void *p) { } inline static bool IRAM_ATTR esp_ptr_in_drom(const void *p) { - uint32_t drom_start_addr = SOC_DROM_LOW; + int32_t drom_start_addr = SOC_DROM_LOW; #if CONFIG_ESP32S3_DATA_CACHE_16KB /* For ESP32-S3, when the DCACHE size is set to 16 kB, the unused 48 kB is * added to the heap in 2 blocks of 32 kB (from 0x3FCF0000) and 16 kB