I am performing a pointer assignment in an Embedded C script like so:
uint32_T *a = (uint32_T *) (4096U);
Basically, I need a to point to the address location 4096 (decimal)
I get the MISRA warning as specified in the title (I use Code Composer Studio's MISRA C:2004 checker).
How can I fix this warning?
PS: uint32_T is a typedef for unsigned long