This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

blocked task for 3 seconds

Hi,

If I want to run a blocked task e.g. write 1MB data to the external flash size 8MB(NVRAM), that it takes 3 seconds. What is the best way to to in NRF 51822?

Do you think we could wrap pstorage for external flash?

For the communication protocol, we use GPIO simulate SPI and yes we use softdevice 1.0.

Thanks.

Paul

Parents
  • It's blocked what a long read e.g. 3 second read from NVRAM. If I use pstorage, it should be done async, i.e. call pstorage_update and wait for callback event PSTORAGE_UPDATE_OP_CODE.

    I'm not sure whether it could be done on an external flash if the interface is SPI over GPIO. The "SPI over GPIO" was told by my colleague. I'm not that low level of firmware engineer. I'll check with my colleague whether we could use SPI directly.

Reply
  • It's blocked what a long read e.g. 3 second read from NVRAM. If I use pstorage, it should be done async, i.e. call pstorage_update and wait for callback event PSTORAGE_UPDATE_OP_CODE.

    I'm not sure whether it could be done on an external flash if the interface is SPI over GPIO. The "SPI over GPIO" was told by my colleague. I'm not that low level of firmware engineer. I'll check with my colleague whether we could use SPI directly.

Children
No Data
Related