5 years, 2 months ago.

How to receive huge data(about 10M Bytes) by BLE(STM-WB55)

To.dear

I setted up MTU to 150(Phone&Board)

and phone send the 10M data without delay by ble to board.

and 17bytes and 7k bytes are successful. but

Hard Fault is happened to Board when I send more 7k.

I don't know how to calcurate the number related to buffer.

plz help me how to control that number.

"buffer_size": 16384, "max-att-writes": { "help": "Maximum number of simultaneous ATT write commands", "value": 4, "macro_name": "ATT_NUM_SIMUL_WRITE_CMD" }, "rx-buffers": { "help": "Default number of receive buffers.", "value": 16384 }, "tx-buffers": { "help": "Default number of send buffers", "value": 16384 }

}, "target_overrides": {

"NUCLEO_WB55RG": { "cordio.rx-acl-buffer-size":16384, "cordio.max-att-writes":4, "platform.stdio-flush-at-exit": true, "cordio.desired-att-mtu": 251,

Hi Shin,

Could you attach the hard fault log? Thanks.

posted by Desmond Chen 15 Oct 2019

1 Answer

5 years, 1 month ago.

Hi Shin,

From your description, it seems maybe there is a potential memory leak issue, would you attach the log for us reference?

Regards, Desmond

++ MbedOS Fault Handler ++ FaultType: HardFault Context: R0 : 00000801 R1 : 00000082 R2 : 20001584 R3 : 35336563 R4 : 20001584 R5 : 20002917 R6 : 20001584 R7 : 2000AF9C R8 : 00000000 R9 : FFFFFFFF R10 : 20002970 R11 : 0000010C R12 : 00000028 SP : 20002908 LR : 0801BB51 PC : 35336562 xPSR : 61000000 PSP : 200028A0 MSP : 2002FFD8 CPUID: 410FC241 HFSR : 40000000 MMFSR: 00000001 BFSR : 00000000 UFSR : 00000000 DFSR : 00000008 AFSR : 00000000 Mode : Thread Priv : Privileged Stack: PSP MbedOS Fault Handler ++ MbedOS Error Info ++ Error Status: 0x80FF013D Code: 317 Module: 255 Error Message: Fault exception Location: 0x801C4C3 Error Value: 0x35336562 Current Thread: main Id: 0x2000A174 Entry: 0x801C7B1 StackSize: 0x1000 StackMem: 0x20001B28 SP: 0x2002FF7C For more info, visit: https://mbed.com/s/error?error=0x80FF013D&tgt=NUCLEO_WB55RG

posted by SHIN ETHAN 22 Nov 2019