error with sdk 1.1.0
error with sdk 1.1.0
Postby alexchang » Mon May 25, 2015 1:08 pm
seems something removed?
/user/user_main.c:241: undefined reference to `wdt_feed'
build/app_app.a(gpio16.o): In function `gpio16_input_get':
Makefile:247: recipe for target 'build/app.out' failed
/driver/gpio16.c:97: undefined reference to `PIN_PULLDWN_DIS'
driver/gpio16.c:98: undefined reference to `PIN_PULLDWN_EN'
/driver/gpio16.c:98: undefined reference to `PIN_PULLDWN_DIS'
build/app_app.a(gpio16.o): In function `set_gpio_mode':
/driver/gpio16.c:112: undefined reference to `PIN_PULLDWN_EN'
/driver/gpio16.c:115: undefined reference to `PIN_PULLDWN_DIS'
collect2.exe: error: ld returned 1 exit status
/user/user_main.c:241: undefined reference to `wdt_feed'
build/app_app.a(gpio16.o): In function `gpio16_input_get':
Makefile:247: recipe for target 'build/app.out' failed
/driver/gpio16.c:97: undefined reference to `PIN_PULLDWN_DIS'
driver/gpio16.c:98: undefined reference to `PIN_PULLDWN_EN'
/driver/gpio16.c:98: undefined reference to `PIN_PULLDWN_DIS'
build/app_app.a(gpio16.o): In function `set_gpio_mode':
/driver/gpio16.c:112: undefined reference to `PIN_PULLDWN_EN'
/driver/gpio16.c:115: undefined reference to `PIN_PULLDWN_DIS'
collect2.exe: error: ld returned 1 exit status
Re: error with sdk 1.1.0
Postby tve » Mon May 25, 2015 3:25 pm
Yup... They got changed from PULLDWN to PULLUP2 without explanation. I suspect that there isn't an pull-down the chip... In the pin description XLS file the modes are described as reserved. Go figure...
Re: error with sdk 1.1.0
Postby costaud » Tue May 26, 2015 11:05 am
alexchang wrote:seems something removed?
/user/user_main.c:241: undefined reference to `wdt_feed'
build/app_app.a(gpio16.o): In function `gpio16_input_get':
Makefile:247: recipe for target 'build/app.out' failed
/driver/gpio16.c:97: undefined reference to `PIN_PULLDWN_DIS'
driver/gpio16.c:98: undefined reference to `PIN_PULLDWN_EN'
/driver/gpio16.c:98: undefined reference to `PIN_PULLDWN_DIS'
build/app_app.a(gpio16.o): In function `set_gpio_mode':
/driver/gpio16.c:112: undefined reference to `PIN_PULLDWN_EN'
/driver/gpio16.c:115: undefined reference to `PIN_PULLDWN_DIS'
collect2.exe: error: ld returned 1 exit status
Hi ,
Are you using the origional SDK?
It seems there is no PIN_PULLDWN-related register in GPIO16.h
Moreover, GPIO16 is totally different from the other GPIOs(GPIO0-GPIO15), please use the API to control GPIO16.
Note:
There are no pull-down functions on GPIO pad now, so we should never use these registers.
Add external resistance to pulldown the pin.
Re: error with sdk 1.1.0
Postby ESP_Faye » Tue Jun 02, 2015 10:40 am
Hi,
So sorry for the inconvenience,SDK_v1.1.0 release note updated http://bbs.espressif.com/viewtopic.php?f=5&t=481
ESP8266 GPIO don‘t support pull-down function,so related APIs are deleted.
Please add external resistance to pull-down the pin.
Thanks for your interest in ESP8266 !
So sorry for the inconvenience,SDK_v1.1.0 release note updated http://bbs.espressif.com/viewtopic.php?f=5&t=481
ESP8266 GPIO don‘t support pull-down function,so related APIs are deleted.
Please add external resistance to pull-down the pin.
Thanks for your interest in ESP8266 !
Re: error with sdk 1.1.0
Postby costaud » Tue Jun 02, 2015 11:05 am
alexchang wrote:Yes, I use original SDK 1.0, the gpio16.c is from some other sample project, I will try to remove gpio16.c first, thanks!
Would you please send me the "gpio16.c" you are using , support-product@espressif.com
GPIO16 should never have been using these registers.
Who is online
Users browsing this forum: No registered users and 8 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.