Search found 4 matches

by ferni9
Tue Apr 07, 2020 7:51 pm
Forum: General Discussion
Topic: ESP32 & cJSON - Fail to create large cJSON arrays
Replies: 3
Views: 2503

Re: ESP32 & cJSON - Fail to create large cJSON arrays

You were completely right, I was running out of heap space, thank you!
Solution to this is quite straightforward though: create many smaller arrays and send/free them one by one, instead of a larger one ;)
by ferni9
Fri Apr 03, 2020 2:28 pm
Forum: General Discussion
Topic: ESP32 & cJSON - Fail to create large cJSON arrays
Replies: 3
Views: 2503

ESP32 & cJSON - Fail to create large cJSON arrays

Hello! I am filling a cJSON Array with AddNumberToObject() function. At first it works fine, but at some point the add_item_to_object() function within AddNumberToObject() begins to return NULL, thus not writing the number and producing afterwards the error "LoadProhibited", when dereferencing the n...
by ferni9
Sun Mar 29, 2020 9:56 am
Forum: General Discussion
Topic: ULP, pack two 16-bit measurements in one 32-bit register (r0,r1,r2,r3)
Replies: 2
Views: 852

ULP, pack two 16-bit measurements in one 32-bit register (r0,r1,r2,r3)

Hi, I am working on a project with ESP32 where I read 16-bit data from an IMU sensor in deep-sleep, hence with ULP. In order to downsize the data stored in RTC_SLOW_MEM region I would like to save 2 16-bit measurements in one 32-bit register (r0,r1,r2,r3), though I don't know if this is possible. An...

Go to advanced search