This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

fatfs format hangs forever using newer compiler

Other Parts Discussed in Thread: SYSBIOS

so using compiler 7.3.23 whenever i try to run my code in release mode it will hang forever waiting for the sdcard to be formatted. when we try to do the same thing in debug mode it mostly works. we are using sysbios and BIOSPSP to run the sdcard drivers

when i got back to 7.3.17 and change nothing else and build in release or debug mode it works just fine

here is what i am using

CCSv5.5

XDC 3.25.6.96

SYSBIOS 6.37.5.35

EDMA3 LLD 2.11.14

BIOSPSP 3.0.1.0

any idea what might be going on here?

  • While anything is possible, I doubt this is a problem in the compiler.  It is more likely this is a subtle HW timing issue that is present all the time.  Among the different builds with very similar compilers and configurations, some builds trip over the issue, and others do not. 

    I can suggest two different methods of investigation to consider.

    One is to narrow the set of functions to consider as causing the problem.  For that, adapt the technique described in this wiki article.  Note you are interested in any function which changes size at all.  With any luck, this is a small number of functions, and it is practical to investigate each one in depth.  Note we are using size as a proxy for different.  It is possible to be different, yet the same size.  But it is more likely that a meaningful difference which could relate to the root cause of the problem will also cause a size difference.

    Another method is based on the fact that compiler releases 7.3.17 and 7.3.23 differ only in bug fixes.  So look at the file DefectHistory.txt in the root directory of the compiler installation for version 7.3.23.  It has a short summary of each bug fixed since 7.3.17 was released.  Consider whether any of those bug fixes might relate to the problem you experience.

    Thanks and regards,

    -George