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

Parents
  • 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...

Reply
  • 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...

Children