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/AM6548: Device driver examples not found

Part Number: AM6548

Tool/software: Code Composer Studio

Hello.

I have a brand new AM65x Industrial Development Kit and want to import an SPI example project into CCS. 

I am trying to follow relevant TI documentation, but it has proven to be very difficult.

Found this exact same issue:

https://e2e.ti.com/support/processors/f/791/t/762996?RTOS-PROCESSOR-SDK-AM65X-No-example-projects-in-PDK

Tried suggested steps therein but to no avail...

I have installed CCS 9.2 on Linux (Ubuntu Budgie 19.04 on VirtualBox).

I have also installed the RTOS SDK from http://software-dl.ti.com/processor-sdk-rtos/esd/AM65X/latest/index_FDS.html

Both installations have been to the default location: /home/[user]/ti

I've run pdksetupenv.sh.

When starting CCS the newly installed products are automatically discovered.

BTW, some of the installation scripts have a hard coded CCS version of 901 in them. These have been changed to 920...

Moving on to the examples:

http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_device_drv.html#mcspi-qspi-ospi

I've run the listed scripts:

"To build and clean libs/apps from top-level makefile:
cd <pdk>/packages
make spi
make spi_clean"

And have also run the following:

"cd <pdk>/packages
./pdkProjectCreate.sh [soc] [board] [endian] spi [project type] [processor] [SECUREMODE=<yes/no>]
Import and build CCS Project from  <pdk>/packages/MyExampleProjects/"

With the following args:

$ ./pdkProjectCreate.sh am65xx am65xx_idk little spi all mcu

The only result is a printout with the following

"..No projects detected. Project generation complete."

I have spent about a week on this, and to be fair I've run the above scripts with various parameters that I can no longer account for.

At some point (probably when running pdkProjectCreate.sh without any arguments at all) something was created:

the folder ~/ti/pdk_am65xx_1_0_5/packages/MyExampleProjects popped up with something that looks like the example projects.

However, these are not recognized as projects by CCS. 

The contents of MyExampleProjects are just files, with names like: MCSPI_Loopback_evmAM335x_armExampleProject

with a lot of path definitions, all being "../../"

A colleague has tried to do the installation on a second Linux PC following the same procedure, but there the MyExampleProjects folder in never even created.

On a third PC, a installation was made previously, albeit for another processor (AM57x). There the MyExampleProjects folder does not contain files like:

MCSPI_Loopback_evmAM335x_armExampleProject but FOLDERS with the same names!

Three installations with three different behaviors...

Obviously I am missing a step (or steps). 

Any help would be much appreciated,

Anders.

 




  • Hi Anders,

    I am able to build AM65xx SPI RTOS example successfully. I am using AM65x PSDK RTOS v6.00, CCS 9.0.1 and linux Ubuntu 16.04 64-bit, as below release notes suggest:

    AM65xx SPI RTOS examples can be built only with makefile, you can NOT use pdkProjectCreate script. Below are my steps to build these examples:

    ~/ti/processor_sdk_rtos_am65xx_6_00_00_07$ source setupenv.sh

    ~/ti/pdk_am65xx_1_0_5/packages$ source pdksetupenv.sh

    ~/ti/pdk_am65xx_1_0_5/packages$ make spi_clean

    ~/ti/pdk_am65xx_1_0_5/packages$ make spi


    As result, the newly created binary files are located at:

    ~/ti/pdk_am65xx_1_0_5/packages/ti/binary/

    In this folder I have:

    MCSPI_Baremetal_MasterSlave_Dma_TestApp

    MCSPI_Baremetal_MasterSlave_TestApp

    MCSPI_MasterSlave_Dma_TestApp

    MCSPI_MasterSlave_TestApp

    OSPI_Baremetal_Flash_Dma_TestApp

    OSPI_Baremetal_Flash_TestApp

    OSPI_Flash_Dma_SMP_TestApp

    OSPI_Flash_Dma_TestApp

    OSPI_Flash_SMP_TestApp

    OSPI_Flash_TestApp

    ti


    Regards,
    Pavel

  • Hello.

    Sorry about the late reply. I believe I owe you a thanks for your explanation.

    The examples that are built with makefile are not the ones we are interested in. On the RTOS web page, 13 examples are listed related to SPI/QSPI/OSPI/MCSPI.

    It is clearly stated that 10 out of those 13 projects have build type "CCS project". Unfortunately, we did not spot that AM65x was not among them.

    We decided to change processor to one with better support. Problem solved.

    Regards,

    Anders