Flash read/write error via SPI3

Hi,

I'm using SPI3 to control an external flash for evaluation.

I implemented a stress test project for read/write functionality on nRF52840DK, but got some errors.

Seems that when system is busy,  spi3 read/write function will work abnormal.

After booting, project will start write data to external flash and read back to verify data.

I use work queue to control led for implement a breath light and turn on/off this function by command.

After I turn on the led function(led on), the reading and writing of the external flash started to have errors.

The test project is attached in the attachment.

2211.flash_test_error.zip

SDK: NCS 2.3.0

Andy.

Parents
  • Hi again,

     

    There's two options that I've seen here that helps the scenario.

    1. Change the MAIN_THREAD_PRIORITY to -2 (reduces the chance of the issue occurring)

    2. Update to NCS main - this completely eliminates the issue.

     

    I haven't found which PR/commit in zephyr that has fixed this issue, but it will be included in the next NCS version.

     

    Kind regards,

    Håkon

Reply
  • Hi again,

     

    There's two options that I've seen here that helps the scenario.

    1. Change the MAIN_THREAD_PRIORITY to -2 (reduces the chance of the issue occurring)

    2. Update to NCS main - this completely eliminates the issue.

     

    I haven't found which PR/commit in zephyr that has fixed this issue, but it will be included in the next NCS version.

     

    Kind regards,

    Håkon

Children
Related