Search found 349 matches

by ESP_igrr
Thu Mar 30, 2017 5:40 am
Forum: General Discussion
Topic: RTC battery supply
Replies: 3
Views: 46

Re: RTC battery supply

You can connect both battery and main supply to the RTC via a couple of diodes (or a more complex switching circuit).
by ESP_igrr
Thu Mar 30, 2017 1:17 am
Forum: ESP32 SDK
Topic: Debugging on Mac with GDB w/o JTAG
Replies: 7
Views: 81

Re: Debugging on Mac with GDB w/o JTAG

Regarding invalid command: it should be target remote <port_name>, now you're missing 'remote' I think.
by ESP_igrr
Wed Mar 29, 2017 10:27 am
Forum: General Discussion
Topic: Low Rate WIFI Protocol LR
Replies: 12
Views: 547

Re: Low Rate WIFI Protocol LR

Well this is basically one function call... so not sure what kind of snippet you need, but here's a piece of one of my applications: void init_wifi(wifi_mode_t mode) { const uint8_t protocol = WIFI_PROTOCOL_LR; tcpip_adapter_init(); ESP_ERROR_CHECK( esp_event_loop_init(event_handler, NULL) ); wifi_i...
by ESP_igrr
Tue Mar 28, 2017 8:03 am
Forum: ESP32 HDK
Topic: RTC with 32.768 kHz crystal
Replies: 4
Views: 225

Re: RTC with 32.768 kHz crystal

This feature is planned, sorry that it's taking longer than expected.
by ESP_igrr
Tue Mar 28, 2017 3:20 am
Forum: General Discussion
Topic: nvs_set_str - max length of string
Replies: 3
Views: 41

Re: nvs_set_str - max length of string

If you make a dump of nvs partition using 'epstool.py read_flash' command, i can help check what you have in your nvs partition. The proposal about size calculation makes sense, but this is not how nvs works. One of the design principles of nvs is that there should be no possibility of data loss due...
by ESP_igrr
Tue Mar 28, 2017 1:10 am
Forum: ESP32 SDK
Topic: RTC / gettimeofday overflow
Replies: 2
Views: 45

Re: RTC / gettimeofday overflow

If you enable timekeeping using the FRC1+RTC, a 64 bit microsecond counter will be used for timekeeping. In deep sleep mode, the base value of the counter is saved into RTC controller scratchpad registers, and timekeeping continues using a 48 bit RTC slow clock (which counts at 150kHz). If you enabl...
by ESP_igrr
Mon Mar 27, 2017 6:21 pm
Forum: General Discussion
Topic: nvs_set_str - max length of string
Replies: 3
Views: 41

Re: nvs_set_str - max length of string

The maximum length of a single string value is 4000 bytes (including the zero terminator byte). The error you are getting indicates that there is not enough space left in the partition to fit such a key value pair. You may try increasing NVS partition size in the partition table by one sector (for d...
by ESP_igrr
Mon Mar 27, 2017 5:21 pm
Forum: ESP32 SDK
Topic: settimeofday hidden
Replies: 2
Views: 34

Re: settimeofday hidden

I can't reproduce this... __BSD_VISIBLE is set when compiling main.c from the template application and including <sys/time.h>. Please check if you happen to have _ANSI_SOURCE, _C99_SOURCE, _C11_SOURCE defined in your translation unit for some reason. If you don't have any of these, then you should g...
by ESP_igrr
Mon Mar 27, 2017 2:26 pm
Forum: ESP32 SDK
Topic: Allocated memory in RTC
Replies: 5
Views: 77

Re: Allocated memory in RTC

Yes, you should be able to use RTC_DATA_ATTR with struct instances.
by ESP_igrr
Mon Mar 27, 2017 12:13 pm
Forum: ESP32 SDK
Topic: ESP32 nvs_get_blob() help
Replies: 2
Views: 49

Re: ESP32 nvs_get_blob() help

I ran your code, and it prints the following: get_configuration_values() ssid:ESP32 err:0x1102 reqsize:0 get_configuration_values() pass:password err:0x1102 reqsize:0 Note that the error is 0x1102 (not 0x102), which is ESP_ERR_NVS_NOT_FOUND. Looking at the code, it makes sense, because 'nvs_set_blob...

Go to advanced search