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

Issues adding Peer Manager to UART template. undefined reference to `nrf_fstorage_sd'

Windows 10, Segger V4.52c, S132, SDK 15.2.0, nRF52832

I'm trying to add Peer Manger to the UART template.  I included all the C files from a tutorial I found and enabled fstorage and peer manager in sdk_config.h.

I get the error undefined reference to `nrf_fstorage_sd' in the file fds.c on line 688.  
I find it weird that nrf_fstorage_sd isn't even on that line.

Is this an IDE error with Segger? Or am i missing something?

  • This seems strange indeed. Can you confirm that you've added the nrf_fstorage_sd.c file, nrf_fstorage_sd.h header, as well as the nrf_fstorage.h header to your project (where nrf_fstorage_sd is defined)? 

    Best regards,

    Simon

  • Thank you! I wasn't paying attention and only add the nrf_fstorage.c and not nrf_fstorage_sd.c.  I think the IDE error threw me off thinking it was something else.