Closed brainstorm closed 1 year ago
Some more esp-insights errors related to logging when the rtc_store_read_complete error above is circumvented:
% idf.py build
Executing action: all (aliases: build)
Running ninja in directory /Users/rvalls/dev/personal/esp-modbus-power-meter/build
Executing "ninja all"...
[1/1] cd /Users/rvalls/dev/personal/esp-modbus-power-meter/build/bootloader/esp-i.../Users/rvalls/dev/personal/esp-modbus-power-meter/build/bootloader/bootloader.binBootloader binary size 0x4f70 bytes. 0x2090 bytes (29%) free.
[13/21] Building C object esp-idf/esp_insights/CMakeFiles/__idf_esp_insights.dir/src/esp_insights.c.objFAILED: esp-idf/esp_insights/CMakeFiles/__idf_esp_insights.dir/src/esp_insights.c.obj
/Users/rvalls/.espressif/tools/xtensa-esp32s2-elf/esp-2022r1-11.2.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.1-dev-1195-gfa5d0a3513\" -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/Users/rvalls/dev/personal/esp-modbus-power-meter/build/config -I/Users/rvalls/dev/personal/esp-modbus-power-meter/lib/esp-rainmaker/components/esp-insights/components/esp_insights/include -I/Users/rvalls/dev/personal/esp-modbus-power-meter/lib/esp-rainmaker/components/esp-insights/components/esp_insights/src -I/Users/rvalls/esp/esp-idf/components/newlib/platform_include -I/Users/rvalls/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/Users/rvalls/esp/esp-idf/components/freertos/esp_additions/include/freertos -I/Users/rvalls/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/Users/rvalls/esp/esp-idf/components/freertos/esp_additions/include -I/Users/rvalls/esp/esp-idf/components/esp_hw_support/include -I/Users/rvalls/esp/esp-idf/components/esp_hw_support/include/soc -I/Users/rvalls/esp/esp-idf/components/esp_hw_support/include/soc/esp32s2 -I/Users/rvalls/esp/esp-idf/components/esp_hw_support/port/esp32s2/. -I/Users/rvalls/esp/esp-idf/components/esp_hw_support/port/esp32s2/private_include -I/Users/rvalls/esp/esp-idf/components/heap/include -I/Users/rvalls/esp/esp-idf/components/log/include -I/Users/rvalls/esp/esp-idf/components/soc/include -I/Users/rvalls/esp/esp-idf/components/soc/esp32s2/. -I/Users/rvalls/esp/esp-idf/components/soc/esp32s2/include -I/Users/rvalls/esp/esp-idf/components/hal/esp32s2/include -I/Users/rvalls/esp/esp-idf/components/hal/include -I/Users/rvalls/esp/esp-idf/components/hal/platform_port/include -I/Users/rvalls/esp/esp-idf/components/esp_rom/include -I/Users/rvalls/esp/esp-idf/components/esp_rom/include/esp32s2 -I/Users/rvalls/esp/esp-idf/components/esp_rom/esp32s2 -I/Users/rvalls/esp/esp-idf/components/esp_common/include -I/Users/rvalls/esp/esp-idf/components/esp_system/include -I/Users/rvalls/esp/esp-idf/components/esp_system/port/soc -I/Users/rvalls/esp/esp-idf/components/esp_system/port/include/private -I/Users/rvalls/esp/esp-idf/components/xtensa/include -I/Users/rvalls/esp/esp-idf/components/xtensa/esp32s2/include -I/Users/rvalls/esp/esp-idf/components/lwip/include -I/Users/rvalls/esp/esp-idf/components/lwip/include/apps -I/Users/rvalls/esp/esp-idf/components/lwip/include/apps/sntp -I/Users/rvalls/esp/esp-idf/components/lwip/lwip/src/include -I/Users/rvalls/esp/esp-idf/components/lwip/port/esp32/include -I/Users/rvalls/esp/esp-idf/components/lwip/port/esp32/include/arch -I/Users/rvalls/dev/personal/esp-modbus-power-meter/lib/esp-rainmaker/components/esp-insights/components/esp_diagnostics/include -I/Users/rvalls/dev/personal/esp-modbus-power-meter/lib/esp-rainmaker/components/esp-insights/components/cbor/port/include -I/Users/rvalls/dev/personal/esp-modbus-power-meter/lib/esp-rainmaker/components/esp-insights/components/rmaker_common/include -I/Users/rvalls/esp/esp-idf/components/esp_event/include -I/Users/rvalls/esp/esp-idf/components/espcoredump/include -I/Users/rvalls/esp/esp-idf/components/espcoredump/include/port/xtensa -I/Users/rvalls/dev/personal/esp-modbus-power-meter/lib/esp-rainmaker/components/esp-insights/components/rtc_store/include -I/Users/rvalls/esp/esp-idf/components/nvs_flash/include -I/Users/rvalls/esp/esp-idf/components/spi_flash/include -I/Users/rvalls/esp/esp-idf/components/esp_timer/include -I/Users/rvalls/esp/esp-idf/components/esp_wifi/include -I/Users/rvalls/esp/esp-idf/components/esp_phy/include -I/Users/rvalls/esp/esp-idf/components/esp_phy/esp32s2/include -I/Users/rvalls/esp/esp-idf/components/esp_netif/include -mlongcalls -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Os -freorder-blocks -fmacro-prefix-map=/Users/rvalls/dev/personal/esp-modbus-power-meter=. -fmacro-prefix-map=/Users/rvalls/esp/esp-idf=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/esp_insights/CMakeFiles/__idf_esp_insights.dir/src/esp_insights.c.obj -MF esp-idf/esp_insights/CMakeFiles/__idf_esp_insights.dir/src/esp_insights.c.obj.d -o esp-idf/esp_insights/CMakeFiles/__idf_esp_insights.dir/src/esp_insights.c.obj -c /Users/rvalls/dev/personal/esp-modbus-power-meter/lib/esp-rainmaker/components/esp-insights/components/esp_insights/src/esp_insights.c
In file included from /Users/rvalls/dev/personal/esp-modbus-power-meter/lib/esp-rainmaker/components/esp-insights/components/esp_insights/src/esp_insights.c:15:
/Users/rvalls/dev/personal/esp-modbus-power-meter/lib/esp-rainmaker/components/esp-insights/components/esp_insights/src/esp_insights.c: In function 'rtc_store_event_handler':
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
| ^~~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:268:27: note: in expansion of macro 'LOG_COLOR'
268 | #define LOG_COLOR_E LOG_COLOR(LOG_COLOR_RED)
| ^~~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_E'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:410:86: note: in expansion of macro 'LOG_FORMAT'
410 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
| ^~~~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/Users/rvalls/dev/personal/esp-modbus-power-meter/lib/esp-rainmaker/components/esp-insights/components/esp_insights/src/esp_insights.c:501:13: note: in expansion of macro 'ESP_LOGI'
501 | ESP_LOGI(TAG, "Log write fail count: %d", s_insights_data.log_write_fail_cnt);
| ^~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
| ^~~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:269:27: note: in expansion of macro 'LOG_COLOR'
269 | #define LOG_COLOR_W LOG_COLOR(LOG_COLOR_BROWN)
| ^~~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_W'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:411:86: note: in expansion of macro 'LOG_FORMAT'
411 | else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
| ^~~~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/Users/rvalls/dev/personal/esp-modbus-power-meter/lib/esp-rainmaker/components/esp-insights/components/esp_insights/src/esp_insights.c:501:13: note: in expansion of macro 'ESP_LOGI'
501 | ESP_LOGI(TAG, "Log write fail count: %d", s_insights_data.log_write_fail_cnt);
| ^~~~~~~~
/Users/rvalls/dev/personal/esp-modbus-power-meter/lib/esp-rainmaker/components/esp-insights/components/esp_insights/src/esp_insights.c:501:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
501 | ESP_LOGI(TAG, "Log write fail count: %d", s_insights_data.log_write_fail_cnt);
| ^
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:282:59: note: in definition of macro 'LOG_FORMAT'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/Users/rvalls/dev/personal/esp-modbus-power-meter/lib/esp-rainmaker/components/esp-insights/components/esp_insights/src/esp_insights.c:501:13: note: in expansion of macro 'ESP_LOGI'
501 | ESP_LOGI(TAG, "Log write fail count: %d", s_insights_data.log_write_fail_cnt);
| ^~~~~~~~
/Users/rvalls/dev/personal/esp-modbus-power-meter/lib/esp-rainmaker/components/esp-insights/components/esp_insights/src/esp_insights.c:501:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
501 | ESP_LOGI(TAG, "Log write fail count: %d", s_insights_data.log_write_fail_cnt);
| ^
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:282:59: note: in definition of macro 'LOG_FORMAT'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/Users/rvalls/dev/personal/esp-modbus-power-meter/lib/esp-rainmaker/components/esp-insights/components/esp_insights/src/esp_insights.c:501:13: note: in expansion of macro 'ESP_LOGI'
501 | ESP_LOGI(TAG, "Log write fail count: %d", s_insights_data.log_write_fail_cnt);
| ^~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:265:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
265 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
| ^~~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:270:27: note: in expansion of macro 'LOG_COLOR'
270 | #define LOG_COLOR_I LOG_COLOR(LOG_COLOR_GREEN)
| ^~~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:282:37: note: in expansion of macro 'LOG_COLOR_I'
282 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:414:86: note: in expansion of macro 'LOG_FORMAT'
414 | else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
| ^~~~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:432:41: note: in expansion of macro 'ESP_LOG_LEVEL'
432 | if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
| ^~~~~~~~~~~~~
/Users/rvalls/esp/esp-idf/components/log/include/esp_log.h:342:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
342 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
/Users/rvalls/dev/personal/esp-modbus-power-meter/lib/esp-rainmaker/components/esp-insights/components/esp_insights/src/esp_insights.c:501:13: note: in expansion of macro 'ESP_LOGI'
501 | ESP_LOGI(TAG, "Log write fail count: %d", s_insights_data.log_write_fail_cnt);
| ^~~~~~~~
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
HINT: The issue is better to resolve by replacing format specifiers to 'PRI'-family macros (include <inttypes.h> header file).
ninja failed with exit code 1, output of the command is in the /Users/rvalls/dev/personal/esp-modbus-power-meter/build/log/idf_py_stderr_output_45669 and /Users/rvalls/dev/personal/esp-modbus-power-meter/build/log/idf_py_stdout_output_45669
After #if 0
-ing that too, seems like I'm out of the weeds, but it'd be nice to have those two properly fixed upstream ;)
@brainstorm thanks for reporting the issue.
The above logging error will be fixed quickly.
Below is the proper fix
ESP_LOGI(TAG, "Log write fail count: %"PRIu32, s_insights_data.log_write_fail_cnt);
For error from rtc_store
, unfortunately I am not able to re-produce this. Can you please check if you have updated your IDF release/v5.0
branch?
Can you please setup IDF5.0 tools in new terminal instead of in the one where release/v4.4 tools setup?
Thanks @vikramdattu
For error from
rtc_store
, unfortunately I am not able to re-produce this. Can you please check if you have updated your IDFrelease/v5.0
branch? Can you please setup IDF5.0 tools in new terminal instead of in the one where release/v4.4 tools setup?
I'm actually using master
, with commit fa5d0a351343b45ee06d221b7c29028672a4c3c2
, can you test it against HEAD?
@brainstorm I do not get error even with master! :(
Can you please help me with below patch? This should fix the issue for good. rtc_store_info.txt
Weird, I switched back to master and now that error does not appear :-S
Anyway, I've applied your patch and indeed solves the problem, thanks!
(base) rvalls@m1 esp-insights % patch -p1 < rtc_store_info.txt
patching file components/rtc_store/src/rtc_store.c
Hunk #3 succeeded at 417 (offset 4 lines).
Closing this one, push that patch of yours on main on this repo, please!
So... @vikramdattu, are you pushing that patch to main
? :)
@brainstorm It's already done internally. It shall make it's way to github today by EOD. Apologies for the delay.
@vikramdattu I believe there's still something off with those RTC routines from ESP Insights. I just got this compiling my project with your latest changes, here's my md5 just in case I'm not locally using the same code you are using?:
% md5sum lib/esp-rainmaker/components/esp-insights/components/rtc_store/src/rtc_store.c
9a31af0588331f90b1fe3600b3fb0395 lib/esp-rainmaker/components/esp-insights/components/rtc_store/src/rtc_store.c
and PlatformIO fails at compile time:
(...)
Compiling .pio/build/esp32-s2-saola-1/sdmmc/sdmmc_common.o
Archiving .pio/build/esp32-s2-saola-1/esp-idf/qrcode/libqrcode.a
Compiling .pio/build/esp32-s2-saola-1/sdmmc/sdmmc_init.o
Indexing .pio/build/esp32-s2-saola-1/esp-idf/qrcode/libqrcode.a
lib/esp-rainmaker/components/esp-insights/components/rtc_store/src/rtc_store.c: In function 'rtc_store_non_critical_data_write':
lib/esp-rainmaker/components/esp-insights/components/rtc_store/src/rtc_store.c:251:44: error: incompatible type for argument 1 of 'rtc_store_read_complete'
rtc_store_read_complete(s_priv_data.non_critical, sizeof(header) + header.len);
~~~~~~~~~~~^~~~~~~~~~~~~
lib/esp-rainmaker/components/esp-insights/components/rtc_store/src/rtc_store.c:121:50: note: expected 'rbuf_data_t *' {aka 'struct <anonymous> *'} but argument is of type 'rbuf_data_t' {aka 'struct <anonymous>'}
static void rtc_store_read_complete(rbuf_data_t *rbuf_data, size_t len)
~~~~~~~~~~~~~^~~~~~~~~
Compiling .pio/build/esp32-s2-saola-1/sdmmc/sdmmc_io.o
*** [.pio/build/esp32-s2-saola-1/lib/esp-rainmaker/components/esp-insights/components/rtc_store/src/rtc_store.o] Error 1
============================================================= [FAILED] Took 40.79 seconds =============================================================
With ESP-IDF 5.x it compiles fine, but there are quite a few runtime issues with it (see rtc_store_data_critical_data_write errors in white text):
The Resource allocation failure errors in red are unrelated and already reported in https://github.com/espressif/esp-modbus/issues/10.
Commenting the offending code for now locally, just in case somebody else is facing the same issues:
diff --git a/components/rtc_store/src/rtc_store.c b/components/rtc_store/src/rtc_store.c
index a744fae..75625ef 100644
--- a/components/rtc_store/src/rtc_store.c
+++ b/components/rtc_store/src/rtc_store.c
@@ -242,22 +242,22 @@ esp_err_t rtc_store_non_critical_data_write(const char *dg, void *data, size_t l
return ESP_FAIL;
}
-#if CONFIG_RTC_STORE_OVERWRITE_NON_CRITICAL_DATA
- data_store_info_t *info = (data_store_info_t *) &s_priv_data.non_critical.store->info;
- /* Make enough room for the item */
- while (data_store_get_free(s_priv_data.non_critical.store) < req_free) {
- uint8_t *read_ptr = s_priv_data.non_critical.store->buf + info->read_offset;
- memcpy(&header, read_ptr, sizeof(header));
- rtc_store_read_complete(s_priv_data.non_critical, sizeof(header) + header.len);
- }
-#else // just check if we have enough space to write the item
- curr_free = data_store_get_free(s_priv_data.non_critical.store);
- if (curr_free < req_free) {
- xSemaphoreGive(s_priv_data.non_critical.lock);
- esp_event_post(RTC_STORE_EVENT, RTC_STORE_EVENT_NON_CRITICAL_DATA_LOW_MEM, NULL, 0, 0);
- return ESP_ERR_NO_MEM;
- }
-#endif
+// #if CONFIG_RTC_STORE_OVERWRITE_NON_CRITICAL_DATA
+// data_store_info_t *info = (data_store_info_t *) &s_priv_data.non_critical.store->info;
+// /* Make enough room for the item */
+// while (data_store_get_free(s_priv_data.non_critical.store) < req_free) {
+// uint8_t *read_ptr = s_priv_data.non_critical.store->buf + info->read_offset;
+// memcpy(&header, read_ptr, sizeof(header));
+// rtc_store_read_complete(s_priv_data.non_critical, sizeof(header) + header.len);
+// }
+// #else // just check if we have enough space to write the item
+// curr_free = data_store_get_free(s_priv_data.non_critical.store);
+// if (curr_free < req_free) {
+// xSemaphoreGive(s_priv_data.non_critical.lock);
+// esp_event_post(RTC_STORE_EVENT, RTC_STORE_EVENT_NON_CRITICAL_DATA_LOW_MEM, NULL, 0, 0);
+// return ESP_ERR_NO_MEM;
+// }
+// #endif
Unsure about side effects this might have, but I need to keep moving for now ;)
Hi @brainstorm this too has been addressed and will be available.
The change below should fix it: -rtc_store_read_complete(s_priv_data.non_critical, sizeof(header) + header.len); +rtc_store_read_complete(&s_priv_data.non_critical, sizeof(header) + header.len);
Hi @brainstorm this too has been addressed and will be available.
The change below should fix it: -rtc_store_read_complete(s_priv_data.non_critical, sizeof(header) + header.len); +rtc_store_read_complete(&s_priv_data.non_critical, sizeof(header) + header.len);
Thanks @vikramdattu! Let me know when it's upstreamed and I'll pull the changes in & close this issue for good ;)
Hi @brainstorm missed to update on this. The fix is now a part of main branch. You you haven't yet, you may go ahead and pull the main branch.
Hello,
I'm refreshing a ESP-IDF 4.4 project of mine towards ESP-IDF 5.x:
https://github.com/brainstorm/esp-modbus-power-meter
But I'm encountering some issues with
rtc_store
component inesp-insights
, is this a known issue?:Full
idf.py build
log: