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

Why return different results between and ,when i run the same program.

Hi, After i use sd_ble_gatts_hvx() ,i will receive a BLE_EVT_TX_COMPLETE.

The "tx_complete.count" is no problem when i use softdevice 5.2.1 . e.g. count =1. this is correct.

But the "tx_complete.count" is wrong when i use softdevice 6.0.0-1 . e.g. count =199. (count allways between 180~210)

Regards

Parents
  • I just tested it, and as far as I can see this will happen if you use the 5.2.1 header files with the 6.0.0 softdevice.

    You should always take care to compile your application with the header files that came with the softdevice you're using, but this is of even higher importance when there are functionality and API changes (i.e. when there is a major version increment). When not doing this, you may see strange return errors (in case of changing SVC numbers) or wrong event data (in case of event structs changing). When using the correct header files, your compiler will take care of this.

Reply
  • I just tested it, and as far as I can see this will happen if you use the 5.2.1 header files with the 6.0.0 softdevice.

    You should always take care to compile your application with the header files that came with the softdevice you're using, but this is of even higher importance when there are functionality and API changes (i.e. when there is a major version increment). When not doing this, you may see strange return errors (in case of changing SVC numbers) or wrong event data (in case of event structs changing). When using the correct header files, your compiler will take care of this.

Children
No Data
Related