Hey all,
I wish to liberate my Tuya led driver, which is based on an BK7231N chip. I can get log output from UART2, however I am unable to get anything flashed. Trying to read the CHIP ID just hangs. Resetting the BK7321N seems to always immediatly go into the firmware, instead of trying to accept firmware.
On the debug ‘pads’, P21 (i think) is also brought out. I’m going to read through the datasheet next, but could it be that this chip is in some ‘do not try to flash’ mode?
On the tuya side, I do not see an Accesspoint come up; but Bluetooth does show up as scannable.
Here’s the logs
V:BK7231N_1.0.1
REG:cpsr spsr r13 r14
SVC:000000D3 00401C1C 000033AC
IRQ:000000d2 00000010 00401e0c 301085b0
FIR:000000d1 00000010 00401ffc 92020353
SYS:000000df 0040192c 00000158
ST:00000000
J 0x10000
bk_misc_init_start_type 0 0
[MEM DBG] heap init-------size:163128 addr:0x4082c8---------
[Flash]id:0xeb6015
[load]bandgap_calm=0x75->0x35,vddig=4->5
[bk]tx_txdesc_flush
tkl_ethernetif_init
tkl_ethernetif_init
tkl_ethernetif_output: invalid vif: 255!
tkl_ethernetif_output: invalid vif: 255!
[01-01 00:00:00 TUYA N][lr:0x4eb2b] reset info -> reason is 0
[01-01 00:00:00 TUYA E][lr:0xc9c73] uf_open 10 err 8
[01-01 00:00:00 TUYA E][lr:0x54b23] uf file 10 can't open and read data!
[01-01 00:00:00 TUYA E][lr:0x4f5db] ledsum data read error!
[01-01 00:00:00 TUYA N][lr:0x51923] ReadLedSumData error,use deafult ledSum:36
[FUNC]intc_init
[FUNC]calibration_main
gpio_level=0,txpwr_state=0
get rfcali_mode:0
DPLL Unlock
[01-01 00:00:00 TUYA E][lr:0x4e01d] ws2812b_led_count_set error!
[01-01 00:00:00 TUYA N][lr:0x49335] flashAppData.bSwitch:1
[01-01 00:00:00 TUYA N][lr:0x58efb] local music need not init!
[01-01 00:00:00 TUYA E][lr:0xc9c73] uf_open 10 err 8
[01-01 00:00:00 TUYA E][lr:0x54b23] uf file 10 can't open and read data!
[01-01 00:00:00 TUYA E][lr:0x4f5db] ledsum data read error!
mode:0, rate:6600000
spi_master:[CTRL]:0x00c30930
[CTRL]:0x00c20900
[CONFIG]:0x00000000
[01-01 00:00:00 TUYA E][lr:0x50cd1] lig way err
[01-01 00:00:00 TUYA N][lr:0x55751] go to pre device!
[01-01 00:00:00 TUYA N][lr:0x4eb2b] reset info -> reason is 0
DPLL Unlock
[01-01 00:00:00 TUYA N][lr:0x55385] tunr on and eMode:1
[01-01 00:00:00 TUYA E][lr:0x4e8b3] upload_id [20] Dp Upload report err
[01-01 00:00:00 TUYA E][lr:0x8affb] logseq empty
[01-01 00:00:00 TUYA N][lr:0x4eb2b] reset info -> reason is 0
ota don't start or start err, can't end inform!
[01-01 00:00:00 TUYA N][lr:0xb9157] key_addr: 0x1ee000 block_sz 4096
[01-01 00:00:00 TUYA N][lr:0xb9225] get key:
0x23 0x64 0x12 0x68 0xe6 0xe6 0x2d 0x78 0x9b 0x1f 0xa0 0x80 0x85 0x1c 0xd3 0x39
[01-01 00:00:00 TUYA N][lr:0x90f55] uni_random_init...
[01-01 00:00:00 TUYA N][lr:0x89bd9] tuya_tls_rand_init ok!
DPLL Unlock
DPLL Unlock
rate=54,channel=1,tssi_thred=0x7d,tssi_offset=0x494,index=63
rate=54,channel=7,tssi_thred=0x7d,tssi_offset=0x494,index=61
rate=54,channel=13,tssi_thred=0x7d,tssi_offset=0x494,index=57
rate=11,channel=1,tssi_thred=0xd0,tssi_offset=0x494,index=32
rate=11,channel=7,tssi_thred=0xd0,tssi_offset=0x494,index=30
rate=11,channel=13,tssi_thred=0xd0,tssi_offset=0x494,index=28
0x7
[01-01 00:00:01 TUYA N][lr:0x4c849] mf_init succ
[01-01 00:00:01 TUYA N][lr:0x55bc3] < TuyaOS V:3.3.40 BS:40.00_PT:2.3_LAN:3.5_CAD:1.0.5_CD:1.0.0 >
< BUILD AT:2023_02_15_14_08_59 BY ci_manage FOR tuyaos-iot AT bk7231n >
IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 LITTLE_END:1 TLS_MODE:2 OPERATING_SYSTEM:9[01-01 00:00:01 TUYA N][lr:0x55bd3] oem_bk7231n_slide_strip_ty:1.1.16 Date:Apr 25 2024 12:40:55
[01-01 00:00:01 TUYA N][lr:0x55c79] differ init
[01-01 00:00:01 TUYA N][lr:0x4f861] Data line:17, column:2
[01-01 00:00:01 TUYA N][lr:0x50355] device config data already load! Don't load again!!
[01-01 00:00:01 TUYA W][lr:0x51883] already init
[01-01 00:00:01 TUYA E][lr:0xc9c73] uf_open 2 err 8
[01-01 00:00:01 TUYA E][lr:0x54b23] uf file 2 can't open and read data!
[01-01 00:00:01 TUYA E][lr:0x4f635] Production data read error!
pushing the single button briefly shows the ‘on/off’ message as it turns on/off the light, pressing it long doesn’t do much interesting in the logs, seems like a reset-ish behavior, but certainly doesn’t bring up a hotspot.
The device is Battletron bureau led-lichtstrip | Action NL and while there’s even a ‘download software’ link, I’m certainly not going to install that no idea if it is supposed to communicate only with Bluetooth or not, but it does state ‘works with alexa’ etc, so cloud connectivity is probably a thing. Could read the manual …
Any idea how I can get this baby flashed? BK7231N v1.0.1 seems like a ‘bog standard’ unit?