s_tToolConfig为结构体(类型:octet-string)(又称为uint8_t)
static void tool_log(void *addr, uint8_t lenght)
{
uint8_t *adr =0;
printf("\r\nread flash_tool: ");
for(uint8_t i = 0; i< lenght/sizeof(uint8_t); i++){
adr=(uint8_t*)((char*)addr+i*sizeof(uint8_t));
printf("%X ",*adr);
}
printf("\r\n");
}
tool_log(&s_tToolConfig,sizeof(s_tToolConfig));//test