Page 1 of 1

error with sdk 1.1.0

Posted: Mon May 25, 2015 1:08 pm
by alexchang
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

Re: error with sdk 1.1.0

Posted: Mon May 25, 2015 1:26 pm
by emt@starkais.com
我也遇到通用的问题。

Re: error with sdk 1.1.0

Posted: Mon May 25, 2015 3:25 pm
by tve
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

Posted: Tue May 26, 2015 11:05 am
by costaud
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

Posted: Tue May 26, 2015 3:19 pm
by alexchang
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!

Re: error with sdk 1.1.0

Posted: Tue Jun 02, 2015 10:40 am
by ESP_Faye
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 !

Re: error with sdk 1.1.0

Posted: Tue Jun 02, 2015 11:05 am
by costaud
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.