This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Error 133 (0x85): GATT ERROR with custom service tutorial

Hello,

I am new to the Nordic Environment. I am following the excellent tutorial to create a custom service and characteristic.

Everything worked fine until Step 6(Handling the Write event from soft device). 

However, after working on Step 7 & 8(Propagating Custom Service Events to Application and Notifying the Custom Value Characteristic), I get Error 133: GATT ERROR on the nRF Connect app (on a One Plus 5) when I try to connect to the advertised label. 

I have read the other posts related to this issue but can't my sense of them with respect to my case.  What could be the reason for sudden occurrence of this error?

Please help.

Thanks

Parents Reply
  • I set a breakpoint in on_cus_evt. It enters the on_write function in blle_cus.c but it does not enter the on_cus_evt function in main.c. I get an 'Unknown function at some address'.

    Here is the code of on_cus_evt:

    static void on_cus_evt(ble_cus_t     * p_cus_service,
                           ble_cus_evt_t * p_evt,
                           ble_evt_t const * p_ble_evt_main)
    {
        
        switch(p_evt->evt_type)
        {
            
            case BLE_CUS_EVT_WRITE:
    
                printf("%s"," write to sd card ");
                break;
                
            case BLE_CUS_EVT_NOTIFICATION_ENABLED:
                break;
    
            case BLE_CUS_EVT_NOTIFICATION_DISABLED:
                break;
            
            
            case BLE_CUS_EVT_CONNECTED:
                break;
    
            case BLE_CUS_EVT_DISCONNECTED:
                  break;
    
            default:
                  // No implementation needed.
                  break;
        }
    }

Children
Related