Search found 111 matches

by blubb
Fri Nov 16, 2018 10:22 pm
Forum: ESP8266 SDK
Topic: wifi_set_listen_interval is counter-productive
Replies: 3
Views: 199

Re: wifi_set_listen_interval is counter-productive

I recommend posting this kind of problem as an issue in github:
https://github.com/espressif/ESP8266_NONOS_SDK

The forum is not as active as it used to be... :(
by blubb
Fri Oct 19, 2018 6:06 am
Forum: ESP8266 SDK
Topic: Firmware upgrade
Replies: 6
Views: 945

Re: Firmware upgrade

Then use system_upgrade_userbin_check().
by blubb
Tue Oct 16, 2018 4:24 am
Forum: ESP8266 SDK
Topic: Firmware upgrade
Replies: 6
Views: 945

Re: Firmware upgrade

system_get_userbin_addr()
by blubb
Wed Sep 26, 2018 1:37 am
Forum: ESP8266 SDK
Topic: Disconnect Callback not triggered
Replies: 3
Views: 1121

Re: Disconnect Callback not triggered

You need to put "Connection: close\r\n" in your request.
by blubb
Wed Aug 15, 2018 8:11 am
Forum: ESP8266 SDK
Topic: LoadStoreErrorCause help
Replies: 5
Views: 1447

Re: LoadStoreErrorCause help

You have to read 4 bytes at once always. If you try to read only 1 or 2, a crash is normal behavior.
by blubb
Wed Aug 08, 2018 6:51 pm
Forum: ESP8266 SDK
Topic: Measuring Battery Life
Replies: 7
Views: 1629

Re: Measuring Battery Life

Then just write

system_get_vdd33() * 1000L / 1024

Same result (because 1 << 10 == 2 ^ 10 == 1024)
by blubb
Thu Aug 02, 2018 12:26 am
Forum: ESP8266 SDK
Topic: Measuring Battery Life
Replies: 7
Views: 1629

Re: Measuring Battery Life

system_get_vdd33() directly measures the supply voltage. No other pins are required for this. The SDK manual also says that TOUT pin needs to be suspended. I am using the very simple ESP-01 modules. I have no idea what they did to that pin, but it works just fine.
by blubb
Wed Aug 01, 2018 8:37 pm
Forum: ESP8266 SDK
Topic: Measuring Battery Life
Replies: 7
Views: 1629

Re: Measuring Battery Life

Why not just try it?

The 107th (0x6B) byte has to be 0xFF.
system_get_vdd33() returns the voltage in 1/1024 Volt.

So calculate system_get_vdd33() * 1000L >> 10 to get the battery voltage in mV.

It works here... (ESP-01)
by blubb
Wed Jul 11, 2018 5:12 pm
Forum: ESP8266 SDK
Topic: SPI Erase Sector OTA
Replies: 4
Views: 608

Re: SPI Erase Sector OTA

You can only write zeros (0) into a flash memory. If you need to put a one (1) into a bit that was zero before, you have to erase the whole block and after that zero out the bits that need to be zero. Erasing is a totally different from writing. That is the short summary of how all flash memories wo...
by blubb
Tue Jul 10, 2018 5:36 pm
Forum: ESP8266 SDK
Topic: SPI Erase Sector OTA
Replies: 4
Views: 608

Re: SPI Erase Sector OTA

That is for technical reasons. In flash memory only zeros can be written as single bits.
https://en.wikipedia.org/wiki/Flash_mem ... ck_erasure

Go to advanced search