Chat freely about anything...

User avatar
By pvvx
#8422
alonewolfx2 wrote:just interest, why we need deepsleep on webserver :)
For tests. The entire Web is made for testing. This is not a finished product. This collection of tests and demo.
User avatar
By EadF
#9057 I'm having some issues with the 0.9.5 sdk.

The trouble seems to be the timer functions:
Code: Select allos_timer_disarm(&some_timer);
os_timer_setfn(&some_timer, (os_timer_func_t *)some_timerfunc, NULL);
os_timer_arm(&some_timer, 1000, 1);

The timers never fire, in 0.9.4 it they do.

I've built the https://github.com/pfalcon/esp-open-sdk toolchain and placed it under /opt/Espressif.

As an example i've used blinky: https://github.com/esp8266/source-code-examples. To make it compile i had to change the makefile like this:
Code: Select allindex 3340b12..d6c0ef9 100644
--- a/blinky/Makefile
+++ b/blinky/Makefile
@@ -15,7 +15,7 @@ FW_BASE               = firmware
 XTENSA_TOOLS_ROOT ?= /opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin
 
 # base directory of the ESP8266 SDK package, absolute
-SDK_BASE       ?= /opt/Espressif/ESP8266_SDK
+SDK_BASE       ?= /opt/Espressif/esp-open-sdk/sdk
 
 #Esptool.py path and port
 ESPTOOL                ?= esptool.py
@@ -53,9 +53,9 @@ FW_FILE_2     = 0x40000
 FW_FILE_2_ARGS = -es .irom0.text $@ -ec
 
 # select which tools to use as compiler, librarian and linker
-CC             := $(XTENSA_TOOLS_ROOT)/xtensa-lx106-elf-gcc
-AR             := $(XTENSA_TOOLS_ROOT)/xtensa-lx106-elf-ar
-LD             := $(XTENSA_TOOLS_ROOT)/xtensa-lx106-elf-gcc
+CC             := xtensa-lx106-elf-gcc
+AR             := xtensa-lx106-elf-ar
+LD             := xtensa-lx106-elf-gcc
 


Anything inside the timer will never be executed, everything inside user_init() executes.
Is there anything fundamentally different in how timers work in 0.9.5?
Is the entire makefile system different in 0.9.5?

If some kind soul could show me how to get blinky working in 0.9.5 i could get my small projects working again. They are all broken (in 0.9.5) the same way.

Im using command line 64bit Linux Mint 17.1