Skip to content

ble scan does not work after driver update #249

Closed
@alexiionescu

Description

@alexiionescu

After the driver update on 27 June the ble scan will crash after hci start scan command.
Last know working version is revision abf6d4b (before driver updates)
To reproduce use project esp-ble-scan
There is commented lines in Cargo.toml for last known working configuration.

INFO - scan started
Exception 'Load access fault' mepc=0x400587d2, mtval=0x00000003
0x400587d2 - r_lld_init_evt_end_type_check_state_get
    at ??:??
0x00000003 - _max_hart_id
    at ??:??
TrapFrame
PC=0x400587d2         RA/x1=0x400051d0      SP/x2=0x3fc85ff8      GP/x3=0x3fccf2f0      TP/x4=0x00000000
0x400587d2 - r_lld_init_evt_end_type_check_state_get
    at ??:??
0x400051d0 - r_lld_ext_scan_dynamic_pti_get
    at ??:??
0x3fc85ff8 - __global_pointer$
    at ??:??
0x3fccf2f0 - _heap_start
    at ??:??
0x00000000 - _max_hart_id
    at ??:??
T0/x5=0xf6422a88      T1/x6=0x4000151e      T2/x7=0x00000000      S0/FP/x8=0x3fc88520   S1/x9=0x3fce0000
0xf6422a88 - _rtc_fast_data_start
    at ??:??
0x4000151e - r_sch_plan_interval_req
    at ??:??
0x00000000 - _max_hart_id
    at ??:??
0x3fc88520 - _ZN8esp_wifi9HEAP_DATA17hb399b07eb12ef028E
    at ??:??
0x3fce0000 - ets_ops_table_ptr
    at ??:??
A0/x10=0x3fc88520     A1/x11=0x00000003     A2/x12=0x3fccf304     A3/x13=0x3fc8b240     A4/x14=0x7f957824
0x3fc88520 - _ZN8esp_wifi9HEAP_DATA17hb399b07eb12ef028E
    at ??:??
0x00000003 - _max_hart_id
    at ??:??
0x3fccf304 - _heap_start
    at ??:??
0x3fc8b240 - _ZN8esp_wifi9HEAP_DATA17hb399b07eb12ef028E
    at ??:??
0x7f957824 - _rtc_fast_data_start
    at ??:??
A5/x15=0x3fc88520     A6/x16=0x00000000     A7/x17=0x000000a7     S2/x18=0x3fc8be16     S3/x19=0x3fc8b214
0x3fc88520 - _ZN8esp_wifi9HEAP_DATA17hb399b07eb12ef028E
    at ??:??
0x00000000 - _max_hart_id
    at ??:??
0x000000a7 - _max_hart_id
    at ??:??
0x3fc8be16 - _ZN8esp_wifi9HEAP_DATA17hb399b07eb12ef028E
    at ??:??
0x3fc8b214 - _ZN8esp_wifi9HEAP_DATA17hb399b07eb12ef028E
    at ??:??
S4/x20=0x3fcdffac     S5/x21=0x00000002     S6/x22=0x3fccf364     S7/x23=0x00007805     S8/x24=0x3fce0000
0x3fcdffac - lld_scan_env
    at ??:??
0x00000002 - _max_hart_id
    at ??:??
0x3fccf364 - _heap_start
    at ??:??
0x00007805 - _hart_stack_size
    at ??:??
0x3fce0000 - ets_ops_table_ptr
    at ??:??
S9/x25=0x40001418     S10/x26=0x3ff1b000    S11/x27=0x3fccf438    T3/x28=0x01001000     T4/x29=0x00000000
0x40001418 - r_rf_rssi_convert
    at ??:??
0x3ff1b000 - ets_ops_table_ptr
    at ??:??
0x3fccf438 - _heap_start
    at ??:??
0x01001000 - _hart_stack_size
    at ??:??
0x00000000 - _max_hart_id
    at ??:??
T5/x30=0x00000000     T6/x31=0x00007e97
0x00000000 - _max_hart_id
    at ??:??
0x00007e97 - _hart_stack_size
    at ??:??

MSTATUS=0x00001801
0x00001801 - _hart_stack_size
    at ??:??
MCAUSE=0x00000005
0x00000005 - _max_hart_id
    at ??:??
MTVAL=0x00000003
0x00000003 - _max_hart_id
    at ??:??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions