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.

CCS/66AK2H14: CCS/66AK2H14

Part Number: 66AK2H14
Other Parts Discussed in Thread: 66AK2H12, SYSBIOS

Tool/software: Code Composer Studio

Hi,

I am using 66AK2H14 processor and CCS v7.2.

I am trying to build emif nand example C:\ti\pdk_k2hk_4_0_7\packages\ti\boot\writer\nand\src\nandwriter.c I am not using NAND for booting purpose. I just need to test read and write functionality.

I just created new project and copied nandwriter.c to main and I included platform.h file as

but when I try to build I am getting so many errors .

Please help me to solve these errors.

Thanks and Regards,

Mahima shanbag

  • Hi,

    Please check pdk_k2hk_4_0_7\packages\ti\boot\writer\nand\evmk2h\build\makefile to understand what's is used to build this, like below:

    ORDERED_OBJS += \
    "./src/nandwriter.obj" \
    "../nandwriter.cmd" \
    $(GEN_CMDS__FLAG) \
    -l"ti.platform.evmk2h.ae66" \
    -l"libc.a" \
    -l"ti.csl.ae66" \

    Then, your CCS project should have the same.

    Regards, Eric
  • Hi eric,

    when I try to include  ti.csl.we66 library it was showing no items match as

    one more doubt I have is I tried including  var PlatformLib = xdc.loadPackage('ti.platform.evmk2h') in .cfg file but I got error like

    C:\ti\pdk_k2hk_4_0_7\packages\ti\platform\evmk2h\package.xdc found along the package path, but no schema file was found.    Ensure that the package 'ti.platform.evmk2h' is completely built.

     

    Please help me with this,

    Thanks in advance,

    Mahima Shanbag

  • Hi,

    I checked the my PDK K2HK 4.0.7 installation, ti.csl.ae66 is under pdk_k2hk_4_0_7\packages\ti\csl\lib\k2h\c66\release and ti.platform.evmk2h.ae66 is under pdk_k2hk_4_0_7\packages\ti\platform\evmk2h\platform_lib\lib\debug. There isn't any issue.

    In your file browser, you should select *.* (not *.lib, *.a) to look at the file.

    Regards, Eric
  • Hi Eric,

    Thank you for your suggestion,

    I have imported memory_66AK2H12_CortexA example and copied my code , I included required header files and Libraries as in make file.

    I included the libraries as

    when I try to build I am getting error like

    cannot find -l:C:/ti/pdk_k2hk_4_0_7/packages/ti/csl/lib/k2h/c66/release/ti.csl.ae66
    cannot find -l:C:/ti/pdk_k2hk_4_0_7/packages/ti/platform/evmk2h/platform_lib/lib/debug/ti.platform.evmk2h.ae66


    Please help me to solve the errors.

    One more doubt instead of adding the libraries like above I can include it in .cfg file ryt???

    But when I tried adding platform like var PlatformLib = xdc.loadPackage('ti.platform.evmk2h')  I got

    C:\ti\pdk_k2hk_4_0_7\packages\ti\platform\evmk2h\package.xdc found along the package path, but no schema file was found.    Ensure that the package 'ti.platform.evmk2h' is completely built.

     


    Thanks in advance,

    Mahima Shanbag

     

     

  • Hi,

    I tried to create an arbitrary CCS project, and added CSL and platform libraries, there is no issue for me. If I intentionally spell the library names wrong, then I got error as you saw. Since you give the absolute address in the libraries, try to remove the search path. Or, keep the search path, but modify the library name to make sure search path + library exist.

    Also, you mentioned to add platform in .cfg, first the platform in .cfg is defined by SYSBIOS, this is a definition of the platform, like the memory segment, code/data placement, this is NOT the platform library in the Processor SDK RTOS distribution. Also, there is no platform called ti.platform.evmk2h , please check bios_6_xx_xx_xx\packages\ti\platforms for platform names.

    Regards, Eric