I am unable to solve misra rule 11.6 warning in this line:
uint32_t * delay = (uint32_t *)0x40086D0C ;
[FYI: typedef long unsigned int uint32_t;]
PC-Lint : Note 923: cast from int to pointer [MISRA 2012 Rule 11.6, required]
What I did:
- Explicitly type-casted, But it doesn't work
- Use memset(), It is working, but that is not the proper way to solve Misra warning. because that was unnecessary increased function call on the system and it may degrade system performance.
Could you share a helpful thought regarding my issue? It will be really appreciated.