NONOS 2.0.0 to 2.1.0

AgentSmithers
Posts: 34
Joined: Sat Apr 01, 2017 1:21 am

NONOS 2.0.0 to 2.1.0

Postby AgentSmithers » Sun Nov 26, 2017 11:33 am

Hi Everyone.
I am using the Wemos D1 Mini Pro and I came across the requirement to get PWM working. So I went into my main SDK directory and modified the Makefile adjusting it from VENDOR_SDK = 2.0.0 to VENDOR_SDK = 2.1.0 and BAM PWM started working perfect without my WD timer kicking off.. But then right when I did that my Wifi stoped working. It seems like everything is perfect but it is no longer hsoting an AP anymore, I then updated my make file back to 2.0.0 then did a clean and make on my project then Wifi starts working then my PWM kicks off a WDT error rebooting my chip. Any qlues? I can reproduce the issue swapping back and forth to make the Wifi or PWM stop working correctly.
Thank you everyone!

# Whether to merge SDK into Xtensa toolchain, producing standalone
# ESP8266 toolchain. Use 'n' if you want generic Xtensa toolchain
# which can be used with multiple SDK versions.
STANDALONE = y

# Directory to install toolchain to, by default inside current dir.
TOOLCHAIN = $(TOP)/xtensa-lx106-elf


# Vendor SDK version to install, see VENDOR_SDK_ZIP_* vars below
# for supported versions.
VENDOR_SDK = 2.0.0

.PHONY: crosstool-NG toolchain libhal libcirom sdk



TOP = $(PWD)
SHELL = /bin/bash
PATCH = patch -b -N
UNZIP = unzip -q -o
VENDOR_SDK_ZIP = $(VENDOR_SDK_ZIP_$(VENDOR_SDK))
VENDOR_SDK_DIR = $(VENDOR_SDK_DIR_$(VENDOR_SDK))

VENDOR_SDK_DIR_2.1.0-18-g61248df = ESP8266_NONOS_SDK-2.1.0-18-g61248df
VENDOR_SDK_ZIP_2.1.0 = ESP8266_NONOS_SDK-2.1.0.zip
VENDOR_SDK_DIR_2.1.0 = ESP8266_NONOS_SDK-2.1.0
VENDOR_SDK_ZIP_2.0.0 = ESP8266_NONOS_SDK_V2.0.0_16_08_10.zip
VENDOR_SDK_DIR_2.0.0 = ESP8266_NONOS_SDK_V2.0.0_16_08_10
VENDOR_SDK_ZIP_1.5.4 = ESP8266_NONOS_SDK_V1.5.4_16_05_20.zip
VENDOR_SDK_DIR_1.5.4 = ESP8266_NONOS_SDK_V1.5.4_16_05_20
VENDOR_SDK_ZIP_1.5.3 = ESP8266_NONOS_SDK_V1.5.3_16_04_18.zip
VENDOR_SDK_DIR_1.5.3 = ESP8266_NONOS_SDK_V1.5.3_16_04_18/ESP8266_NONOS_SDK
VENDOR_SDK_ZIP_1.5.2 = ESP8266_NONOS_SDK_V1.5.2_16_01_29.zip
VENDOR_SDK_DIR_1.5.2 = esp_iot_sdk_v1.5.2



*Update* It seems copying the files
libmain.a
libnet80211.a
Libpp.a
esp-open-sdk\lib to xtensa-lx106-elf\xtensa-lx106-elf\sysroot\usr\lib\ makes pwm work in the SDK but then breaks the wifi again as expected then reverting these files again makes wifi work but breaks pwm.

AgentSmithers
Posts: 34
Joined: Sat Apr 01, 2017 1:21 am

Re: NONOS 2.0.0 to 2.1.0

Postby AgentSmithers » Tue Dec 05, 2017 11:29 am

Any pointers would be awesome.
Thanks everyone!

Her Majesty
Posts: 231
Joined: Mon Oct 27, 2014 11:09 am

Re: NONOS 2.0.0 to 2.1.0

Postby Her Majesty » Tue Dec 05, 2017 4:28 pm

What a strange problem. Not sure if it can help, I think this is an example of both PWM and wifi are using. https://github.com/espressif/ESP8266_NONOS_SDK/blob/master/examples/IoT_Demo/user/user_light.c

AgentSmithers
Posts: 34
Joined: Sat Apr 01, 2017 1:21 am

Re: NONOS 2.0.0 to 2.1.0

Postby AgentSmithers » Wed Dec 06, 2017 2:11 am

Thanks, I also got a response from
https://github.com/espressif/ESP8266_NO ... /issues/57

It appears that's ESP_COCO was pointing at os_delay causing this bug. Any thought's on that. It seems very very weird why OS_DELAY in 2.1 would break Wifi Hosting on the new SDK vs working perfectly fine on 2.0?

eriksl
Posts: 154
Joined: Fri May 22, 2015 6:22 pm

Re: NONOS 2.0.0 to 2.1.0

Postby eriksl » Fri Jan 05, 2018 4:24 pm

If you make any delay long enough, wifi will break anyway. I don't think you should use them, use timers instead.

Who is online

Users browsing this forum: No registered users and 11 guests