07-05-2016, 04:57 PM
Should the second line of your example read:
i.e. you are taking the address of variable? Otherwise, you are dereferencing a null pointer.
Code:
uint8_t * ptr = (uint8_t *)&variable;
<t></t>