FICR register CODESIZE and CODEPAGESIZE at FFFFFFFF

Hi,

Using nRF Connect SDK v2.2.0, I am trying to use the peripheral_lbs sample code.

I am building and flashing the example on my custom board with an nRF52832 rev 1.

When the bt_enable is called from main, I get an error. I managed to tracked down the source of the issue : the NVS module is not initialized correctly because FICR->CODESIZE and FICR->CODEPAGESIZE both return all 1s.

Looking a the errata, it seems that the rev 1 of the nRF52832 had issues with the content of the FICR registers :

'163 - FICE - Code and RAM size fields do not match chip specification'

Can you confirm me that the rev 1 indeed had issues with the FICR registers ?

Lookng at the nrfx_nvmc.c file, I see the flash_page_size_get and flash_page_count_get functions. Both use the nrf_ficr driver to access the FICR registers.

Is there a clean way to make the NVS module work without the using the FICR module ?

I see some functions are contained in a ifdef CONFIG_FLASH_PAGE_LAYOUT, but the upper most function, the page_layout function pointer in the flash_driver_api structure seems to be always called by flash_get_page_info...

Regards