Search found 41 matches

by 0xffff
Mon Jul 16, 2018 7:15 pm
Forum: General Discussion
Topic: [Newbie] How to interpret an exception
Replies: 3
Views: 4891

Re: [Newbie] How to interpret an exception

Very helpful. Thanks.
by 0xffff
Mon Jul 16, 2018 1:25 am
Forum: General Discussion
Topic: [Newbie] How to interpret an exception
Replies: 3
Views: 4891

[Newbie] How to interpret an exception

Hi, In a typical exception I get a register dump and a backtrace: [2018-07-15T22:44:59.513] [ALL] USB - Guru Meditation Error of type LoadProhibited occurred on core 0. Exception was unhandled. [2018-07-15T22:44:59.518] [ALL] USB - Register dump: [2018-07-15T22:44:59.530] [ALL] USB - PC : 0x401461dd...
by 0xffff
Mon Jul 16, 2018 12:57 am
Forum: General Discussion
Topic: esp_vfs_spiffs_register causing TWDT panic?
Replies: 4
Views: 6083

Re: esp_vfs_spiffs_register causing TWDT panic?

Great idea. Thanks!
by 0xffff
Thu Jul 12, 2018 11:50 pm
Forum: General Discussion
Topic: Global boolean vs EventGroup bit
Replies: 4
Views: 5624

Global boolean vs EventGroup bit

I'm curious about the benefits of using EventGroup bits for event notification (not task synchronization) compared to a global. For example, task A can set a global boolean, which is checked by task B in a loop with task Delay: // task A sets the marker bool marker; function setMarker() { marker = t...
by 0xffff
Thu Jul 12, 2018 3:23 pm
Forum: General Discussion
Topic: esp_vfs_spiffs_register causing TWDT panic?
Replies: 4
Views: 6083

Re: esp_vfs_spiffs_register causing TWDT panic?

Yes, if I turn off CPU0 IDLE task checking it works ok because after about 10 seconds the spiffs are formatted. However, it would be nice to have Idle task checking enabled and still be able to format spiffs if mount fails.
by 0xffff
Thu Jul 12, 2018 6:34 am
Forum: General Discussion
Topic: esp_vfs_spiffs_register causing TWDT panic?
Replies: 4
Views: 6083

esp_vfs_spiffs_register causing TWDT panic?

Hi, I have some code to mount the spiffs: bool mount_spiffs() { // fill out spiffs config object esp_vfs_spiffs_conf_t conf; conf.base_path = "/spiffs"; conf.partition_label = NULL; conf.max_files = 5; conf.format_if_mount_failed = true; esp_err_t ret = esp_vfs_spiffs_register( &conf ); if( ret != E...
by 0xffff
Thu Jul 12, 2018 6:26 am
Forum: General Discussion
Topic: Detect if new software flashed
Replies: 5
Views: 6080

Re: Detect if new software flashed

Thanks, sounds like until 3.2 easiest thing is to save a build/version number to nvs and then check upon boot.
by 0xffff
Wed Jul 11, 2018 5:47 pm
Forum: General Discussion
Topic: Detect if new software flashed
Replies: 5
Views: 6080

Detect if new software flashed

Hi, Is there a way to detect if new software has been flashed to the system? That is, upon restart, I would like to check if this is brand new software, and if so, take certain actions. I think I can save some kind of build number to nv ram, and then check on boot if the build number is the same as ...
by 0xffff
Tue Jul 03, 2018 7:01 am
Forum: General Discussion
Topic: assertion failures in lwip stack
Replies: 1
Views: 3095

assertion failures in lwip stack

Hi, I have seen several assertion-related crashes/reboots in my logs (that does both http and mqtt), generally in low-connectivity environments that require mqtt reconnects. For example: assertion "sock->select_waiting > 0" failed: file "/dev/Firmware/esp-idf/components/lwip/api/sockets.c", line 174...
by 0xffff
Tue Jun 19, 2018 8:14 pm
Forum: General Discussion
Topic: time() drift backwards after s/w reset
Replies: 2
Views: 3875

Re: time() drift backwards after s/w reset

Thanks - looks to be same thing we're grappling with. Will try the RTC-only scenario and see how it goes. Much appreciated.