[Driver]: [ERROR][HALMAC][ERR]fw chksum!

Hi,

Suddenly Ameba board stopped working and facing below issues while initializing the WiFi. I am testing the mmf2 video example at GitHub - Ameba-AIoT/ameba-rtos-pro2: Realtek Official IoT Software Development Kit for Ameba Series SoC: (Ameba Pro2) · GitHub

Issue 1 : WiFi driver checking some data and throwing checksum error mostly, below is the cpatured log.

== Rtl8735b IoT Platform ==

[Normal mode]
BootFromNORFlash
[Start Boot ROM…]
=== Load PARTBL ===
=== Load Done ===
=== Load ISP_IQ ===
[fcs chk pass]�
== Rtl8735b IoT Platform ==

[Normal mode]
BootFromNORFlash
[Start Boot ROM…]
=== Load PARTBL ===
=== Load Done ===
=== Load ISP_IQ ===
[fcs chk pass]
ISP_IQ @ 0x8461080, 0x5af80, 0x0
mfcs_data version 0x00010001
fcs_data version 0x00010101
=== Process ISP_IQ ===
=== Load Done ===
=== Load BL ===
[Image Start Table @ 0x18200]
=== Load Done ===

== Boot Loader ==
Nov 4 2025:14:24:05
=== Load FCS Para ===
=== Load Done ===
[crc pass]
=== Load ISP_IQ Sensor ===
ISP_IQ @ 0x8461080, 0x5af80
=== Process ISP_IQ ===
=== Load Done ===
=== Load FW1 ===
FW_ISP_IQ @ 0x8061080, 0x5cf80
=== Process FW_ISP_IQ ===
DRAM_TYPE is DDR2 128MB.
ddr_freq = 533
VOE flash @ 0x80be080, 0x82f80
FCS KM_status 0x00002081 err 0x0000200a
Wait KM fcs done 0 us
FCS TM_status 0x003f0000
store fcs data for application
It don’t do the sensor initial process
RAM TM_STATUS 0x00bf1208 err 0x00001208
read fcs_status 0x000000bf
read fcs_status 0x000000bf
=== Process VOE IMG ===
[Image Start Table @ 0x20106200]
RAM Load @ 0x8141100->0x20106200, 0x6a20
DDR Load @ 0x8148080->0x70100000, 0x1e8d86
=== FW Load Done ===

Boot Loader <==

== RAM Start ==
Build @ 17:58:31, Apr 1 2026

$8735b>interface 0 is initialized
interface 1 is initialized
cfg_size_lib = 120, cfg_size_user = 120

Initializing WIFI …[Driver]: [HALMAC]
11692M HALMAC_MAJOR_VER = 1
HALMAC_PROTOTYPE_VER = 4
HALMAC_MINOR_VER = 20
HALMAC_PATCH_VER =
[Driver]: The driver include MP
[Driver]: Ver = libwlan:2026.03.31.09.32_b9.6_8da5876be9c7aa226733778c75c3b38b242fedec
[Driver]: [ERROR][HALMAC][ERR]fw chksum!!

[Driver]: [ERROR][HALMAC][ERR]chk fw chksum!!

[Driver]: [ERROR]download_fw: download firmware FAIL! status=0x27

use ATW0, ATW1, ATWC to make wifi connection
wait for wifi connection…
[Driver]: [ERROR]-871x_drv - dev_open, fail!

ERROR: Start WIFI Failed!
[rltk_wlan_deinit] Check Hw init timeout
+++++ wifi on done +++++

init_thread(62), Available heap 0x69098a0

Issue 2 : Getting Usage Fault and S-Domain Exception while initializing WiFi when checksum error not thrown, below is the captured log.

== Rtl8735b IoT Platform ==

[Normal mode]
BootFromNORFlash
[Start Boot ROM…]
=== Load PARTBL ===
=== Load Done ===
=== Load ISP_IQ ===
[fcs chk pass]�
== Rtl8735b IoT Platform ==

[Normal mode]
BootFromNORFlash
[Start Boot ROM…]
=== Load PARTBL ===
=== Load Done ===
=== Load ISP_IQ ===
[fcs chk pass]
ISP_IQ @ 0x8461080, 0x5af80, 0x0
mfcs_data version 0x00010001
fcs_data version 0x00010101
=== Process ISP_IQ ===
=== Load Done ===
=== Load BL ===
[Image Start Table @ 0x18200]
=== Load Done ===

== Boot Loader ==
Nov 4 2025:14:24:05
=== Load FCS Para ===
=== Load Done ===
[crc pass]
=== Load ISP_IQ Sensor ===
ISP_IQ @ 0x8461080, 0x5af80
=== Process ISP_IQ ===
=== Load Done ===
=== Load FW1 ===
FW_ISP_IQ @ 0x8061080, 0x5cf80
=== Process FW_ISP_IQ ===
DRAM_TYPE is DDR2 128MB.
ddr_freq = 533
VOE flash @ 0x80be080, 0x82f80
FCS KM_status 0x00002081 err 0x0000200a
Wait KM fcs done 0 us
FCS TM_status 0x003f0000
store fcs data for application
It don’t do the sensor initial process
RAM TM_STATUS 0x00bf1208 err 0x00001208
read fcs_status 0x000000bf
read fcs_status 0x000000bf
=== Process VOE IMG ===
[Image Start Table @ 0x20106200]
RAM Load @ 0x8141100->0x20106200, 0x6a20
DDR Load @ 0x8148080->0x70100000, 0x1e8d86
=== FW Load Done ===

Boot Loader <==

== RAM Start ==
Build @ 17:58:31, Apr 1 2026

$8735b>interface 0 is initialized
interface 1 is initialized
cfg_size_lib = 120, cfg_size_user = 120

Initializing WIFI …[Driver]: [HALMAC]
11692M HALMAC_MAJOR_VER = 1
HALMAC_PROTOTYPE_VER = 4
HALMAC_MINOR_VER = 20
HALMAC_PATCH_VER =
[Driver]: The driver include MP
[Driver]: Ver = libwlan:2026.03.11.14.40_b9.6_a61b604df371152ea7cf9fcac0d6241f6c7380e2
RFE type = 0
start_addr=(0x4000), end_addr=(0x8000), buffer_size=(0x4000), smp_number_max=(2048)

Usage Fault:
SCB Configurable Fault Status Reg = 0x00010000

Usage Fault Status:
Undefined instruction UsageFault

S-domain exception from Thread mode, Extended Stack frame on S-PSP
Registers Saved to stack

Stacked:
R0 = 0x70692120
R1 = 0x99a599a5
R2 = 0x0000001c
R3 = 0x00000000
R4 = 0x0000001c
R5 = 0x00000000
R6 = 0x70692120
R7 = 0x00000000
R8 = 0x00000000
R9 = 0x00000000
R10 = 0x00000000
R11 = 0x00000000
R12 = 0x00000016
LR = 0x701a1ac3
PC = 0x709b1800
PSR = 0x81100000

Current:
LR = 0xffffffed
MSP = 0x20003fd8
PSP = 0x706868c8
xPSR = 0x80000006
CFSR = 0x00010000
HFSR = 0x00000000
DFSR = 0x00000000
MMFAR = 0x00000000
BFAR = 0x00000000
AFSR = 0x00000000
PriMask = 0x00000000
SVC priority: 0x00
PendSVC priority: 0xf0
Systick priority: 0xf0

MSP Data:
20003FD8: 70300608 FFFFFFF9 20004000 000003E8
20003FE8: E000E000 70300608 07070707 7011D8A1
20003FF8: 7011D908 21000000 A67EF17E 9899F7FA
20004008: B91EE8FC DF4248AC CEBCEFFD 749B9E47
20004018: FD03890F CAA8A70A BD7F917C EAE7865A
20004028: 18F3BDB3 FCF7EDBF CFDBAFAB 2FBD9CE7
20004038: C04362EA 2F2CBD32 3326780D C66E8859
20004048: 2ED04770 16A350D9 25A5DDDD 6A578457
20004058: 8663943A 48EDCF50 C232FEEA A8664301
20004068: 2AE89C9A 0AF0B242 7FE36AB8 168C0758
20004078: 011F07E0 1B4904C3 1C6174CD 8615577B
20004088: 0E1AF749 1129F53A 5C43721A 1BA5CD61
20004098: 337C762E 12EA00EC 9548DB1E E9EBC215
200040A8: 0A843BED 2BEDDD94 979F9B62 3F72B28B
200040B8: 17DC9C60 32283A55 8FF16737 AC872D8A
200040C8: C086B805 054E84E6 7FA33293 4C8FE0C7

PSP Data:
706868C8: 70692120 99A599A5 0000001C 00000000
706868D8: 00000016 701A1AC3 709B1800 81100000
706868E8: 00001B88 7011C63F 7011C639 7011CEC9
706868F8: 40081B88 7019E505 7068DFFC 00B4EF80
70686908: 00B4EF80 00000000 7019E4CD 7019D607
70686918: 00B4EF80 70196CCF 00B4EF80 70196C95
70686928: 00000000 FFFFFFFF 00B4EF80 70165C9F
70686938: 00B4EF80 70693120 00001B88 70692120
70686948: 00000000 70693120 706910A0 70699080
70686958: 00000001 00000000 00000000 701A1DF3
70686968: 70692120 0000001C 702DC584 70692120
70686978: 706869CC 701A1E71 00000000 701A20F3
70686988: 00005000 00011E85 00000474 000A1818
70686998: 00000000 000554E0 00000001 00015980
706869A8: 0003C3E1 00000083 0000008C 0000009E
706869B8: 0000008F 000000DF 0000008E 00000005

== NS Dump ==
CFSR_NS = 0x00000000
HFSR_NS = 0x00000000
DFSR_NS = 0x00000000
MMFAR_NS = 0x00000000
BFAR_NS = 0x00000000
AFSR_NS = 0x00000000
MSP_NS = 0x00000000
PSP_NS = 0x00000000
NS HardFault Status Reg = 0x00000000
SCB Configurable Fault Status Reg = 0x00000000
No Back Trace!

We are unable to identify the problem because the WiFi driver code is in libwlan.a

Please share your ideas and thoughts to find the root cause of this issue.

Thanks,

Yugandhar