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.

关于TMS320F28335型号DSP开发,试用CCS进行调试,库文件file.h文件中open()函数的使用



您好,
    问题描述:   我目前使用的是CCS6.0.1,调用了路径为“C:\ti\ccsv6\tools\compiler\c2000_6.2.7\include”库中的“file.h”文件,在我的工程中需要加载一个bin文件,我调用了  open(const char *path, unsigned flags, int mode);这个函数,其中在网上百度open函数后,我将第三个mode参数值设置为0x07,但是一直报错。在程序中open()函数的调用使用如下所示:
        fd = open(path, O_RDONLY,0x07);//O_RDONLY);
        if (-1 == fd)
        {
            cm_result = CM_FILE_ACCESS;
        }  
执行完该段程序后,报错,fd返回值为-1,“CM_FILE_ACCESS”定义的值代表bin文件调用失败。
问题:
         1、我不知道这个函数中第三个参数 mode的值如何确定?
         2、贵公司这个open()函数如何调用?参数说明在哪里查看的到?
         3、这个open函数在win32下使用正常,那么在CCS中如何使用file.h文件中定义的open函数加载一个bin文件?