I need to solve misra related issues and cert related issues
uint8_t globalRegion;
uint8_t tcc;
uint16_t paramId;
globalRegion = 9U;
If I remove U i get misra etype assign error stating that usgined int is compared with signed value .
globalRegion = 9;
But if i add U I am getting error STRONG.TYPE.ASSIGN.CONST A value '9U' is assigned to the strongly typed variable 'globalRegion' of type 'uint8_t'
globalRegion = 9U;
If TYPECASTED will get another error porting.cast.size Cast of an expression to a type of potentially incompatible size
globalRegion = ((unit8_t)9U);
how to resolve this error without getting any new error