2025-02-13 03:58 AM
Hello everyone,
I'm trying to interface a microSD card using FileX on a custom board with an STM32H747IIT6.
The microSD card is connected to the SDMMC1 peripheral using a 4-bit wide bus, with external pull-ups on the data lines.
Initially, we used FATFS to interface with the microSD card, which worked flawlessly. Now, as we transition to Azure, we want to use FileX. Additionally, we are using NetXDuo to create a web server, with the SD card serving as storage for web server files.
The issue occurs when calling fx_media_open (app_netxduo.c, line 522), which almost always returns error code 0x90 (except for a single successful attempt going step by step via the debugger).
I would greatly appreciate any insights or suggestions on how to resolve this issue.
Best regards,
OskarP.
Solved! Go to Solution.
2025-02-14 02:18 AM
Hello @OskarP ,
Please try downloading the latest X-CUBE-AZRTOS-H7 package from ST.com or Github
For your project, you can start with the FileX example on the STM32H747I-DK board and compare it with the FileX/Fx_Dual_Instance project.
For the NetXDuo web server project, use the Nx_WebServer example. It demonstrates how to develop a web HTTP server on the STM32H735G-DK board based on Azure RTOS NetX Duo stack , and you can easily port it to your STM32H747 board.
Regards
2025-02-14 02:18 AM
Hello @OskarP ,
Please try downloading the latest X-CUBE-AZRTOS-H7 package from ST.com or Github
For your project, you can start with the FileX example on the STM32H747I-DK board and compare it with the FileX/Fx_Dual_Instance project.
For the NetXDuo web server project, use the Nx_WebServer example. It demonstrates how to develop a web HTTP server on the STM32H735G-DK board based on Azure RTOS NetX Duo stack , and you can easily port it to your STM32H747 board.
Regards
2025-02-20 01:00 AM
Hello @MOBEJ,
Sorry for the late reply. In the meantime, I got it working. The code provided in the example you mentioned works fine.
The issue was that the filesystem on the tested SD cards was not compatible with FileX.
In the non-working state, I had formatted the cards using the latest macOS system. After reformatting them on Windows (with the "Fast Format" option disabled), everything works as expected.
Thank you for your help!
Best regards,
OskarP.