RTOS SDK : undefined reference to `system_upgrade_start'

User avatar
raspberrypidmx
Posts: 15
Joined: Wed Apr 27, 2016 6:15 am
Contact:

RTOS SDK : undefined reference to `system_upgrade_start'

Postby raspberrypidmx » Wed Jul 06, 2016 1:10 am

Hi,

I am using the latest RTOS SDK. My environment is setup correctly. I am able to compile, link and upload non-OTA firmware.

While compiling with the code "if (system_upgrade_start(update) == false)", I get the following error :

user_main.c:678: undefined reference to `system_upgrade_start'

There is no libupgrade provided with the RTOS SDK. Which other lib must be used?

Many thanks in advance,
Arjan

User avatar
pratik
Posts: 467
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: RTOS SDK : undefined reference to `system_upgrade_start'

Postby pratik » Wed Jul 06, 2016 1:37 am

Hello,

There is a file called "upgrade.h", which contains definitions related to what you are possibly trying to do. Let me know if adding that solves your problem.
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

User avatar
raspberrypidmx
Posts: 15
Joined: Wed Apr 27, 2016 6:15 am
Contact:

Re: RTOS SDK : undefined reference to `system_upgrade_start'

Postby raspberrypidmx » Wed Jul 06, 2016 1:44 am

Hi Pratik,

I have a link error and not a compile error. The <upgrade.h> is already included.

In which library is system_upgrade_start() provided?

Thanks, Arjan

Her Mary
Posts: 411
Joined: Mon Oct 27, 2014 11:09 am

Re: RTOS SDK : undefined reference to `system_upgrade_start'

Postby Her Mary » Mon Jul 11, 2016 9:42 am

You can refer to this demo of RTOS SDK. There is a folder "upgrade" https://github.com/espressif/ESP8266_IOT_PLATFORM

Who is online

Users browsing this forum: MSN [Bot] and 8 guests