peripheral-and-central-uart-sample-crash

Hi,

I did respond to this:

https://devzone.nordicsemi.com/f/nordic-q-a/86426/peripheral-and-central-uart-sample-crash-when-sending-longer-messages

I do not see a update on a response, maybe that im not part of this ticket ??

Could you please have a look at this?

Thanks,

Best Regards,

Theo  

Parents
  • Hi,

    As I said in the ticket you linked, we are working on a fix and I will update you when I have more to share.

    probably not THE sollution, but when i empty (remove the code) of  the routine: 
    static void ble_data_sent(struct bt_nus_client *nus, uint8_t err,
                        const uint8_t *const data, uint16_t len)
    the the crash is gone, and the send data i see on the peripheral.   
    ...but,  probably i have now a missing feature ???? 

    Removing the k_sem_give() in that callback would not be good, but it looks like it would mostly slow the sample down and produce a lot of warnings.

    Removing the rest of the code, along with the k_free() would cause a memory leak and the sample would crash after enough messages were sent.

Reply
  • Hi,

    As I said in the ticket you linked, we are working on a fix and I will update you when I have more to share.

    probably not THE sollution, but when i empty (remove the code) of  the routine: 
    static void ble_data_sent(struct bt_nus_client *nus, uint8_t err,
                        const uint8_t *const data, uint16_t len)
    the the crash is gone, and the send data i see on the peripheral.   
    ...but,  probably i have now a missing feature ???? 

    Removing the k_sem_give() in that callback would not be good, but it looks like it would mostly slow the sample down and produce a lot of warnings.

    Removing the rest of the code, along with the k_free() would cause a memory leak and the sample would crash after enough messages were sent.

Children
No Data
Related