flash_fds example doesnt work with my firmware -- hardfault

Hello,

I am currently trying to include one of nordics flash examples into my project. Ive tried both,  flash_fds and storage example. Unfortunately both will assert after a flash write action. 

I already asked for help a few weeks ago, but using the flash is now my biggest problem so I need help to manage this somehow. best would probably be if I could write the flash at runtime, because I think there might be something up with the timing. Its also impossible to debug because the hardfault will happen quite randomly (which makes sense since writing the flash is asynchronous). so init works, reading from flash also works but erasing and writing does not. 

Sincerely

  • Hello,

    I am sorry about your other ticket. We had a public Holiday here in Norway last week, so I was not working, but we are back in the office now.

    Perhaps it is good to start this investigation from "scratch". I read through your last posts you wrote in the previous case before closing it. They are all valid questions, regarding timing, enabling of RTC, remaining flash space, priorities and so on.

    I remember trying to debug the issue when you sent the application in the previous ticket. I couldn't see any obvious issues, but we can give it another go. The issue was that the callback didn't trigger most times, and when it did, the FDS pages were corrupt. It is a bit easier now, when we are back in the office (no corona lockdown)

    1: Can you please send the latest FW you are using to test this so that I can replicate it on a DK?

    2: You say that the default examples using FDS and fstorage are also faulting? Is that only when using your custom HW, or also when using the nRF52840 DK? And what SDK version are you currently working on?

    Best regards,

    Edvin

Related