cancel
Showing results for 
Search instead for 
Did you mean: 

FileX help

KKobe.1
Associate

Platform Nucleo-H563ZI
CubeIDE V1.15.0
ioc file attached


I'm starting with a simple app to get fimilar with the new Middleware.
I created a new STM32 app and enabled ThreadX and FileX.
I also changed the recommended settings for IChache and the system timer (TIM2)

I enabled the BSP LEDs, button, and virtual serial port.

For ThreadX I enabled the core and used static allocation
I tried a pool size of 2048 and 8096 with the same results

For FileX I enabled the core and checked the 'Internal RAM Interface' setting
I tried SRAM3 and SRAM1 with the same results

I created one user thread and put the following in it.

while(1)
{
tx_thread_sleep(10);

BSP_LED_Toggle(LED_GREEN);
BSP_LED_Toggle(LED_YELLOW);
BSP_LED_Toggle(LED_RED);
}

The first thing I noticed is that the BSP init code is placed after
MX_ThreadX_Init(), and does not get executed.
I copied that code before MX_ThreadX_Init()

If the call to create the FileX thread in tx_application_define() is executed,
the code crashes with the cursor at the top of _fx_utility_logical_sector_read()
which is called from _fx_utility_FAT_entry_read()

If I comment the line: status = MX_FileX_Init(memory_ptr); and the return check code,
the code runs and my LEDs blink.

Is there something I missed?


Karl

 

1 REPLY 1
SHs
ST Employee

Hello @KKobe.1 ,

Could you please attach the IOC file associated with your project? 

Please close this topic by clicking on “Accept as solution" button if it fully answered your question.