Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie taminsmod wrote:Re-reverted changes, but set malloc mode to 0
https://github.com/NonPIayerCharacter/OpenBK7231T_App/actions/runs/15872052684
Interesting what would OTA say now
insmod wrote:If XR872 OTA is verified to be working, i'll open a pull request.
button state change: 1 --> 0
button state change: 0 --> 1
button state change: 1 --> 0
button state change: 0 --> 1
button state change: 1 --> 0
button state change: 0 --> 1
button state change: 1 --> 0
button state change: 0 --> 1
[bl ERR] main():629, build:20:38:52
use default flash chip mJedec 0x0
[FD I]: mode: 0x4, freq: 48000000Hz, drv: 0
[0;32;31m-------------->unknow flash ID 0x1440C8[m
PasswoPMA: mode select:e
wlan information ===================================================
firmware:
version : R-XR_C10.08.52.64_01.80 Jul 6 2019 20:05:10-P01.46-R
buffer : 12
driver:
version : XR_V02.05
====================================================================
PMA: wlan mode:a
platform information ===============================================
XRADIO Skylark SDK 1.2.0 Oct 17 2024 10:39:50
sram heap space [0x21fc70, 0x25fc00), total size 262032 Bytes
cpu clock 240000000 Hz
HF clock 40000000 Hz
sdk option:
XIP : enable
INT LF OSC : enable
mac address:
efuse : 18:9e:2d:81:89:ce
in use : 38:0a:8d:47:2b:71
====================================================================
StartupState:0
[0;32;31m<-500119_192428 rt_res.c:111>[mres error filenum:-34603499 001E0000
gpio_grp=0,gpio_bit=21
led drv init
check vol
[mthread]Create task:vbat(stack:2048),prio:3,ret:0
XXXX task:vbat
[ERR] __mci_irq_handler,575 raw_int:100 err!
[ERR] SDC err, cmd 8, RTO
[ERR] sdc 402 abnormal status: RespErr
[ERR] int err 100
[ERR] __mci_irq_handler,575 raw_int:100 err!
[ERR] SDC err, cmd 55, RTO
[ERR] sdc 402 abnormal status: RespErr
[ERR] int err 100
[ERR] __mci_irq_handler,575 raw_int:100 err!
[ERR] SDC err, cmd 55, RTO
[ERR] sdc 402 abnormal status: RespErr
[ERR] int err 100
[ERR] __mci_irq_handler,575 raw_int:100 err!
[ERR] SDC err, cmd 55, RTO
[ERR] sdc 402 abnormal status: RespErr
[ERR] int err 100
[ERR] __mci_irq_handler,575 raw_int:100 err!
[ERR] SDC err, cmd 55, RTO
[ERR] sdc 402 abnormal status: RespErr
[ERR] int err 100
[FS ERR] fs_ctrl_mount():102, mmc scan fail
[0;32;31m<-500119_192428 rt_sd_dev.c:264>[mSD File System initialzation failed! errno
[mthread]Create task:sdcardth(stack:2048),prio:3,ret:0
XXXX task:sdcardth
err cmd:use_fw_rate_policy
vif=0, rts_threshold = 3000
ssid is NULL. AP
<wifi>lpdtim:10, lplis:10
[mthread]Create task:wifitask(stack:4096),prio:3,ret:0
XXXX task:wifitask
[XRADIO_INTERNAL_CODEC] AMIC set volume Level-[7]
[XRADIO_INTERNAL_CODEC] AMIC set volume Gain-[39]
wifi task run
rtuid:BATG-062640-SESLP1N,RDRKOI
en1: CTRL-EVENT-TERMINATING
WAR join_status:0
mean_vol=4200
wlan information ===================================================
firmware:
version : R-XR_C10.08.52.64_01.80 Jul 6 2019 20:05:10-P01.46-R
buffer : 12
driver:
version : XR_V02.05
====================================================================
interface name: en1
Using interface en1 with hwaddr 38:0a:8d:47:2b:71 and ssid "AP-XRADIO"
[XRADIO_INTERNAL_CODEC] AMIC set volume Gain-[39]
[XRADIO_INTERNAL_CODEC] LINEIN set volume Level-[1]
[XRADIO_INTERNAL_CODEC] AUDIO_IN_DEV_ALL set volume Gain-[0]
[XRADIO_INTERNAL_CODEC] Route(cap): amic Enable
en1: interface state UNINITIALIZED->ENABLED
en1: AP-ENABLED
en1: AP-DISABLED
[net INF] msg <wlan connected>
[net INF] netif is link up
[net INF] bring up netif
[net INF] netif (IPv4) is up
[net INF] address: 192.168.238.1
[net INF] gateway: 192.168.238.1
[net INF] netmask: 255.255.255.0
WLAN CONNECTED
err cmd:use_fw_rate_policy
vif=0, rts_threshold = 3000
[net INF] msg <network up>
NETWORK UP
vif0, AP/GO mode THROTTLE=38
<L>Cmutex:0
<L>Cmutex:0x22a0e8
<L>lwip_socket(PF_INET, UDP, 17) = SKT_0
en1: interface state ENABLED->DISABLED
[net INF] msg <wlan disconnected>
[net INF] netif is link down
WLAN DISCONNECTED
<L>Cmutex:0
<L>Cmutex:0x226f78
<L>lwip_socket(PF_INET, UDP, 17) = SKT_1
Using interface en1 with hwaddr 38:0a:8d:47:2b:71 and ssid "BATG062640MXKCF"
[0;32;31m<010701_000000 rtb_av_api.c:872>[mdetect sensor error
OV9660 get chip id wrong 0xff
OV9660 Init error!!
[CAMERA ERR] HAL_CAMERA_Init():373, sensor config fail
[0;32;31m<010701_000001 rtb_av_api.c:1284>[mHAL_CAMERA_Init error, -1
[0;32;31m<010701_000001 rtb_av_api.c:2024>[mmedia not init
[mthread]Create task:thdImage(stack:2048),prio:3,ret:0
XXXX task:thdImage
[mthread]Create task:RT_REC(stack:2048),prio:3,ret:0
XXXX task:RT_REC
[mthread]Create task:MD_TH(stack:2048),prio:3,ret:0
XXXX task:MD_TH
[mthread]Create task:p2plis(stack:10240),prio:3,ret:0
XXXX task:p2plis
[mthread]Create task:CameraTest(stack:2048),prio:3,ret:0
XXXX task:CameraTest
[mthread]Create task:NetCheck(stack:2048),prio:3,ret:0
XXXX task:NetCheck
set br:-1--1
en1: interface state DISABLED->ENABLED
en1: AP-ENABLED
[net INF] msg <wlan connected>
[UMAC WARN] net80211_linkoutput():202, ifnet 0x216a84 not valid for tx!
[net INF] netif is link up
[net INF] netif is already up
WLAN CONNECTED
err cmd:use_fw_rate_policy
vif=0, rts_threshold = 3000
/camera_test.txt does not exist!
[mthread]vvvthread CameraTest, tid:2184488 EXIT
lednum:0
--drvled_flash :(0,1,5,5,1,5,5)
[mthread]vvvthread NetCheck, tid:2183528 EXIT
set ircut color
vif0, AP/GO mode THROTTLE=38
{0xC8,0x06},
[mthread]vvvthread thdImage, tid:2184348 EXIT
<RTW>WiFi ap start ok:BATG062640MXKCF, 0, 11
wifi task exit
[mthread]vvvthread wifitask, tid:2184992 EXIT
platform information ===============================================
XRADIO Skylark SDK 1.2.2 Jun 28 2025 11:33:12
sram heap space [0x21ea68, 0x26dc00), total size 323992 Bytes
cpu clock 240000000 Hz
HF clock 40000000 Hz
sdk option:
XIP : enable
INT LF OSC : enable
mac address:
efuse : 18:9e:2d:81:89:ce
in use : 18:9e:2d:81:89:ce
====================================================================
user_main
OpenXR872, version _xradios_44cc3f6b4d65
Entering initLog()...
Commands registered!
initLog() done!
Warning: Sector header check failed. Format this sector (0x000ef000).
Info:MAIN:Main_Init_Before_Delay
Warning: Sector header check failed. Format this sector (0x000f0000).
Warning: Sector header check failed. Format this sector (0x000f1000).
Warning: Sector header check failed. Format this sector (0x000f2000).
Warning: Sector header check failed. Format this sector (0x000f3000).
Warning: Sector header check failed. Format this sector (0x000f4000).
Warning: Sector header check failed. Format this sector (0x000f5000).
Warning: Sector header check failed. Format this sector (0x000f6000).
Warning: All sector header check failed. Set it to default.
EasyFlash V4.1.0 is initialize success.
You can get the latest version on https://github.com/armink/EasyFlash .
Warn:CFG:CFG_InitAndLoad: Config crc or ident mismatch. Default config will be loaded.
Info:CFG:CFG_SetDefaultLEDCorrectionTable: setting defaults
Main_Init_Before_Delay done
Main_Init_Delay
Main_Init_Delay done
Error:CMD:lfs is absent
Info:GEN:PIN_SetupPins pins have been set up.
Info:MAIN:Main_Init_Before_Delay done
Info:MAIN:Main_Init_Delay
Info:MAIN:Main_Init_Delay done
Info:MAIN:Main_Init_After_Delay
Info:MAIN:Using SSID []
Info:MAIN:Using Pass []
Info:MQTT:MQTT_RegisterCallback called for bT oxr2D8189CE/ subT oxr2D8189CE/+/set
Info:MQTT:MQTT_RegisterCallback called for bT xr872s/ subT xr872s/+/set
Info:MQTT:MQTT_RegisterCallback called for bT cmnd/oxr2D8189CE/ subT cmnd/oxr2D8189CE/+
Info:MQTT:MQTT_RegisterCallback called for bT cmnd/xr872s/ subT cmnd/xr872s/+
Info:MQTT:MQTT_RegisterCallback called for bT oxr2D8189CE/ subT oxr2D8189CE/+/get
Info:CMD:CMD_StartScript: started @startup at the beginning
Error:CMD:LFS_ReadFile: lfs is absent
Info:CMD:CMD_StartScript: failed to get file autoexec.bat
Info:MAIN:Main_Init_After_Delay done
Info:HTTP:TCP server listening
Info:MAIN:Time 1, idle 0/s, free 262272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/20
Info:MAIN:Time 2, idle 0/s, free 262272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/20
Info:MAIN:Time 3, idle 0/s, free 262272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/20
Info:MAIN:Time 4, idle 0/s, free 262272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/20
en1: CTRL-EVENT-TERMINATING
WAR join_status:0
Info:MAIN:Time 5, idle 0/s, free 262272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/20
interface name: en1
Using interface en1 with hwaddr 18:9e:2d:81:89:ce and ssid "AP-XRADIO"
en1: interface state UNINITIALIZED->ENABLED
en1: AP-ENABLED
en1: AP-DISABLED
[net INF] msg <wlan connected>
[net INF] netif is link up
[net INF] bring up netif
[net INF] netif (IPv4) is up
[net INF] address: 192.168.4.1
[net INF] gateway: 192.168.4.1
[net INF] netmask: 255.255.255.0
[net INF] msg <network up>
vif0, AP/GO mode THROTTLE=38
en1: interface state ENABLED->DISABLED
[net INF] msg <wlan disconnected>
[net INF] netif is link down
Using interface en1 with hwaddr 18:9e:2d:81:89:ce and ssid "OpenXR872_2D8189CE"
en1: interface state DISABLED->ENABLED
en1: AP-ENABLED
[net INF] msg <wlan connected>
[net INF] netif is link up
[net INF] netif is already up
vif0, AP/GO mode THROTTLE=38
Info:MAIN:Time 6, idle 0/s, free 257312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 4/20
Info:MAIN:Boot complete time reached (5 seconds)
Info:MAIN:Time 7, idle 0/s, free 257312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 4/20
Info:MAIN:Time 8, idle 0/s, free 257312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 4/20
Info:MAIN:Time 9, idle 0/s, free 257312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 4/20
Info:MAIN:Time 10, idle 0/s, free 257312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 4/20
Info:MAIN:Time 11, idle 0/s, free 257312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 4/20
Info:MAIN:Time 12, idle 0/s, free 257312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 4/20
Info:MAIN:Time 13, idle 0/s, free 257312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 4/20
Info:MAIN:Time 14, idle 0/s, free 257312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 4/20
Info:MAIN:Time 15, idle 0/s, free 257312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 4/20
Info:MAIN:Time 16, idle 0/s, free 257312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 4/20
Info:MAIN:Time 17, idle 0/s, free 257312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 4/20
Info:MAIN:Time 18, idle 0/s, free 257312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 4/20
Info:MAIN:Time 19, idle 0/s, free 257312, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 4/20
Info:HTTP:TCP server listening
Info:MAIN:Time 1, idle 0/s, free 262272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/20
Info:MAIN:Time 2, idle 0/s, free 262272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/20
Info:MAIN:Time 3, idle 0/s, free 262272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/20
Info:MAIN:Time 4, idle 0/s, free 262272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/20
[net INF] no need to switch wlan mode 0
Info:MAIN:Time 5, idle 0/s, free 262272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/20
Info:MAIN:Registered for wifi changes
Info:MAIN:Connecting to SSID [MyWiFiSSID]
[net INF] netif (IPv4) is up
[net INF] address: 192.168.0.127
[net INF] gateway: 192.168.0.1
[net INF] netmask: 255.255.255.0
[net INF] msg <network up>
wlan_msg_recv msg type:18
p.kaczmarek2 wrote:OK, still working
serial_stop();
serial_deinit(UART0_ID);insmod wrote:I recently noticed that LN882H config is stored directly in flash at specific offset. Why not store it in KV, like flash vars?
insmod wrote:Opened a pull request.
insmod wrote:
I recently noticed that LN882H config is stored directly in flash at specific offset. Why not store it in KV, like flash vars?
insmod wrote:
Why would migration to EF break compatibility?
p.kaczmarek2 wrote:would break config backwards compatibility
TL;DR: After about 10 minutes on normal 5V USB-C, one XR806AF2L board released “magic smoke,” but a second board booted, dumped flash twice, and later ran OpenBeken once XR806-specific settings were fixed. This FAQ is for XR806/XR872 tinkerers who need a fast map of hardware risks, flashing, XIP, EasyFlash/LFS, UART, and OTA failure modes. [#21466664]
Why it matters: This thread turns scattered bench notes into a practical troubleshooting guide for bringing unstable XR806/XR872 boards from first boot to repeatable reflashing and OTA tests.
| Platform | Boot status in thread | Notable working feature | Main blocker seen |
|---|---|---|---|
| XR806 | Booted with OpenBeken after config fix | UART, Berry start, HTTP OTA later worked | Early bin too big, malloc mode, OTA edge cases |
| XR809 | Partial support discussed | Deep sleep noted on XR809 | OTA less stable than XR806 |
| XR872 | Booted and HTTP OTA verified | Static IP and HTTP OTA worked | Quick/REST OTA crashes in some tests |
Key insight: The turning point was not just image size. XR806 became usable when the build matched XR806-specific memory behavior, especially
CONFIG_MALLOC_MODE=0, and later OTA stability improved when the workflow switched toward HTTP images and the XR mkimage path.
mJedec 0x0, so visual chip ID and successful full-chip erase or dump are more reliable than that early console line on this board. [#21466260]AWOL_XR806AF2L_BaseboardV1.0_Dev_Board.bin from the linked dump repository. 3. Full-erase the chip, then flash the image and confirm boot over serial. Later testing also showed “2mb” full erase was the normal recovery path during XR806 experiments, so matching flash size matters. [#21466260]XIP : enable in platform information. That change aligned with progress from “no output” and oversized-image failures toward real boot logs, working services, and later HTTP OTA success on XR806 and XR872. [#21588030]autoexec.bat. The logs show EasyFlash can initialize successfully even when LFS is missing. On XR806, boot logs reported “EasyFlash V4.1.0 is initialize success,” while also printing “lfs is absent” and sector-header formatting warnings. In short: EasyFlash stores config and survives early bring-up better; LFS is optional but needed for file-based scripts. [#21588899]bin too big errors such as 0x201000 + 0x339d0 > 230000, then later booted after the developer identified CONFIG_MALLOC_MODE=0 as mandatory on XR806. He stated that directly: “On XR806 it must be set to 0.” That changed the platform from no usable boot to a working OpenBeken image, although he also warned it may limit free-heap reporting and fragmentation visibility. [#21588905]OpenXR806__xradios_21ccaf291737.img. It booted on June 25, 2025, reported XR806 SDK v1.2.2, driver XR_V02.06.10, and heap size 185260. Earlier images either produced bin too big errors or no serial output at all. The effective changes were the XR806 memory fix, newer SDK path, and later build adjustments around partitions and XIP-related image layout. [#21588899]_ota.img generated by the newer XR mkimage workflow. If the log shows addr ... is not 4K alignment, stop and fix packaging first. That is a format problem, not a Wi-Fi problem. [#21589126]_ALT means the image was built with the newer SDK. The developer summarized the tradeoff clearly: the new SDK brings integrated mbedtls and WPA3, but it increases binary size and showed “strange problems” such as logging issues and BL0937 quirks. So _ALT is not just a naming variant; it flags a different platform base with newer security features and some compatibility risk. Use it when you need the newer stack, not as a drop-in stability upgrade. [#21589627]HAL_Wakeup_SetTimer_mS for wake timing, but that is millisecond wake scheduling, not proof of sensor-grade microsecond precision. Treat XR delay support as experimental until a scope or sensor test confirms it. [#21595062]