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.

Step by Step can not enter function inside

Other Parts Discussed in Thread: SYSBIOS

Hi Sir :

I use sysbios_ind_sdk_02.01.02.02,  CCS 6.2.0.00048, xdctools_3_31_02_38_core and bios_6_42_02_29 to test EtherCat Slave on AM335x ICE V2 board.

I can compile and run successfully, however I get a strange problem.

Void common_main()
{
      Task_Params taskParams;
      BOARDInit(NULL);
      SDKMMUInit(applMmuEntries); // needed first
      boardType = BOARDGetId();

.............................................

.............................................

}

In debug mode, I use "step by step" function(F5), in function above, I can step into SDKMMUInit() but I can not step into BOARDInit().

I never encounter this problem if I use am335x_sysbios_ind_sdk_1.1.0.8.

I do not know if my setting of CCS is something wrong.

Could you give me some suggestion?

Best regards,

Marcus

  • Hello Marcus,
    It is difficult to provide good suggestions without more details. Perhaps you have optimization enabled and the function in question got optimized out? The best way for us to help is if you can provide us a reproducible test case. Or at least the *.out file, related source files (the source files with common_main() and BOARDInint() ), and project build options.

    Thanks
    ki
  • Hi Sir :

    I appreciate your reply!

    In order to do a clean test, I remove my SDK and re-install today.

    I rebuild ethercat_slave example program in directory C:\ti\sysbios_ind_sdk_02.01.02.02\sdk\examples\ethercat_slave.

    All I modify are select bios_6_42_02_29 and xdctools_3_31_02_38_core in RTSC tab and enter VFPV3 in Runtime property.

    I encounter the same problem I use "step by step" function(F5), in function above, I can step into SDKMMUInit() but I can not step into BOARDInit().

    And I also encounter error messages below.

    Can't find a source file at "../source/osdrv_mmu.c"
    Locate the file or edit the source lookup path to include its location.

    ethercat.7zThe attached file is out file, please help me to solve this problem.

    Best regards,

    Marcus

  • lu yuenjune said:
    I encounter the same problem I use "step by step" function(F5), in function above, I can step into SDKMMUInit() but I can not step into BOARDInit().

    When browsing the symbols via Modules view, I can see:

    As you can see, SDKMMUInit has source code correlation while BOARDInit does not. That could explain the behavior your see. Check to see where that function is coming from (a file in your project or a library?)


    ki

  • lu yuenjune said:
    Can't find a source file at "../source/osdrv_mmu.c"
    Locate the file or edit the source lookup path to include its location.

    As for the above message, it is simply telling you that it cannot find the source file in the specified location. Simply browse to the file in your local environment so that the debug can open it for debug.

    Thanks

    ki

  • Hi Marcus,
    Please add board.c and rebuild the project.
    You'll be able to trace the source code.

    C:\ti\sysbios_ind_sdk_02.01.02.02\sdk\starterware\board\board.c