This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Strange Program Unit Value with fstorage

Hi All,

I'm trying to create a hybrid program using the USB CDC ACM example as well as the flash_fstorage example from SDK16. I've been able to get the USB CDC ACM example to work on the dongle, however I'm having issues getting the fstorage to work. Because I'm not using a soft device, i've been trying to use the mvcm backend.

I get an NRF_SUCCESS when I do 

Fullscreen
1
rc = nrf_fstorage_init(&fstorage, p_fs_api, NULL);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

However, when it gets to here:

Fullscreen
1
print_flash_info(&fstorage);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

My output looks like:

========| flash info |========
erase unit: 536871936 bytes
program unit: 2457 bytes

Which both of those seems wrong... for NRF52 I believe erase should be 4096, and program should be 4... Any ideas what could be happening? Thanks!