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.

Attribute validation Failed

Hi Todd,

Thanks for your reply.

I was able to build application as per your advice... It works smooth....

But one thing I faced was, After adding OAD, build was successfull and when i tried to connect it via Device monitor(version 2.3.0), I got "Attribute validation Falied".

So i resolved this issue by putting a slight modification in firmware. 

#ifdef FEATURE_OAD
VOID OAD_addService(); // OAD Profile
OAD_register((oadTargetCBs_t *)&SPPBLEServer_oadCBs);
hOadQ = Util_constructQueue(&oadQ);
#endif //FEATURE_OAD

#ifndef FEATURE_OAD_ONCHIP
// SimpleProfile_AddService(GATT_ALL_SERVICES); // Simple GATT Profile
SerialPortService_AddService(GATT_ALL_SERVICES); //SerialPortBLE service
#endif //!FEATURE_OAD_ONCHIP

First I registered OAD service, then registered serial port service. Earlier it was vice versa ( ie when Attribute validation failed error appeared)

Does that mean that order in registering service is important??

Please give me a clarification....

  • Hi Todd,

    Thanks for reply.

    Somehow i managed to over come this. But then I m unable to subscribe to notifications from light blue app. Reading that characteristics gives "No Value"

    Firmware was working well before adding OAD.

    Dont know why this is happening. Any work around for this??

  • Hi Pavithra,

    It's possible that there was memory allocation failure in that order. Ideally, the order shouldn't matter. Registering the service passes the table you defined to the GATTServApp, as well as initialize any CCCDs and characteristic values.

    Perhaps to verify this issue, try enabling ICall HEAP Metrics and see if the there's a block allocation failure in the set up that causes issues.

    You can view instructions on how to hook into the HEAP Manager here: software-dl.ti.com/.../gen-debugging.html

    Regards,
    Rebel