Using exactly the same code on two different CC42541 hardware boards , osal_snv_init() is failing when calling initNV( )in osal_snv.c.
The call chain is: main()->osal_snv_init() ->initNV( )->cleanErasedPage()->erasePage().
then erasePage() calls first HalFlashErase() and then HalFlashRead() to compare the read value with 0XFF which is value expected after erase.However the value returned is 0x70. therefore it sets the failF = TRUE;
Otherwise both boards works fine. There are no other issues with the software.
Is there a custom version of the CC2541 that does not support snv operations ?