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.

fopen()on MSP430F5529


I am applying TI-RTOS on TI's MSP_EXP430F5529 experiment board.I have loaded the fatfs examples searched from TI Resource explorer into MSP_EXP430F5529. It can creat, read or write file on TF card and everything goes well. However, I could not fopen() file when I am using the CCS project established by myself. There is error information print on the console "{module-rope:8029}: line 307: error {id:0xfae0000, args:[0x3c46, 0x224]}" when running to fopen(). What is the problem?

I also check the SDSPI and FatFS configuration as the demo example shows. In FatFS basic options, I am using "fatfs" as file name prefix, and defining " const char  inputfile[] = "fatfs:"STR(DRIVE_NUM)":input.txt"; " in my c file.

Is there any otherthings that I forget? Please help me!


Vincent

  • Vincent,

    Sorry for the slow reply.

    The error message with "module-rope" results when text strings for error messages are not loaded to the target CPU's memory.  To enable these text strings to be loaded, and a better error message, you can either:

    1) In XGCONF, click on the "Text" module in the "Outline" view, and then check the box "Load text into target memory".

    or 2) Add these two lines at the end of your application's .cfg file with a text editor:

    var Text = xdc.useModule('xdc.runtime.Text');
    Text.isLoaded = true;

    Then rebuild the project, and hopefully you'll see a meaningful error message...

    Scott