Dearjeremyzhou,
I did intialize the SPIFI (like in the DMA SPIFI example) prior to RTOS task but every time I want to write something it hangs at:
SPIFI_SetMemoryCommand(SPIFI0, &command[READ]);
BTW is that function really needed?
Jut to let you know that I have managed to port the polling SPIFI example into my RTOS project and it works relatively OK (sometimes the data is not written into memory like it should and I will need to sort out why). EDIT: looks like a vTaskDelay(5); was needed before enable_quad_mode();
To clarify even further just to see the whole picture:
- I am using lwIP RTOS where, among other things, the user can enter some data
- That data should then be stored into SPIFI flash
- As for the project first everything is intialized and the lwIP task is called
- within lwIP there is also a init function where I have put the function
enable_quad_mode();
I am not sure do I need to put the that function prior to the RTOS task since it works in the RTOS SPIFI polling example.
If you need any more info please let me know.