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

Identify address operation with flash handler

Hi ,
i have implemented a event to flash handler  with NRF_SDH_SOC_OBSERVER
and it work .
But I need to know which operation is related to the event ,
Es:
void FlashEvent_Handler(uint32_t sys_evt, void * p_context)
{
    switch (sys_evt)
    {

I suppose that p_context may contain some information ,
but i have not found how to use the variable .

Thanks in advance for any suggestion
Andy

Parents
  • Hi Andy,

    The flash SoC event from the Softdevice does not include any context information. So that leaves is up to the application to keep track of which operation the flash event belonged to. You may be able to utilize the context pointer for this (pointer is provided when you register SoC observer(s). Are you using fstorage or FDS in your application?

    Best regards,

    Vidar

Reply
  • Hi Andy,

    The flash SoC event from the Softdevice does not include any context information. So that leaves is up to the application to keep track of which operation the flash event belonged to. You may be able to utilize the context pointer for this (pointer is provided when you register SoC observer(s). Are you using fstorage or FDS in your application?

    Best regards,

    Vidar

Children
Related