2023-06-19 11:23 PM
Created an Azure RTOS project to have FileX access the MX25LM51245G NOR flash memory in the B-U585I-IOT02A discovery kit. Configured LevelX for OCTOSPI2 and MX25LM51245G as the OSPI component. Enabled DMA Channel 12 with a linear linked list. Linked OCTOSPI2 to the DMA channel with the following call in main.c: hospi2.hdma = &handle_GPDMA1_Channel12;
The code runs until the call into the HAL_OSPI_Receive_DMA() function (stm32u5xx_hal_ospi.c). It fails on the if for p_queue which appears to be null. It there something else that needs to be configured or created in code?
Solved! Go to Solution.
2023-06-20 02:29 AM
Hello @SLimi.1 ,
I advise you to start from an available example.
For that I recommend you to take a look to this Fx_NoR_Write_Read_File example running on B-U585I-IOT02A board. This application provides an example of Azure RTOS FileX and LevelX stacks usage on B-U585I-IOT02A board, it demonstrates how to create a Fat File system on the NOR flash using FileX alongside LevelX. The application is designed to execute file operations on the MX25LM51245G NOR flash device.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-06-20 03:22 PM
Thank you. The problem configuring the correct DMA channel to 0 and performing a Standard Request Mode. Then set the Request to OCTOSPI2 did the trick.
2023-06-20 02:29 AM
Hello @SLimi.1 ,
I advise you to start from an available example.
For that I recommend you to take a look to this Fx_NoR_Write_Read_File example running on B-U585I-IOT02A board. This application provides an example of Azure RTOS FileX and LevelX stacks usage on B-U585I-IOT02A board, it demonstrates how to create a Fat File system on the NOR flash using FileX alongside LevelX. The application is designed to execute file operations on the MX25LM51245G NOR flash device.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-06-20 03:22 PM
Thank you. The problem configuring the correct DMA channel to 0 and performing a Standard Request Mode. Then set the Request to OCTOSPI2 did the trick.