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.

Error about EMIF

I'm a beginner. I set the CCS 3.3 to the C6701 Device Simulator mode. A project about prewitt operater to dealing a image has been build. There's no problem when I compile and rebuild the project. But When I load and run the .out file, the Error about EMIF appears. It is "Error: EMIF: Access to 0x1438 is not expected in mode 1". Please help me, I have searched the Google and forum. But no answer is founded. thx a lot!

  • Siming Liu,

    Welcome to the TI E2E Forums.

    In the simulator, you can use the single-stepping features or you can set a breakpoint and run. Using these methods, you can narrow down the source of the error to find out when the error is generated.

    Please narrow down the region of code where the area occurs. It will be easier to find out what function or argument is causing the problem.

    You may want to double-check the addresses specified in your linker command file, and also check the addresses actually used, as shown in the linker map file.

    Regards,
    RandyP

  • Hi RandyP,
    i`m a beginner from china and i have the same trouble as this topic said. When I debug a project based on C6701 in CCS 3.3 ,it says that:"Error: EMIF: Access to 0x6ae0 is not expected in mode 1 ". This is a part of my code:

    .global checkaddress
    .data
    checkaddress .word 089ABCDEFh
    .text
    check1:
    STW A5,*--B15(4)
    STW A4,*--B15(4)
    STW B4,*--B15(4)
    MVKL checkaddress,A5
    MVKH checkaddress,A5
    LDW *A5,B4
    MVK 0x0000,A4
    MVKH 0x0000,A4
    STW A1,*--B15(4)
    NOP 2
    CMPEQ A4,B4,A1
    ..........

    the error originated from this instruction: "LDW *A5,B4", but I really don`t know how this problem occurs!

    I have checked the address in the .map file, it says:
    .data 0 00006ae0 00000004
    00006ae0 00000004 checkblock.obj (.data)
    it seems that everything is right?!?!

    if I run this project based on C6713 simulator, this error will disappear. I really confused! How can I sovle this error in C6701?
    thanks!