Hi all!
We are working on a project based on IMXRT1050 – EVKB where fatfs is implemented using SDcard, according to NXP example.
We are facing a stranger behavior regarding SDMMC_OSADelay() function, when instead delay milliseconds, it take several minutes.
The stranger thing is when this happens. The fact to add or remove some code from anywhere from software, causes the SDMMC_OSADelay() to work well or not.
Example when everything works fine, including Sdcard:
Hw_and_sw_initialization();
SD_PollingCardInsert();
Foo_func(); //this function just return 1.
Example when SDMMC_OSADelay() take minutes:
Hw_and_sw_initialization();
SD_PollingCardInsert(); // software get stuck here for several minutes, and when continue, SDcard is not working.
//Foo_func(); //this function just return 1.
Any help will be welcome!
Best regards,
Angelo.