@wyy @xidameng
I will report my test result as below with pure SDK code use without any my application code add.
I did below step.
step1: unzip SDK and open km0 and km4 IAR project file.
step2: build km0_bootloader and build km0_application project.
step4: build km4_bootloader and build km4_application project.
step5: flash km0_boot_all.bin, km4_boot_all.bin and km0_km4_image2.bin to board with ImageTool.
step6: reset the board (there is no such message print at this step).
step7: Enter debug mode by Run Download and Debug km4_application with JLINK connected.
step8: press Go (same result with issue1 there is such message print at this step).
step9: press Break to halts the CPU (there is no such message print at this step).
step10: press Go (same result with issue1 there is such message print at this step).
below is part of log from step7
[Thu Jul 01 09:01:47.780 2021] [FlashErase] block_start:89000, block_size:1000
[Thu Jul 01 09:01:47.812 2021] [FlashErase] block_start:8a000, block_size:1000
[Thu Jul 01 09:01:47.876 2021] [FlashErase] block_start:8b000, block_size:1000
[Thu Jul 01 09:01:47.924 2021] [FlashErase] block_start:8c000, block_size:1000
[Thu Jul 01 09:01:47.972 2021] [FlashErase] block_start:8d000, block_size:1000
[Thu Jul 01 09:01:48.021 2021] [FlashErase] block_start:8e000, block_size:1000
[Thu Jul 01 09:01:48.068 2021] [FlashErase] block_start:8f000, block_size:1000
[Thu Jul 01 09:01:48.116 2021] [FlashErase] block_start:90000, block_size:1000
[Thu Jul 01 09:01:48.180 2021] [FlashErase] block_start:91000, block_size:1000
[Thu Jul 01 09:01:48.228 2021] [FlashErase] block_start:92000, block_size:1000
[Thu Jul 01 09:01:48.276 2021] [FlashErase] block_start:93000, block_size:1000
[Thu Jul 01 09:01:48.324 2021] [FlashErase] block_start:94000, block_size:1000
[Thu Jul 01 09:01:48.373 2021] [FlashErase] block_start:95000, block_size:1000
[Thu Jul 01 09:01:48.421 2021] [FlashErase] block_start:96000, block_size:1000
[Thu Jul 01 09:01:50.015 2021] [FlashWrite] block_start:7a000, offset_into_block:0, count:1d000
[Thu Jul 01 09:02:19.761 2021] #interface 0 is initialized
[Thu Jul 01 09:02:19.785 2021] interface 1 is initialized
[Thu Jul 01 09:02:19.785 2021]
[Thu Jul 01 09:02:19.785 2021] Initializing WIFI ...FW Enable failed
[Thu Jul 01 09:02:20.072 2021]
[Thu Jul 01 09:02:20.072 2021] RTL8721D[Driver]: set ssid [Rain.]
[Thu Jul 01 09:02:20.152 2021]
[Thu Jul 01 09:02:20.152 2021] RTL8721D[Driver]: rtw_set_wpa_ie[1160]: AuthKeyMgmt = 0x2
[Thu Jul 01 09:02:20.176 2021]
[Thu Jul 01 09:02:20.176 2021] RTL8721D[Driver]: rtw_restruct_sec_ie[4202]: no pmksa cached
[Thu Jul 01 09:02:20.342 2021]
[Thu Jul 01 09:02:20.342 2021] RTL8721D[Driver]: start auth to cc:64:a6:43:98:68
[Thu Jul 01 09:02:20.342 2021]
[Thu Jul 01 09:02:20.342 2021] RTL8721D[Driver]: auth alg = 2
[Thu Jul 01 09:02:20.343 2021]
[Thu Jul 01 09:02:20.343 2021] RTL8721D[Driver]:
[Thu Jul 01 09:02:20.343 2021] OnAuthClient:algthm = 0, seq = 2, status = 0, sae_msg_len = 0
[Thu Jul 01 09:02:20.344 2021]
[Thu Jul 01 09:02:20.344 2021] RTL8721D[Driver]: auth success, start assoc
[Thu Jul 01 09:02:20.344 2021]
[Thu Jul 01 09:02:20.344 2021] RTL8721D[Driver]: association success(res=31)
[Thu Jul 01 09:02:20.345 2021]
[Thu Jul 01 09:02:20.345 2021] RTL8721D[Driver]: ClientSendEAPOL[1600]: no use cache pmksa
[Thu Jul 01 09:02:20.354 2021] [rtw coex warning]:event(9) with cur state(3)
[Thu Jul 01 09:02:20.436 2021] fw cmd fifo full 0
[Thu Jul 01 09:02:20.436 2021] MAC_1C0=00000002, MAC_1C4=00000000, MAC_1C8=00000000, MAC_1CC=0000000f
[Thu Jul 01 09:02:20.459 2021] [rtw coex warning]:event(5) with cur state(5)
[Thu Jul 01 09:02:20.569 2021] fw cmd fifo full 0
[Thu Jul 01 09:02:20.569 2021] MAC_1C0=00000002, MAC_1C4=00000000, MAC_1C8=00000000, MAC_1CC=0000000f
[Thu Jul 01 09:02:20.686 2021] fw cmd fifo full 0
[Thu Jul 01 09:02:20.686 2021] MAC_1C0=00000002, MAC_1C4=00000000, MAC_1C8=00000000, MAC_1CC=0000000f
[Thu Jul 01 09:02:20.687 2021] wlan1: 1 DL RSVD page success! DLBcnCount:01, poll:00000001
[Thu Jul 01 09:02:20.814 2021] fw cmd fifo full 0
[Thu Jul 01 09:02:20.814 2021] MAC_1C0=00000002, MAC_1C4=00000000, MAC_1C8=00000000, MAC_1CC=0000000f
[Thu Jul 01 09:02:20.815 2021]
[Thu Jul 01 09:02:20.815 2021] RTL8721D[Driver]: set pairwise key to hw: alg:4(WEP40-1 WEP104-5 TKIP-2 AES-4)
[Thu Jul 01 09:02:20.816 2021]
[Thu Jul 01 09:02:20.816 2021] RTL8721D[Driver]: set group key to hw: alg:4(WEP40-1 WEP104-5 TKIP-2 AES-4) keyid:1
[Thu Jul 01 09:02:21.322 2021]
[Thu Jul 01 09:02:21.322 2021] Interface 0 IP address : 192.168.1.46
[Thu Jul 01 09:02:21.345 2021] WIFI initialized
[Thu Jul 01 09:02:21.345 2021]
[Thu Jul 01 09:02:21.345 2021] init_thread(58), Available heap 0x24c20 fw cmd fifo full 0
[Thu Jul 01 09:02:22.247 2021] MAC_1C0=00000002, MAC_1C4=00000000, MAC_1C8=00000000, MAC_1CC=0000000f
[Thu Jul 01 09:02:22.343 2021] fw cmd fifo full 0
[Thu Jul 01 09:02:22.343 2021] MAC_1C0=00000002, MAC_1C4=00000000, MAC_1C8=00000000, MAC_1CC=0000000f
[Thu Jul 01 09:02:24.255 2021] fw cmd fifo full 0
[Thu Jul 01 09:02:24.255 2021] MAC_1C0=00000002, MAC_1C4=00000000, MAC_1C8=00000000, MAC_1CC=0000000f
[Thu Jul 01 09:02:24.351 2021] fw cmd fifo full 0
[Thu Jul 01 09:02:24.352 2021] MAC_1C0=00000002, MAC_1C4=00000000, MAC_1C8=00000000, MAC_1CC=0000000f
[Thu Jul 01 09:02:25.463 2021] fw cmd fifo full 0
[Thu Jul 01 09:02:25.464 2021] MAC_1C0=00000002, MAC_1C4=00000000, MAC_1C8=00000000, MAC_1CC=0000000f
[Thu Jul 01 09:02:25.812 2021] fw cmd fifo full 0
[Thu Jul 01 09:02:25.813 2021] MAC_1C0=00000002, MAC_1C4=00000000, MAC_1C8=00000000, MAC_1CC=0000000f
[Thu Jul 01 09:02:26.245 2021] fw cmd fifo full 0
[Thu Jul 01 09:02:26.245 2021] MAC_1C0=00000002, MAC_1C4=00000000, MAC_1C8=00000000, MAC_1CC=0000000f
[Thu Jul 01 09:02:28.267 2021] fw cmd fifo full 0
[Thu Jul 01 09:02:28.267 2021] MAC_1C0=00000002, MAC_1C4=00000000, MAC_1C8=00000000, MAC_1CC=0000000f
[Thu Jul 01 09:02:28.376 2021] fw cmd fifo full 0
[Thu Jul 01 09:02:28.376 2021] MAC_1C0=00000002, MAC_1C4=00000000, MAC_1C8=00000000, MAC_1CC=0000000f
So, I can confirm that Issue1 is occur on pure SDK code.
Regards,