Giter Club home page Giter Club logo

Comments (2)

mihsu81 avatar mihsu81 commented on May 31, 2024

Looks like I had forgotten that i have to use firmware.ota2.elf instead of firmware.elf. 😁
Below is the correct log.

platformio device monitor
C:\Users\Bethayn-Dell\.platformio\packages\toolchain-gccarmnoneeabi\bin\arm-none-eabi-addr2line.exe

Please build project in debug configuration to get more details about an exception.
See https://docs.platformio.org/page/projectconf/build_configurations.html


--- Terminal on COM4 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, rtl_hard_fault_decoder, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
ROM:[V0.1]
FLASHRATE:4
BOOT TYPE:0 XTAL:40000000
IMG1 DATA[1128:10002000]
IMG1 ENTRY[8000521:100021ef]
IMG1 ENTER
CHIPID[000000f6]
read_mode idx:3, flash_speed idx:3
calibration_result:[1:25:13][1:19]
calibration_result:[2:25:13][1:19]
calibration_result:[3:0:0][ff:ff]
calibration_ok:[1:25:13]
FLASH CALIB[NEW OK]
OTA2 ADDR[8100000]
OTAx SELE[fffffffe]
OTA2 USE
OTA2 SIGN[35393138:31313738]
IMG2 DATA[0x8194b50:3868:0x10005000]
IMG2 SIGN[RTKWin(10005008)]
IMG2 ENTRY[0x10005000:0x8137229]
System_Init1
System_Init2
I [      0.000] main():54: - LibreTuya v0.10.0+sha.8a4392b.dirty on generic-rtl8710bx-4mb-980k, compiled at Nov 18 2022 23:07:08
I [      0.000] main():58: - Reset reason: 0
I [      0.003] open():81: mainTask: Preferences initialized
[I][logger:283]: Log initialized
[C][status_led:014]: Setting up Status LED...
[C][ota:473]: There have been 10 suspected unsuccessful boot attempts.
[D][lt.preferences:104]: Saving 1 preferences to flash...
[V][lt.preferences:115]: sync: key: 233825507, len: 4
[D][lt.preferences:133]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[E][ota:480]: Boot loop detected. Proceeding to safe mode.
[I][app:029]: Running through setup()...
[V][app:030]: Sorting components by setup priority...
[C][wifi:037]: Setting up WiFi...
[V][wifi_lt:034]: Enabling STA.
D [      0.378] mode():10: mainTask: WIFI: Mode changing 0 -> 1
I [      0.385] mode():24: mainTask: Free heap: 156936
I [      0.391] startWifiTask():109: mainTask: Free heap: 156936
I [      0.398] startWifiTask():111: mainTask: Free heap: 156704
I [      0.405] startWifiTask():114: mainTask: Free heap: 156704
I [      0.412] startWifiTask():116: mainTask: Free heap: 154568
I [      0.418] modePriv():18: mainTask: WIFI: Initializing LwIP
I [      0.426] modePriv():23: mainTask: Free heap: 150144
I [      0.661] wifi_indication():71: mainTask: Free heap: 102384
I [      0.668] modePriv():49: mainTask: Free heap: 102344
[V][wifi_lt:262]: Event: WiFi STA start
D [      0.684] setSleep():75: mainTask: WIFI: WiFi sleep mode 0
[D][wifi:388]: Starting scan...
I [      0.694] scanNetworks():42: mainTask: WIFI: Starting WiFi scan
ROM:[V0.1]
FLASHRATE:4
BOOT TYPE:0 XTAL:40000000
IMG1 DATA[1128:10002000]
IMG1 ENTRY[8000521:100021ef]
IMG1 ENTER
CHIPID[000000f6]
read_mode idx:3, flash_speed idx:3
calibration_result:[1:25:13][1:19]
calibration_result:[2:25:13][1:19]
calibration_result:[3:0:0][ff:ff]
calibration_ok:[1:25:13]
FLASH CALIB[NEW OK]
OTA2 ADDR[8100000]
OTAx SELE[fffffffe]
OTA2 USE
OTA2 SIGN[35393138:31313738]
IMG2 DATA[0x8194b50:3868:0x10005000]
IMG2 SIGN[RTKWin(10005008)]
IMG2 ENTRY[0x10005000:0x8137229]
System_Init1
System_Init2
I [      0.000] main():54: - LibreTuya v0.10.0+sha.8a4392b.dirty on generic-rtl8710bx-4mb-980k, compiled at Nov 18 2022 23:07:08
I [      0.000] main():58: - Reset reason: 0
I [      0.002] open():81: mainTask: Preferences initialized
[I][logger:283]: Log initialized
[C][status_led:014]: Setting up Status LED...
[C][ota:473]: There have been 0 suspected unsuccessful boot attempts.
[D][lt.preferences:104]: Saving 1 preferences to flash...
[V][lt.preferences:115]: sync: key: 233825507, len: 4
[D][lt.preferences:133]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[I][app:029]: Running through setup()...
[V][app:030]: Sorting components by setup priority...
[D][binary_sensor:034]: 'Plug EZVIZ Power Button': Sending initial state OFF
[C][switch.gpio:011]: Setting up GPIO Switch 'Plug EZVIZ'...
[D][switch:017]: 'Plug EZVIZ' Turning OFF.
[D][switch:037]: 'Plug EZVIZ': Sending state OFF
[D][light:035]: 'Plug EZVIZ Power LED' Setting:
[D][light:040]:   Color mode:
[D][switch:017]: 'Plug EZVIZ' Turning OFF.
[C][light:036]: Setting up light 'Plug EZVIZ Power LED'...
[D][light:035]: 'Plug EZVIZ Power LED' Setting:
[C][hlw8012:014]: Setting up HLW8012...
RTL8195A[HAL]: Hard Fault Error!!!!
RTL8195A[HAL]: R0 = 0x10003dc0
RTL8195A[HAL]: R1 = 0x10003d00
RTL8195A[HAL]: R2 = 0x1000
RTL8195A[HAL]: R3 = 0x0
RTL8195A[HAL]: R12 = 0x0
RTL8195A[HAL]: LR = 0x810a911
  0x810a911 in esphome::hlw8012::HLW8012Component::setup() at src/esphome/components/hlw8012/hlw8012.cpp:18
RTL8195A[HAL]: PC = 0x0
  0x0 in UART_GetRxFlag at C:/Users/Bethayn-Dell/.platformio/packages/framework-realtek-amb1/component/common/mbed/targets/hal/rtl8711b/serial_api.c:1499
      (inlined by) serial_recv_stream_dma_timeout at C:/Users/Bethayn-Dell/.platformio/packages/framework-realtek-amb1/component/common/mbed/targets/hal/rtl8711b/serial_api.c:1514
RTL8195A[HAL]: PSR = 0x0
RTL8195A[HAL]: BFAR = 0xe000ed38
RTL8195A[HAL]: CFSR = 0x20000
RTL8195A[HAL]: HFSR = 0x40000000
RTL8195A[HAL]: DFSR = 0x0
RTL8195A[HAL]: AFSR = 0x0
RTL8195A[HAL]: PriMask 0x0
RTL8195A[HAL]: BasePri 0x0
RTL8195A[HAL]: SVC priority: 0x00
RTL8195A[HAL]: PendSVC priority: 0xf0
RTL8195A[HAL]: Systick priority: 0xf0

from libretiny.

mihsu81 avatar mihsu81 commented on May 31, 2024

Erasing the whole flash, flashing an old EZVIZ backup with amebaz_image_tool and flashing again ESPHome LibreTuya fixed the issue. I must have messed something up during my experimentations trying to identify the GPIO pins for the relay, and HLW8012 IC.

from libretiny.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.