This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problems with fileopen and the File I/O routines

Hello.

I try to open a file in writing mode in a SDHC Card with the LPC4088, but I have very big problems.

If I use the File Maintenance Routines (fformat, fdelete, frename..) It's all ok, but if I use the File I/O Routines (fopen, fclose..), I obtain a blue screen and my board is totally idle.

I debug my software and I discover that if I use the fopen or other File I/O routines the power to SD Card is off, the SD Clock isn't present and the SD is completely idle.

I suspect that here is a memory problem, perhaps the fileopen and the other file I/O routines use wrong memory locations or here is a overflow.

What'is your opinion? You have encounter in the past a similar problem?

Thank's and Regards.

Tiziano Molinari

  • If I use the File Maintenance Routines (fformat, fdelete, frename..) It's all ok, but if I use the File I/O Routines (fopen, fclose..), I obtain a blue screen and my board is totally idle.

    Where do you get a blue screen?

    Note that file i/o routines use memory in the heap area for each open file - maybe that's the cause of your problems...

  • I have a LCD Display on my board. Here I have a blue screen.

    Thanks for your help.

    I verify the heap memory..

  • Remember that nobody here knows anything about you or your project other than what you describe in your posts. So we have no idea what (if anything) might be the significance of a "blue screen" in your particular application.

    On a Windows PC, a "blue screen" has a specific meaning - but we have no idea what (if anything) it might mean in your particular application.

    So you have to think what could cause your screen to go "blue" in your specific application...