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

Sometimes when i use fds_gc() i have SOFDEVICE assertion failed

Hi everyone,

I have an issue when i am writing to flash sometimes i get a SOFTDEVICE assertion failed just after using the function fds_gc().

The structure i write to flash is this one :

typedef struct
{
    uint8_t tag_tab[TAG_ID_LENGTH];
}tag;

typedef struct {
    uint8_t reader_cfg;
    //uint8_t reader_sn[SIZE_OF_SN];
    uint8_t reader_mac[PARAM_MAC_SIZE];
    uint32_t number_of_tag;    
    tag tab_tag_autorized[AUTOPROG_NB_OF_TAGS_MAX];   
    
} PARAM_AUTOPROG_t;

When my tab tab_tag_authorized have a size of 10 everything works fine but when it is 100, after 3 writing in flash i have always the softdevice assertion failed issue, so this is not random error.

I have 10 FDS pages of 1024 bytes so i don't think it is that memory is full

Is there a way to know why the sofdevice does not work ? What are the standard issue that leads softdevice to crash ?

I am using nrf52840 with SDK 15.2.0 and sofdevice nrf52_6.1.0

Thank you for your help

Related