error with sdk 1.1.0

alexchang
Posts: 52
Joined: Mon Apr 06, 2015 5:47 pm

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

emt@starkais.com
Posts: 6
Joined: Wed Jan 14, 2015 8:14 pm

Re: error with sdk 1.1.0

Postby emt@starkais.com » Mon May 25, 2015 1:26 pm

我也遇到通用的问题。

tve
Posts: 123
Joined: Sun Feb 15, 2015 4:33 pm

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...

costaud
Posts: 138
Joined: Fri Oct 24, 2014 7:40 pm

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.

alexchang
Posts: 52
Joined: Mon Apr 06, 2015 5:47 pm

Re: error with sdk 1.1.0

Postby alexchang » Tue May 26, 2015 3:19 pm

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!

ESP_Faye
Posts: 1641
Joined: Mon Oct 27, 2014 11:08 am

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 !

costaud
Posts: 138
Joined: Fri Oct 24, 2014 7:40 pm

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: Google [Bot] and 7 guests