Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic_Ota example not working in ESP8266 #2630

Open
Asanga-Viraj opened this issue Mar 28, 2023 · 0 comments
Open

Basic_Ota example not working in ESP8266 #2630

Asanga-Viraj opened this issue Mar 28, 2023 · 0 comments

Comments

@Asanga-Viraj
Copy link

I tested Basic_Ota example in ESP8266. I commented RBOOT_TWO_ROMS in component.mk. Flashed the firmware to the ESP8266 and started Ota server in my PC using make otaserver command. Then did ota update via typing 'ota' on serial terminal when ESP8266 boot on rom0. Then set the settings to run on rom1. It worked successfully.

If I do ota updated when boot on rom1, the ESP8266 crashes. The output is below.

3ffffe20: 4022c8cc 3fff0ba0 3ffe8a0c 00000000
3ffffe30: 40214851 3fff0ba0 00000000 3ffeb116
3ffffe40: 4021dae4 015a954b 401059ae 3fff13f8
03ffffe50: 3fff11a0 600011f0 3fff13f8 00000000
x3ffffe60: 3fff11a0 3fff0ba0 00000000 4024580b
3ffffe70: 402066e9 3ffea3f8 015a954b 3ffea404
43ffffe80: 00000000 2c9f0300 4000050c 00000000
023ffffe90: 3fffc278 401056c0 3fffc200 00000022
2c3ffffea0: 40000000 06bb2e5a 3fffc250 4000050c
8c3ffffeb0: 3ffeec8c 3ffeec88 00000582 3fff13f8
c3ffffec0: 3ffeecd0 3fff13f8 3fff0ba0 40245870
3ffffed0: 3ffeecd0 3ffeecc0 3ffeecbc 4021cf9c
3ffffee0: 9300960a 0000056e 00001050 00000010
:3ffffef0: 00000000 3fff0b90 00000184 4021dc78
3fffff00: 3ffe0000 00000024 00000008 3ffeb0ee
3fffff10: 3fff0ba0 3ffeec88 3ffeec90 4021a86d
3fffff20: 00000014 00000000 bd08e8ae 3fff0fa0
p3fffff30: 00000000 3fff0ba0 0000001c 3ffeb0e0
pR3fffff40: 3fffdc80 3fff0ba0 3fff0fa0 4021a3cd
e3fffff50: 000005cc 3ffee4d0 00000000 0000000f
cy3fffff60: 0000001a 3fff0808 00000002 4022cc37
cl3fffff70: 3ffed5c8 3ffeb0b8 3fffdcc0 3ffe9bc0
eR3fffff80: 4022cbaa 3ffed5c8 00000000 3fff1010
xP3fffff90: 3fffdc80 00000000 3fff0ba0 40218f7b
kt3fffffa0: 40000f49 3fffdab0 01000081 40000f49 at /home/xcg/workspace/debug/esp8266_nonos_sdk_core_20180510/app/pp/pp.c:768
0x40214851: system_pp_recycle_rx_pkt at ??:?
0x4021dae4: pbuf_free at c:/tools/Sming/Sming/Arch/Esp8266/Components/esp-open-lwip/esp-open-lwip/lwip/core/pbuf.c:752
0x401059ae: wDev_ProcessFiq at /home/xcg/workspace/debug/esp8266_nonos_sdk_core_20180510/app/pp/wdev.c:1187
0x4024580b: TcpConnection::internalOnReceive(pbuf*, signed char) at c:/tools/Sming/Sming/Components/Network/src/Network/TcpConnection.cpp:489
0x402066e9: ieee80211_parse_beacon at ??:?
0x4000050c: ?? ??:0
0x401056c0: wDev_ProcessFiq at /home/xcg/workspace/debug/esp8266_nonos_sdk_core_20180510/app/pp/wdev.c:1072
0x40000000: ?? ??:0
0x4000050c: ?? ??:0
0x40245870: operator() at c:/tools/Sming/Sming/Components/Network/src/Network/TcpConnection.cpp:329
(inlined by) _FUN at c:/tools/Sming/Sming/Components/Network/src/Network/TcpConnection.cpp:331
0x4021cf9c: tcp_input at c:/tools/Sming/Sming/Arch/Esp8266/Components/esp-open-lwip/esp-open-lwip/lwip/core/tcp_in.c:394 (discriminator 1)
0x4021dc78: pbuf_alloc at c:/tools/Sming/Sming/Arch/Esp8266/Components/esp-open-lwip/esp-open-lwip/lwip/core/pbuf.c:389
0x4021a86d: ip_input at c:/tools/Sming/Sming/Arch/Esp8266/Components/esp-open-lwip/esp-open-lwip/lwip/core/ipv4/ip.c:559
0x4021a3cd: ethernet_input at c:/tools/Sming/Sming/Arch/Esp8266/Components/esp-open-lwip/esp-open-lwip/lwip/netif/etharp.c:1379
0x4022cc37: ppRxPkt at /home/xcg/workspace/debug/esp8266_nonos_sdk_core_20180510/app/pp/pp.c:1086
0x4022cbaa: ppRxPkt at /home/xcg/workspace/debug/esp8266_nonos_sdk_core_20180510/app/pp/pp.c:1086
0x40218f7b: ets_snprintf at ??:?

Another issue. Then I set ESP to run in rom0. When I change some parts of the example code (like adding serial print), recompile and restart the otaserver. The ESP8266 does the ota update successfully, but during restart, it runs until boot rom check (rom0 or rom1 to start), them crashes.

rBoot v1.4.2 - [email protected]
Flash Size: 32 Mbit
Flash Mode: DIO
Flash Speed: 40 MHz
Found 'rom0' @ 0x00002000, size 0x000f8000, subtype 0x10
Found 'rom1' @ 0x00102000, size 0x000f8000, subtype 0x11
Booting rom 1 at 102000, load addr 14fbd0.

Can you help me with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant