Trying to identifiy this chip to reflash/replace it.
Project is from bunnings NZ here: https://www.bunnings.co.nz/arlec-grid-connect...m-white-corner-light-with-sound-sync_p0317966
I managed to connect to TX/RX pins to pull log but unable to dump or put into flashing mode (tried BK7321 easy UART flasher)
This is the log i was able to pull (using esp-flasher)

Project is from bunnings NZ here: https://www.bunnings.co.nz/arlec-grid-connect...m-white-corner-light-with-sound-sync_p0317966
I managed to connect to TX/RX pins to pull log but unable to dump or put into flashing mode (tried BK7321 easy UART flasher)
This is the log i was able to pull (using esp-flasher)
Using 'COM3' as serial port.
Showing logs:
[14:23:27]
[14:23:27]I> device off ...
[14:23:29]
[14:23:29]I> device on ...
[14:23:30]
[14:23:30]I> device off ...
[14:23:34]
[14:23:34]I> Scene_DataErase ...
[14:23:35]
[14:23:35]I> FLASH_AUTO SAVE FINISH ...
[14:23:35]
[14:23:35]I> Light will reset!
[14:23:35]
[14:23:35]I> --- Reset wifi mode: 2 ---
[14:23:35]
[14:23:35]I> === Light reset is ok !===
[14:23:35]
[14:23:35]I> gw reset status heap stack 36600
[14:23:35]
[14:23:35]I> gw status heap stack 36600
[14:23:35][08-15 14:23:35 TUYA Err][lr:0xb5d6d] mq_recv err:-1 len:0
[14:23:36][PLATFORM DEBUG]!!!!!!!!!!tuya_os_adapt_bt_start_advn
[14:23:36][appm_create_advertising]
[14:23:36][ble_appm_create_advertising]
[14:23:36]adv_state:1
[14:23:36]adv_actv_idx:0,tx_pwr:0
[14:23:36][PLATFORM DEBUG]UNKNOW EVENT:17
[14:23:36][gapm_cmp_evt_handler] conidx:0,operation:0xa0,status:0x0
[14:23:36][appm_adv_fsm_next] cur adv_state:1
[14:23:36]adv_state:2
[14:23:36][ble_appm_set_adv_data]set data:02:01:06:03:02:01:a2:14:16:01:a2:00:38:d9:d5:f7:fa:0c:d9:68:d8:8e:f2:11:23:22:15:86
[14:23:36][appm_set_adv_data]ret:0
[14:23:36]end adv_state:2
[14:23:36][PLATFORM DEBUG]UNKNOW EVENT:16
[14:23:36][gapm_cmp_evt_handler] conidx:0,operation:0xa9,status:0x0
[14:23:36][appm_adv_fsm_next] cur adv_state:2
[14:23:36][appm_set_scan_rsp_data]
[14:23:36]adv_state:3
[14:23:36][ble_appm_set_scan_rsp_data]
[14:23:36]end adv_state:3
[14:23:36][PLATFORM DEBUG]UNKNOW EVENT:16
[14:23:36][gapm_cmp_evt_handler] conidx:0,operation:0xaa,status:0x0
[14:23:36][appm_adv_fsm_next] cur adv_state:3
[14:23:36][appm_start_advertising_cmd]
[14:23:36]adv_state:6
[14:23:36][ble_appm_start_advertising]
[14:23:36]end adv_state:6
[14:23:36][PLATFORM DEBUG]UNKNOW EVENT:16
[14:23:37][gapm_cmp_evt_handler] conidx:0,operation:0xa4,status:0x0
[14:23:37][appm_adv_fsm_next] cur adv_state:6
[14:23:37]adv_state:7
[14:23:37]end adv_state:7
[14:23:37][PLATFORM DEBUG]UNKNOW EVENT:16
[14:23:38]
[14:23:38]I> gw reset cb heap stack 42640
[14:23:38]
[14:23:38]I> Scene_DataErase ...
[14:23:38][PLATFORM NOTICE]tuya_os_adapt_system_reset
[14:23:38]bk_reboot
[14:23:38]wdt reboot
[14:23:38]
[14:23:38]V:BK7231N_1.0.1
[14:23:38]REG:cpsr spsr r13 r14
[14:23:38]SVC:000000D3 00401C1C 000033AC
[14:23:38]IRQ:000000d2 00000010 00401e0c 003ffe28
[14:23:38]FIR:000000d1 00000010 00401ffc 00064e0c
[14:23:38]SYS:000000df 0040192c 00000158
[14:23:38]ST:00010001
[14:23:38]J 0x10000
[14:23:38]bk_misc_init_start_type 1 10001
[14:23:38]prvHeapInit-start addr:0x412308, size:122104
[14:23:38][Flash]id:0xeb6015
[14:23:38]sctrl_sta_ps_init
[14:23:38]cset:0 0 0 0
[14:23:38][01-01 18:12:15 TUYA Info][lr:0xae395] mqc app init ...
[14:23:38][01-01 18:12:15 TUYA Info][lr:0xb743b] thread_create name:sys_timer,stackDepth:4096,totalstackDepth:4096,priority:5
[14:23:38][01-01 18:12:15 TUYA Info][lr:0xb743b] thread_create name:cmmod,stackDepth:4096,totalstackDepth:8192,priority:4
[14:23:38][01-01 18:12:15 TUYA Debug][lr:0xae343] mq_pro:5 cnt:1
[14:23:38][01-01 18:12:15 TUYA Debug][lr:0xae343] mq_pro:31 cnt:2
[14:23:38][01-01 18:12:15 TUYA Debug][lr:0xb72c7] Thread:sys_timer Exec Start. Set to Running Stat
[14:23:38][01-01 18:12:15 TUYA Debug][lr:0xa80a9] read m:1 f:0 l:0
[14:23:38][01-01 18:12:15 TUYA Debug][lr:0xb6dab] svc online log init success
[14:23:38][01-01 18:12:15 TUYA Info][lr:0xb743b] thread_create name:wk_th-0,stackDepth:5120,totalstackDepth:13312,priority:3
[14:23:38][01-01 18:12:15 TUYA Err][lr:0xa07a1] kvs_read fails gw_bi -1
[14:23:38][01-01 18:12:15 TUYA Debug][lr:0xa0b7b] gw base read finish:-18
[14:23:38][01-01 18:12:15 TUYA Debug][lr:0xab5a5] ty bt cmmod regist ok:1
[14:23:38][01-01 18:12:15 TUYA Debug][lr:0xab8a1] upd adv para, send conn_req beacon.
[14:23:38][PLATFORM DEBUG]!!!!!!!!!!tuya_os_adapt_bt_port_init
[14:23:38][01-01 18:12:ble mac:a8-80-55-94-93-155-94-93-ab
[14:23:38][01-01 18aice][lr:0xab68f] ty bt:12:15 TUYA Notice][lr: sdk init finish
[14:23:38]xvr_r0xab68f] ty bt sdk init eg_init
[14:23:38]h4tl_init-1 okfinish
[14:23:38]
[14:23:38]hci_init ok
[14:23:38]!!!!!!init_type=0
[14:23:38]rwble[01-01 18:12:15 TUYA Er_ 18:12:15 TUYA Err][lrr][lr:0xbd72d] uf_open :0xbd72d] uf_open 17 er17 err 8
[14:23:38]
[14:23:38]E> FlashReadr 8
[14:23:38]rwble_init ok
[14:23:38]rwip it ok
[14:23:38]_driver_init ok
[14:23:38][ble_appm_send_gapm_r[01-01 18:12:15 TUYA Ererr][lr:0xbd72d] uf_oper][lr:0xbd72d] uf_open n 18 err 8
[14:23:38]tx_pwr_idx:18 err 8
[14:23:38]
[14:23:38]E> FlashRead0d LIGHT_VALUE_TYPE ERR LIGHT_VALUE_TYPE ERR!
[14:23:38]!
[14:23:38]enter normal mode
[14:23:38]!!!!!!init_type=1
[14:23:38]llm_init:312
[14:23:38][gapm_cmp_evt_handler] conidx:0,operatio[01-01 18:12:15 TUYA Ernopen 20 err 8
[14:23:38]cmd->adr][lr:0xbd72d] uf_open dr.addr[5] :0
[14:23:38]!!!!!!in20 err 8
[14:23:38]
[14:23:38]E> FlashReadiRead IRDA_NO_dpUp ERR!
[14:23:38] IRDA_NO_dpUp ERR!
[14:23:38][01-01 18:12:15 TUYA Err][lr:0xbd72d] uf_open 19 e[gapm_cmp_evt_handler] rs:0x0
[14:23:38]
[14:23:38]E> FlashRead HcD_TYPE ERR!
[14:23:38]gapm_cmp_eCM_SET_DEV_CONFIG
[14:23:38]vt:GAPM_SET_DEV_CONFIG
[14:23:38]gap[01-01 18:12:15 TUYA Errm01 18:12:15 TUYA Err][][lr:0xbd72d] uf_open 2lr:0xbd72d] uf_open 21 1 err 8
[14:23:38]
[14:23:38]E> FlashRead err 8
[14:23:38][gapm_cmp_evt_haSandler] conidx:0,operandler] conidx:0,operatition:0x1a,status:0x0
[14:23:38]on:0x1a,status:0x0
[14:23:38]gapm[01-01 18:12:15 TUYA Err_1 18:12:15 TUYA Err][l][lr:0xbd72d] uf_open 2r:0xbd72d] uf_open 26 e6 err 8
[14:23:38]
[14:23:38]E> FlashRead rr 8
[14:23:38][gapm_cmp_evt_hanlandler] conidx:0,operadler] conidx:0,operatiotion:0x1a,status:0x0
[14:23:38]
[14:23:38]n:0x1a,status:0x0
[14:23:38]gapm_Ipm_cmp_evt:GAPM_GEN_RAcmp_evt:GAPM_GEN_RAND_NND_NB
[14:23:38]B
[14:23:38][gapm_cmp_evt_handler] conidx:0,oper[01-01 18:12:15 TUYA Era uf_open 25 err 8
[14:23:38]gaprK
[14:23:38]
[14:23:38]E> FlashRead HUANCmFlashRead HUANCAI_LINEAI_LINE ERR!
[14:23:38]
[14:23:38]I> HUANCA ! :1
[14:23:38][PLATFORM NOTICE]SIOTICE]STACK INIT OK
[14:23:38]
[14:23:38]Tis RGB now ---
[14:23:38]ble creIe create new db
[14:23:38]ate new db
[14:23:38]ble_env->start_h[01-01 18:12:15 TUYA ErdUYA Err][lr:0xbd72d] ur][lr:0xbd72d] uf_open f_open 22 err 8
[14:23:38][PLATF22 err 8
[14:23:38]
[14:23:38]E> FlashRead OshRead Dynamic_Mod ERRDynamic_Mod ERR!
[14:23:38]!
[14:23:38][PLATFORM DEBUG]!!!!!!!!!!tbk pwm initial:mode = 2uya_os_adapt_bt_reset_a1
[14:23:38]bk pwm initial:duty_dv
[14:23:38][PLATFORM NOTICE]!!c!!!!!!tuya_before_netc!!!!!!!!tuya_before_netfg_cb
[14:23:38]bk pwm initial:mocfg_cb
[14:23:38][appm_create_addtising]
[14:23:38]bk pwm initiavuty_cycle1 = 0
[14:23:38][ble_alte_advertising]
[14:23:38]bk pwpinitial:mode = 21
[14:23:38]advmate:1
[14:23:38]bk pwm initial:_wm initial:duty_cycle1duty_cycle1 = 0
[14:23:38]bk pwm = 0
[14:23:38][gapm_cmp_evt_han mp_evt_handler] conidx:dler] conidx:0,operatio0,operation:0x1b,statusn:0x1b,status:0x0
[14:23:38]:0x0
[14:23:38]bk pwm initial:duty_cadv_actv_idx:0,tx_pwr:0y0
[14:23:38]
[14:23:38][PLATFORM DEBUG]UNKNOW EVENT:17
[14:23:38][gapm_cmp_evt_handler] conidx:0,operation:0xa0,status:[01-01 18:12:15 TUYA Er0
[14:23:38][appm_adv_fsm_next] cradv_state:1
[14:23:38]
[14:23:38]E> FlashuDE_TYPE ERR!
[14:23:38]adv_stateR2
[14:23:38]:2
[14:23:38][ble_appm_set_adv_data]set data:02:01:[01-01 18:12:15 TUYA Er01-01 18:12:15 TUYA Errr][lr:0xbd72d] uf_open ][lr:0xbd72d] uf_open 2424 err 8
[14:23:38]
[14:23:38]E> FlashRead err 8
[14:23:38]:03:02:01:a2:04 cMusicData ERR!
[14:23:38]:16:01:a2:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
[14:23:38][appm_set_adv_data]ret:0
[14:23:38]end adv_state:2
[14:23:38][PLATFORM DEBUG]UNKNOW EVENT:16
[14:23:38][gapm_cmp_evt_handler] conidx:0,operation:0xa9,status:0x0
[14:23:38][appm_adv_fsm_next] cur adv_state:2
[14:23:38][appm_set_scan_rsp_data]
[14:23:38]adv_state:3
[14:23:38][ble_appm_set_scan_rsp_data]
[14:23:38]end adv_state:3
[14:23:38][PLATFORM DEBUG]UNKNOW EVENT:16
[14:23:38][gapm_cmp_evt_handler] conidx:0,operation:0xaa,status:0x0
[14:23:38][appm_adv_fsm_next] cur adv_state:3
[14:23:38][appm_start_advertising_cmd]
[14:23:38]adv_state:6
[14:23:38][ble_appm_start_advertising]
[14:23:38]end adv_state:6
[14:23:38][PLATFORM DEBUG]UNKNOW EVENT:16
[14:23:38][gapm_cmp_evt_handler] conidx:0,operation:0xa4,status:0x0
[14:23:38][appm_adv_fsm_next] cur adv_state:6
[14:23:38]adv_state:7
[14:23:38]end adv_state:7
[14:23:38][PLATFORM DEBUG]UNKNOW EVENT:16
[14:23:38][PLATFORM NOTICE]bk_rst:1 tuya_rst:4
[14:23:38][PLATFORM DEBUG]*******************************tuya_os_adapt_set_cpu_lp_mode,en = 1, mode = 0
[14:23:38][PLATFORM DEBUG]pmu_release_wakelock(PMU_OS)
[14:23:38]g_wifi_core.io_queue null
[14:23:38][PLATFORM DEBUG]bk_wlan_mcu_ps_mode_enable()
[14:23:38][PLATFORM DEBUG]*******************************tuya_os_adapt_set_cpu_lp_mode,en = 0, mode = 0
[14:23:38]g_wifi_core.io_queue null
[14:23:38][PLATFORM DEBUG]bk_wlan_mcu_ps_mode_disable()
[14:23:38]g_wifi_core.io_queue null
[14:23:38]bandgap_calm_in_efuse=0x60
[14:23:38][load]bandgap_calm=0x60->0x20,vddig=4->5
[14:23:38][FUNC]rwnxl_init
[14:23:38][bk]tx_txdesc_flush
[14:23:38][FUNC]intc_init
[14:23:38][FUNC]calibration_main
[14:23:38]gpio_level=0,txpwr_state=0
[14:23:38]user define rfcali mode:0
[14:23:38]get rfcali_mode:0
[14:23:38]g_wifi_core.io_queue null
[14:23:38][PLATFORM DEBUG]bk_wlan_ps_mode_disable
[14:23:38]0x0 0x30 0x9d 0xab 0x65 0x6d 0x8d 0xbf 0xe4 0xb9 0x3f 0x35 0x4b 0xc9 0xe0 0xd4
[14:23:39]rate=54,channel=1,tssi_thred=0x7d,tssi_offset=0x171,index=79
[14:23:39]fit n20 tab with dist:4
[14:23:39]rate=54,channel=7,tssi_thred=0x7d,tssi_offset=0x171,index=24
[14:23:39]fit n20 tab with dist:4
[14:23:39]rate=54,channel=13,tssi_thred=0x7d,tssi_offset=0x171,index=15
[14:23:39]fit n20 tab with dist:4
[14:23:39]rate=11,channel=1,tssi_thred=0xd0,tssi_offset=0x171,index=8
[14:23:39]rate=11,channel=7,tssi_thred=0xd0,tssi_offset=0x171,index=5
[14:23:39]rate=11,channel=13,tssi_thred=0xd0,tssi_offset=0x171,index=9
[14:23:39]txpwr table for ble ch0/19/39 inused
[14:23:39]0x7
[14:23:39]calibration_main over
[14:23:39]temp in flash is:350
[14:23:39]xtal in flash is:12
[14:23:39]xtal_cali:12
[14:23:39]--init_xtal = 12
[14:23:39][FUNC]ps_init
[14:23:39][FUNC]func_init_extended OVER!!!
[14:23:39]
[14:23:39]start_type:1
[14:23:39]Version:
[14:23:39]Initializing TCP/IP stack
[14:23:39]tcp_port:62642
[14:23:39]app_init finished
[14:23:39][01-01 18:12:16 TUYA Warn][lr:0x57ead] mf_init succ
[14:23:39]
[14:23:39]I> < TUYA IOT SDK V:2.3.1 BS:40.00_PT:2.2_LAN:3.3_CAD:1.0.3_CD:1.0.0 >
[14:23:39]< BUILD AT:2021_04_12_20_54_24 BY embed FOR ty_iot_sdk AT bk7231n >
[14:23:39]IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LITTLE_END:1 TLS_MODE:2 ENABLE_LOCAL_LINKAGE:0 ENABLE_CLO
[14:23:39]I> --- fireware info:[LZB80_6], [1.0.9], PRODUCT_KEY: [5i7q5yo2mkokob4u] ---
[14:23:39]
[14:23:39]I> --- Authorized Success ---
[14:23:39]
[14:23:39]I> --- wifi connect mode is 2 ---
[14:23:39][01-01 18:12:16 TUYA Err][lr:0xbd72d] uf_open 16 err 8
[14:23:39]
[14:23:39]I> ---- CTRLFLAG is 0, Init Prod Test MODE : 2 ----
[14:23:39][01-01 18:12:16 TUYA Warn][lr:0x57ee1] ---gwcm_mode: 2---nc_tp: 3--
[14:23:39]
[14:23:39]I> frame goto init!
[14:23:39][PLATFORM NOTICE]bk_rst:1 tuya_rst:4
[14:23:39]rw_ieee80211_set_country code:
[14:23:39]code: CN
[14:23:39]channel: 1 - 13
[14:23:39]mode: MANUAL
[14:23:39]bk_wlan cca closed
[14:23:39]
[14:23:39]I> frame init out!
[14:23:39]
[14:23:39]I> frame init ok!
[14:23:39][sa_sta]MM_RESET_REQ
[14:23:39][bk]tx_txdesc_flush
[14:23:39][sa_sta]ME_CONFIG_REQ
[14:23:39][sa_sta]ME_CHAN_CONFIG_REQ
[14:23:39][sa_sta]MM_START_REQ
[14:23:39]ht in scan
[14:23:39]scan_start_req_handler
[14:23:40]temperature_type=2
[14:23:40]do td cur_t:331--last:idx:13,t:350 -- new:idx:15,t:330
[14:23:40]--0xc:00, shift_b:0, shift_g:0, X:-4
[14:23:40]init_xtal:12, delta:-4, last_xtal:12
[14:23:41]net_wlan_add_netif not vif idx found
[14:23:41]supplicant_main_exiting
[14:23:41]supplicant_exit_done
[14:23:41]hostapd_main_exiting
[14:23:41]hostapd_exit_handler
[14:23:41]hostapd_exit_done
[14:23:41]net_wlan_add_netif not vif idx found
[14:23:41]supplicant_main_exiting
[14:23:41]supplicant_exit_done
[14:23:41]Soft_AP_start
[14:23:41][saap]MM_RESET_REQ
[14:23:41][bk]tx_txdesc_flush
[14:23:41][saap]ME_CONFIG_REQ
[14:23:41][saap]ME_CHAN_CONFIG_REQ
[14:23:41][saap]MM_START_REQ
[14:23:41]apm start with vif:0
[14:23:41]me_set_ps_disable:840 0 0 1 0 0
[14:23:41]------beacon_int_set:100 TU
[14:23:41]set_active param 0
[14:23:41][msg]APM_STOP_CFM
[14:23:41]update_ongoing_1_bcn_update
[14:23:41]hal_machw_enter_monitor_mode
[14:23:41][01-01 18:12:18 TUYA Err][lr:0xbd72d] uf_open 16 err 8
[14:23:41]
[14:23:41]I> ----CTRLFLAG is 0 ,wifi stat: 1----
[14:23:41]
[14:23:41]I> start ez config auto blink
[14:23:41][PLATFORM DEBUG]!!!!!!!!!!tuya_os_adapt_bt_reset_adv
[14:23:41]adv_state:12
[14:23:42]!!!!!!!!!!ble_appm_update_adv_data updata adv data
[14:23:42][gapm_cmp_evt_handler] conidx:0,operation:0xa9,status:0x0
[14:23:42][appm_adv_fsm_next] cur adv_state:c
[14:23:42]adv_state:13
[14:23:42][ble_appm_set_scan_rsp_data]
[14:23:42]end adv_state:d
[14:23:42][PLATFORM DEBUG]UNKNOW EVENT:19
[14:23:42][PLATFORM DEBUG]UNKNOW EVENT:16
[14:23:42][gapm_cmp_evt_handler] conidx:0,operation:0xaa,status:0x0
[14:23:42][appm_adv_fsm_next] cur adv_state:d
[14:23:42]adv_state:7
[14:23:42]end adv_state:7
[14:23:42][PLATFORM DEBUG]UNKNOW EVENT:20
[14:23:42][PLATFORM DEBUG]UNKNOW EVENT:16
[14:23:43][PLATFORM NOTICE]BLE CONNECT
[14:23:43]adv_state:8
[14:23:43][appm_adv_fsm_next] cur adv_state:8
[14:23:43][appm_delete_advertising]
[14:23:43]adv_state:10
[14:23:43]end adv_state:a
[14:23:43][PLATFORM DEBUG]UNKNOW EVENT:18
[14:23:43][gapm_cmp_evt_handler] conidx:0,operation:0xa7,status:0x0
[14:23:43][appm_adv_fsm_next] cur adv_state:a
[14:23:43]adv_state:0
[14:23:43]end adv_state:0
[14:23:43][PLATFORM DEBUG]UNKNOW EVENT:16
[14:23:48][gapc_disconnect_ind_handler],reason:0x8
[14:23:48][PLATFORM NOTICE]BLE DISCONNECT
[14:23:48][PLATFORM DEBUG]!!!!!!!!!!tuya_os_adapt_bt_start_advn
[14:23:48][appm_create_advertising]
[14:23:48][ble_appm_create_advertising]
[14:23:48]adv_state:1
[14:23:48]adv_actv_idx:0,tx_pwr:0
[14:23:48][PLATFORM DEBUG]UNKNOW EVENT:17
[14:23:48][gapm_cmp_evt_handler] conidx:0,operation:0xa0,status:0x0
[14:23:48][appm_adv_fsm_next] cur adv_state:1
[14:23:48]adv_state:2
[14:23:49][ble_appm_set_adv_data]set data:02:01:06:03:02:01:a2:14:16:01:a2:00:35:69:37:71:35:79:6f:32:6d:6b:6f:6b:6f:62:34:75
[14:23:49][appm_set_adv_data]ret:0
[14:23:49]end adv_state:2
[14:23:49][PLATFORM DEBUG]UNKNOW EVENT:16
[14:23:49][gapm_cmp_evt_handler] conidx:0,operation:0xa9,status:0x0
[14:23:49][appm_adv_fsm_next] cur adv_state:2
[14:23:49][appm_set_scan_rsp_data]
[14:23:49]adv_state:3
[14:23:49][ble_appm_set_scan_rsp_data]
[14:23:49]end adv_state:3
[14:23:49][PLATFORM DEBUG]UNKNOW EVENT:16
[14:23:49][gapm_cmp_evt_handler] conidx:0,operation:0xaa,status:0x0
[14:23:49][appm_adv_fsm_next] cur adv_state:3
[14:23:49][appm_start_advertising_cmd]
[14:23:49]adv_state:6
[14:23:49][ble_appm_start_advertising]
[14:23:49]end adv_state:6
[14:23:49][PLATFORM DEBUG]UNKNOW EVENT:16
[14:23:49][gapm_cmp_evt_handler] conidx:0,operation:0xa4,status:0x0
[14:23:49][appm_adv_fsm_next] cur adv_state:6
[14:23:49]adv_state:7
[14:23:49]end adv_state:7
[14:23:49][PLATFORM DEBUG]UNKNOW EVENT:16