Does esp8266 support FOTA form NONOS to FreeRTOS

waies
Posts: 2
Joined: Mon Mar 05, 2018 5:52 pm

Does esp8266 support FOTA form NONOS to FreeRTOS

Postby waies » Mon Mar 05, 2018 6:12 pm

Does esp8266 support FOTA form NONOS(2.1.0) to FreeRTOS(1.5.0)?
Our products' firmware based on NONOS SDK before, now we want to use the FreeRTOS SDK. So we need to do a ota from nonos to freertos. but log shows :

upgrade file download start.
please check the bin file
totallen = 2687
totallen = 4147
upgrade_check
user_esp_platform_upgrade_failed.

jsut like https://bbs.espressif.com/viewtopic.php?t=1546,
I tried to modify Makefile and gen_appbin.py . now compiled success ,but it does not work when I do ota again.the same problem.

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

Re: Does esp8266 support FOTA form NONOS to FreeRTOS

Postby AgentSmithers » Tue Mar 06, 2018 2:11 am

waies wrote:Does esp8266 support FOTA form NONOS(2.1.0) to FreeRTOS(1.5.0)?
Our products' firmware based on NONOS SDK before, now we want to use the FreeRTOS SDK. So we need to do a ota from nonos to freertos. but log shows :

upgrade file download start.
please check the bin file
totallen = 2687
totallen = 4147
upgrade_check
user_esp_platform_upgrade_failed.

jsut like https://bbs.espressif.com/viewtopic.php?t=1546,
I tried to modify Makefile and gen_appbin.py . now compiled success ,but it does not work when I do ota again.the same problem.


Good question, I myself don't use RTOS but I assume it would boil down to the offset's of booting the .bin files, Are even the esp default init the same?

waies
Posts: 2
Joined: Mon Mar 05, 2018 5:52 pm

Re: Does esp8266 support FOTA form NONOS to FreeRTOS

Postby waies » Tue Mar 06, 2018 11:13 am

It works now.

216 # data_bin = struct.pack('<BBBBI',BIN_MAGIC_IROM,4,byte2,byte3,long(entry_addr,16))
217 data_bin = struct.pack('<BBBBI',BIN_MAGIC_IROM,4,0,app,long(entry_addr,16))

I forgot to modify line 216 and line 217 in esp_genapp.py yesterday!

Who is online

Users browsing this forum: Antonioaka, Lucifer3502 and 9 guests