So you're able to build yourself... good.
I've added more debug printf at two sections of code:
Can you compile latest version of App (main app, pull both repos) and paste your log?
Here is my log:
V:BK7231S_1.0.5
CPSR:000000D3
R0:E76F05AF
R1:A93E49E8
R2:7F6FBF7C
R3:5331FCE4
R4:DB643E15
R13:2BF7DBA3
R14(LR):B8FE65F7
ST:6EF25514
J 0x10000
prvHeapInit-start addr:0x41c908, size:145144
Entering init log...
Init log done!
[bk]tx_txdesc_flush
[rx_iq]rx_amp_err_rd: 0x009
[rx_iq]rx_phase_err_rd: 0x010
[rx_iq]rx_ty2_rd: 0x000
*********** finally result **********
gtx_dcorMod : 0x8
gtx_dcorPA : 0xa
gtx_pre_gain : 0x0
gtx_i_dc_comp : 0x1fd
gtx_q_dc_comp : 0x20d
gtx_i_gain_comp : 0x3f8
gtx_q_gain_comp : 0x3ff
gtx_ifilter_corner over: 0x11
gtx_qfilter_corner over: 0x11
gtx_phase_comp : 0x20e
gtx_phase_ty2 : 0x200
gbias_after_cal : 0x16
gav_tssi : 0x22
g_rx_dc_gain_tab 0 over: 0x80788078
g_rx_dc_gain_tab 1 over: 0x80788078
g_rx_dc_gain_tab 2 over: 0x84788478
g_rx_dc_gain_tab 3 over: 0x94708c74
g_rx_dc_gain_tab 4 over: 0x92729470
g_rx_dc_gain_tab 5 over: 0x92709072
g_rx_dc_gain_tab 6 over: 0x93709370
g_rx_dc_gain_tab 7 over: 0x93719371
grx_amp_err_wr : 0x1fb
grx_phase_err_wr : 0x008
**************************************
ble use fit!
temp in flash is:250
lpf_i & q in flash is:17, 17
xtal in flash is:21
-----pwr_gain:12, g_idx:12, shift_b:0, shift_g:0
-----[pwr_gain]12
Initializing TCP/IP stack
PIN_LoadFromFlash called - going to load pins.
UART log breaking after that means that you changed the role of [bk]tx_txdesc_flush
bssid 48-ee-0c-48-93-12
security2cipher 2 3 24 8 security=6
cipher2security 2 3 24 8
enter low level!
mac d4:a6:51:30:36:8a
leave low level!
do td cur_t:259--last:idx:13,t:250 -- new:idx:14,t:262
--0xc:08, shift_b:0, shift_g:0, X:2
TX pin to digital IO or smth else.
PIN_LoadFromFlash pins have been set up.
Using SSID [5G_FULL_POWER]
Using Pass [P@ssw0rd]
Registered for wifi changes
Started http tcp server
Initialised pins
Initialised other callbacks
mqtt_userName homeassistant
mqtt_pass ma1oovoo0pooTie7koa8Eiwae9vohth1vool8ekaej8Voohi7beif5uMuph9Diex
mqtt_clientID obk5130368A
mqtt_host 192.168.0.113:1883
Initialised mqtt
started timer
wl_status 3
ssid:5G_FULL_POWER, 1
ht in scan
scan_start_req_handler
Channel has changed! Publishing change 1 with 100
26 key_short_press
SM_DISCONNECTING status=1
Timer discovetrs disconnected mqtt 0
Timer is 1 free mem 111472
Timer discovetrs disconnected mqtt 1
Timer is 2 free mem 111472
Timer discovetrs disconnected mqtt 2
Timer is 3 free mem 111472
Timer discovetrs disconnected mqtt 3
Timer is 4 free mem 111472
Timer discovetrs disconnected mqtt 4
Timer is 5 free mem 111472
Timer discovetrs disconnected mqtt 5
Timer is 6 free mem 111472
There are right now three options.
1. you are getting crash/stuck at log init
2. you are losing TX pin because it gets initialized to digital IO by PIN_LoadFromFlash because
a) you've set it yourself to digital IO once and disconnected yourself that way from UART
b) the identifier of flash section used for pins was accidentally used by Tuya as well and our code tried to interpret Tuya config as ours - unlikely?
3. There is some other error, in which case, we'll debug more.
Most important parts to check:
Quote:
Entering init log...
Init log done!
PIN_LoadFromFlash called - going to load pins.
PIN_LoadFromFlash pins have been set up.
NOTE: your old "init log" UART message is now "Entering init log..."