Search found 123 matches

by tve
Wed Sep 23, 2015 12:26 pm
Forum: ESP8266 SDK
Topic: [Resolved]wifi_fpm_do_sleep crashes
Replies: 12
Views: 11985

Re: wifi_fpm_do_sleep crashes

I added wifi_fpm_set_sleep_type(LIGHT_SLEEP_T) just before wifi_fpm_do_sleep but it's still not working. Something I'm seeing is that after a reset I initialize fpm and it prints: force slp enable,type: 1 fpm open,type:1 0 and then the wifi eventually connects and I see: Wifi connected to ssid tve-h...
by tve
Wed Sep 23, 2015 11:58 am
Forum: ESP8266 SDK
Topic: [Resolved]wifi_fpm_do_sleep crashes
Replies: 12
Views: 11985

Re: wifi_fpm_do_sleep crashes

What you describe is almost exactly what I have: https://github.com/jeelabs/esp-pico/blob/master/core/main.c#L47-L54 // before entering light sleep we have to turn off wifi wifi_station_disconnect(); wifi_set_opmode_current(NULL_MODE); os_delay_us(1000); // print a message and sleep enough for the u...
by tve
Wed Sep 23, 2015 9:41 am
Forum: ESP8266 SDK
Topic: [Resolved]wifi_fpm_do_sleep crashes
Replies: 12
Views: 11985

Re: wifi_fpm_do_sleep crashes

@Espressif_Faye do you have enough info to try this out? Thanks much!
by tve
Wed Sep 23, 2015 9:38 am
Forum: ESP8266 SDK
Topic: SDK 1.4 issue os_zalloc
Replies: 3
Views: 3626

Re: SDK 1.4 issue os_zalloc

The prototype changed with the memory tracing in SDK 1.4
by tve
Tue Sep 22, 2015 3:23 pm
Forum: ESP8266 SDK
Topic: Determine direction of GPIO pin
Replies: 3
Views: 2506

Re: Determine direction of GPIO pin

I believe GPIO_PIN_CONFIG_GET in eagle_soc.h is your ticket. The config register can be read as well as written.
by tve
Tue Sep 22, 2015 2:30 pm
Forum: ESP8266 SDK
Topic: [Resolved]wifi_fpm_do_sleep crashes
Replies: 12
Views: 11985

Re: wifi_fpm_do_sleep crashes

I combined the relevant pieces into a minimalistic firmware that shows the crash. The source code is at https://github.com/jeelabs/esp-pico and can be compiled using esp-open-sdk and esp_iot_sdk_v1.4.0. The paths to these components are defined in the Makefile. There are only 3 .c files involved (in...
by tve
Mon Sep 21, 2015 3:19 pm
Forum: ESP8266 SDK
Topic: [Resolved]wifi_fpm_do_sleep crashes
Replies: 12
Views: 11985

Re: wifi_fpm_do_sleep crashes

I noticed that the example in the SDK docs disables wifi before calling sleep, so I added:

Code: Select all

wifi_station_disconnect();
wifi_set_opmode_current(NULL_MODE);

before the sleep, but that doesn't make a difference, it still crashes. I will have to simplify the code so you can make sense of it...
by tve
Mon Sep 21, 2015 3:06 pm
Forum: ESP8266 SDK
Topic: [Resolved]wifi_fpm_do_sleep crashes
Replies: 12
Views: 11985

[Resolved]wifi_fpm_do_sleep crashes

I'm trying to use the new wifi_fpm_* APIs and I see the system crash. The code is as follows: static void ICACHE_FLASH_ATTR prSleepTimerCb(void *arg) { os_printf("Sleep!\n"); os_delay_us(600); // time for "Sleep!" to be printed at 115200 baud int8_t err = wifi_fpm_do_sleep(1000*1...
by tve
Sat Sep 19, 2015 1:35 am
Forum: ESP8266 SDK
Topic: "Please use the newest esp_init_data_default.bin when burning."
Replies: 1
Views: 2452

Re: "Please use the newest esp_init_data_default.bin when burning."

+1

Can you please document the change so firmware that is updated over the air can make the change "manually"?
by tve
Fri Sep 18, 2015 11:53 pm
Forum: ESP8266 SDK
Topic: Power consumption problem when the AP is not avaliable
Replies: 33
Views: 20803

Re: Power consumption problem when the AP is not avaliable

Espressif: thanks for the new force-sleep functions in SDK 1.4! Looks pretty awesome!

Question: if I enable force-sleep (wifi_fpm_open) does that disable automatic sleep? Or is the force-sleep in addition to the automatic sleep managed by the SDK?

Go to advanced search