error in generate code for stm32WBA54 with MX tools
For your information
Sizeof is used in place of strlen and my coordinator receive a \0x00 at the end of the string !!
when i generate code with MX generation tools, in function : in red old code in green new code
void APP_ZIGBEE_ConfigBasicServer(void)
{
static struct ZbZclBasicServerDefaults stBasicServerDefaults;
/* Initialize Basic Server Cluster 'defaults' information */
memset( &stBasicServerDefaults, 0x00, sizeof(stBasicServerDefaults) );
stBasicServerDefaults.mfr_name[0] = sizeof strlen( APP_ZIGBEE_MFR_NAME );
memcpy( &stBasicServerDefaults.mfr_name[1], APP_ZIGBEE_MFR_NAME, sizeof( APP_ZIGBEE_MFR_NAME ) );
stBasicServerDefaults.model_name[0] = sizeof strlen( APP_ZIGBEE_CHIP_NAME );
memcpy( &stBasicServerDefaults.model_name[1], APP_ZIGBEE_CHIP_NAME, sizeof( APP_ZIGBEE_CHIP_NAME ) );
stBasicServerDefaults.date_code[0] = sizeof strlen( APP_ZIGBEE_APP_DATE_CODE );
memcpy( &stBasicServerDefaults.date_code[1], APP_ZIGBEE_APP_DATE_CODE, sizeof( APP_ZIGBEE_APP_DATE_CODE ) );
stBasicServerDefaults.sw_build_id[0] = sizeof strlen( APP_ZIGBEE_APP_BUILD_ID );
memcpy( &stBasicServerDefaults.sw_build_id[1], APP_ZIGBEE_APP_BUILD_ID, sizeof( APP_ZIGBEE_APP_BUILD_ID ) );
