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.

code composer studio interfacing DSK C6713

hi

am trying to connect to CCS using my simulink model, but am enerating an error saying Does not match the target endianess, not loaded. and also

 

the call to ccslink_ert_make_rtw_hook, during the exit hook generated the following error:

there was a problem loading the COFF file.

The matlab version am using is R2009b, is this got anything to do with this?

DO i need to try with R2008a ?

Please help me ...

Thanks in advance...!!!

 

 

  • The two errors sound related. An endianness mismatch would cause the program load to fail.

    Basically simulink is building the application for one endianness and your DSK is the other endianness. You'll have to change the setting in your build options or on your DSK (see Section 1.5 of this doc).

    Thanks

    ki

  • hi lee,

    i checked my config switch after looking at ur message, the switch 2 was turned on and i went through the manual and i found that the switch 1(which controls the endianess) should be on and i did that..but even though am getting the same error!!

    using matlab 2009b does any thing with this?

    Thank You..

  • Sorry but I am not familiar enough with Matlab to comment on the differences between the two version. It is best to contact Mathworks directly.

    You may want to try running CCS by itself and see if you can get it to load the generate out file ok.

  • hi Lee,

    i tries to run the program by using CCS itself, i tried to run the program by opening the hello.pjt file(which is in CCS 3.3 itself) and i am generating the error saying the No valid program is currently loaded in to memory.

    Thank You.....

     

  • Hi,

    Opening the hello.pjt file is only part of the process. You then need to build the project (menu Project --> Build) and, if no errors or warnings were shown in the output window, you can load the code to the board (menu File --> Load Program). You should then browse to the location of the .out file, which is probably named <hello.out> and is located in a subdirectory called Debug.

    If the file does not build properly or does not load properly due to endianess, then you should inspect this configuration in the project properties (menu Project --> Build Options).

    Hope this helps,

    Rafael