This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2340R5: basic_ble crashes using static random address

Part Number: CC2340R5
Other Parts Discussed in Thread: SYSCONFIG

I am trying to change the address type to static random address, but after the modification the basic_ble example did not work anymore. The program never enters App_StackInitDoneHandler() after executing vTaskStartScheduler().

I have noticed an invalid random address can cause the BLE stack to crash on CC26x2, so I tried with two different addresses which I believe both were valid: C0:11:00:11:00:11 and CA:00:00:00:00:CA, both did not work.

Please help confirm if this is a bug in the stack, thanks!

SDK: simplelink_lowpower_f3_sdk_7_20_00_29

Board: LP-EM-CC2340R5

Best regards,

Shuyang

  • Hi Shuyang,

    I am afraid the addresses you are mentioning are not valid Random addresses.

    Can you please check with C0:11:00:11:00:13 and CA:00:00:00:00:CF?

    Best regards,

  • Hi Clement,

    I tried both of the addresses and they did not work neither. Can you please help verify?

    Best regards,

    Shuyang

  • Hi Shuyang,

    I am not sure which device you are currently using. Can you specify this information?

    Also, can you please verify with CF:00:00:00:00:CF?

    Regards,

  • Hi Clement,

    It is not because of the address, but because the generated random address by sysconfig is not passed to the appMainParams struct.

    Adding .pDeviceRandomAddress = pRandomAddress to appMainParams struct in app_main.c will fix this:

    I suppose this is a bug in the stack, would you please help file a ticket to fix this? Since CC2340 does not support a secondary BLE address in CCFG, customers are using the random address to specify the address of their products, this could impact other customers as well.

    Best regards,

    Shuyang

  • Hi,

    I have reported your findings.

    Thank you for sharing.

    Best regards,