piece of code
p_header->u16_headId=*((uint16_t *)&au8_buf[0]);
p_header->u16_dataId=*((uint16_t *)&au8_buf[2]);
p_header->u16_devClass=*((uint16_t *)&au8_buf[4]);
p_header->u16_firmRev=*((uint16_t *)&au8_buf[6]);
p_header->u32_devId=*((uint32_t *)&au8_buf[8]);
printf("print 1\n");
p_header->u32_dataSize=*((uint32_t *)&au8_buf[12]);
printf("print 2\n");
p_header->u32_dataCRC=*((uint32_t *)&au8_buf[16]);
p_header->u32_headerCRC=*((uint32_t *)&au8_buf[60]);
on the output i have only print 1
is any logic explanation why i does not have print 2
is this my ide problem or its something i shuld know
Raegerd
-k