Part Number: CC2745R10-Q1
你好,我通过syscfg配置了广播数据,使用的是厂商自定义数据,但是编译生成的ti_ble_config.c文件中,adv_Data1变量的长度不符合ble广播规范,会在数据末尾自动添加一个0x00字节的数据,这个是否是正常的?

Yes, the adv packet allows for 21 byte length variable name under legacy advertising specs, so if the name is less than 21 bytes it will pad it with 0x00.
May I ask what you are trying to implement? Advertisements have a set size as per the BLE specs, including flags and control bits. Legacy Advertisements have a total limit of 31 bytes, where 10 bytes are allocated for overhead (flags and control bits). Extended advertisements have a limit of 254 bytes in a single packet, with a total chained packet limit of 1650 bytes.
So to answer your question, the 0x00 padding is necessary as per the specs in order to fit the 31 byte size. I do believe you choose what to pad with, but you would have to pad the device name with something so that the packet size follows the specs.