Hi,
I have a LPCXpresso54628 board and I was wondering does anybody have an example how to implement SPIFI into FreeRTOS? If no, any ideas how to implement it (taking the lpcxpresso54628_driver_examples_spifi_spifi_dma_transfer as a reference?
Thank you for any help.
Hi primate,
Hello jeremyzhou,
Thank you for the answer.
What would be a better solution in your opinion for using the on-board Quad-SPI flash in FreeRTOS?
I have a project running FreeRTOS where one of the tasks is to take a user input and store it on flash (for later use). One of the inputs is also user settings which would be taken on board power-up.
Have a nice day
Hi primate,
Thanks for your reply.
If the SPIFI flash is just used to store some data and the internal flash is assigned the application code.
Definitely, it's available.
However you need to initialize the SPIFI flash prior to create the tasks in RTOS.
Hope it helps.
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:
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.