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.

How to configure a template project for AM437X Industrial Development Kit

Other Parts Discussed in Thread: SYSBIOS, AM4379

Hi,

I have an IDK AM437X and downloaded a SYS/BIOS SDK for Sitara - there are some basic examples in starterware, but when I import a project "led-blink" into my workspace and try to build it, the info appears that no board info exists (some of the include locations seem to be inactve). I would like to ask which info about my IDK should I enclose (e.g. pins, clock etc) and how to do that  - maybe it is specified somewhere in a tutorial but none of them explained my case so far so I appreciate any help....

Thank you in advance,

Jacek

  • Moving this to the Starterware forum.
  • Please provide the info:

    - what Processor SDK release: 2.0.0?

    - which GPIO led toggle project? GPIO_LedBlink_evmAM437x_armExampleProject or GPIO_LedBlink_evmAM437x_armTestProject? Did you use pdkprojectCreate batch file to create the project?

    - what the exact error log you saw when built it?

    I don't see such issue when we tested here.

    Regards, Eric

  • Hi, 

    Sorry for lack of details - I have CCS 6.1.2,  SYSBIOS IND SDK 2.1.1.2, XDC 3.31.00.24 together with my hardware AM437X IDK.

    I imported the starterware example project gpio_app_led_blink (obviously I downloaded the board, dal, device, example_utils, soc and utils projects too). Configurations for all were am43xx_debug and the variant IDK_AM437X [Cortex A] selected. It was bulit without any warnings or errors. Afterwards, a target config file was established with my board (IDK AM437X) and XDS100v2 - the connection test was succesful.

    In CCS Debug mode the connection to CortexA is done together with GEL script execution and board inicialization. When loading an .out program, an error occurs and the details are gathered in console (see below). It is quite strange, because yesterday loading errors didn't occur but the main execution was being broken during cache initialization or console initialization.

    Regards, 

    Jacek

  • Here I enclose the error and console details:

  • Edit: Somehow, the connection error vanished (however its cause can still exists... - I didn't find any hint).

    Right now, during cache enabling I have the another error (please see below) - when getting to the line 

    if((CACHE_INNER_OUTER & cacheLevel ) && (NULL != pOuterCache) &&
    (NULL != pOuterCache->pFnOuterCacheEnable)) in function CACHEEnable.

     

  • Hi Jacek

    The starterware example projects are designed to be stand alone implementations. Unfortunately it is difficult to convert a starterware example into sysbios based solution.

    To understand the Sysbios examples it might be better to start with the sysbios example utils project.
    <Installation Directory>\sysbios_ind_sdk_2.1.1.2\sdk\examples\example_utils project.
    In this example you can see a working sysbios configuration and the construction of some basic functions.
    For example- how the SYSBIOS API Board_setTriColorLED calls the Board_setTriColor driver which calls the Starterware Device Abstraction Layer GPIOPinWrite API.

    David
  • Hi,

    Thank you for your response.

    My intention was trying some starterware examples without any OS before starting with sysbios based solutions. I know that Sitara is dedicated to work with an OS but as a beginner this step seemed the easiest to start.  Do you mean that on my kit with AM4379 I can't load the starterware example projects directly without OS?

    By the way, can you tell me in which directory I will find the libraries with AM437X IDK hardware configuration such as LEDs, buttons etc. I was looking for these files in board/am43xx but I can't find anything what includes the exact addresses of GPIO ports.

    Best regards,

    Jacek

  • Hi Jacek

    Sorry I mis-understood. You are on the right track.
    Let me walk though the steps that I took to build and run this example.
    Import from <installation_directory>\sysbios_ind_sdk_2.1.1.2\sdk\starterware
    the following projects board, dal, device, example_utils, gpio_app_led_blink, soc, and utils .

    Change the properties of each of the imported projects to
    On the General Properties window
    Select "Manage Configurations" - Highlight "AM43xx_debug" - Press "Set Active" and Press "OK"
    Click on the "Configuration" drop down box and select "AM43xx_debug [ Active ]"
    Select the "Variant:" right-most drop down box and select "IDK_AM437X [Cortex A ]"
    Press "OK" to close the window

    After all of the projects have been updated

    Reopen the gpio_app_led_blink properties window.
    On Build > GNU > Symbols window
    verify that am4379 and AM437X_Family_Build are shown.
    Press "OK" to close the window

    Rebuild the gpio_app_led_blink project.

    Follow the " Launching and Debugging application in CCS" recommendations
    in the SYSBIOS Industrial SDK Getting Started Guide
    in <Installation_DIrectory>\sysbios_ind_sdk_2.1.1.2\sdk\docs

    David

  • Hi David,

    Thanks for your answer.

    All the steps coincide with the things I did, except for one - in my blinking led project I have two symbols: am4379 and AM33XX_Family_Build. When I change the second one into AM437X_Family_Build, the error occurs (please see below).

    Do I have to set the Syymbol AM437X_Family_Build for all the projects?

    BTW: You wrote that the symbol should be: AM437X_Family_Build - while in the other projects it is AM43XX_Family_Build - which one should be set?

    Regards,

    Jacek

  • Hi Jacek

    Sorry you are correct - I should have said AM43X_Family_Build .

    The Symbols am4379 and AM43X_Family_Build for a project areset after the following properties are set
    and OK is selected so that the configuration window is closed.

    On the General Properties window for each of the projects; board, dal, device, example_utils,
    gpio_app_led_blink, soc, and utils

    Select "Manage Configurations" - Highlight "AM43xx_debug" - Press "Set Active" and Press "OK"
    Click on the "Configuration" drop down box and select "AM43xx_debug [ Active ]"
    Select the "Variant:" right-most drop down box and select "IDK_AM437X [Cortex A ]"
    Press "OK" to close the configuration window

    The check was to confirm that these settings were set in the gpio_app_led_blink so that this will
    assist in the detection of any configuration errors in the other dependent projects.

    David
  • Hi,
    In Dependencies of Led blinking project configuration for example-utils was unresolved and there was no way to change it. I deleted it from the workspace and imported it once again with all the things you wrote - afterwards it appeared as am43xx_debug so the compilation was succesful. Therefore, all the steps you wrote were done - all the configurations are am43xx_debug and the Symbols seem correct too.
    Once again after downloading it on the board the AbortHandler() function is activated while Cache Enabling.
    Regards,
    Jacek
  • Hi David,

    I am new to AM437X and just bought an AM437xIDK. So I am trying to do the same thing to get familiar with this board and the example files. I followed the instruction above trying to build the LED_Blink, but failed. The message I got is:

    **** Clean-only build of configuration am43xx_debug for project gpio_app_led_blink ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -j 4 -s -k clean
    Could Not Find C:\ti\sysbios_ind_sdk_2.1.1.2\sdk\binary\gpio_app_led_blink\bin\am43xx-evm\ccs\gpio_app_led_blink_a9host_debug.out
    Could Not Find C:\CTRL\gpio_app_led_blink\am43xx_debug\gpio_app.d
    Could Not Find C:\CTRL\gpio_app_led_blink\am43xx_debug\gpio_app.o
    'Finished clean'
    ' '

    **** Build Finished ****
    Buildfile generation error occurred..
    Referenced project 'board' does not exist in the workspace. Project 'gpio_app_led_blink' may not build as expected.
    Build stopped..

    Do you know what is wrong?

    Thanks,
    Yinhao
  • Hi Yinhao,
    You need to import the project responsible for building the 'board' configuration. In your imported led_blinking project properties -> Build->Dependencies you have the projects that are needed to be imported to your workspace as well (e.g. board, dal, device etc). Then you need to change their configurations as David wrote above in his posts.
    Regards,
    Jacek
  • Hi,

    i have the same issue with the AbortHandler, did you found any solutiuon for this Problem?
    regards
    FKaiser

  • **** Build of configuration am43xx_debug__TI for project gpio_app_led_blink ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../gpio_app_led_blink.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_32_01_22_core/xs" --xdcpath="C:/ti/edma3_lld_2_12_01_25/packages;C:/ti/ndk_2_24_03_35/packages;C:/ti/bios_6_45_01_29/packages;C:/ti/pdk_am437x_1_0_4/packages;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.A8Fnv -p ti.platforms.evmAM437X -r debug -c "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.4.LTS" "../gpio_app_led_blink.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring gpio_app_led_blink.xea8fnv from package/cfg/gpio_app_led_blink_pea8fnv.cfg ...
    subdir_rules.mk:14: recipe for target 'build-562058161' failed
    error: ti.platforms.evmAM437X.Platform: "C:/ti/bios_6_45_01_29/packages/ti/platforms/evmAM437X/Platform.xs", line 60: ti.platforms.evmAM437X.Platform : The build target ti.targets.arm.elf.A8Fnv is incompatible with this platform.
    js: "C:/ti/bios_6_45_01_29/packages/ti/platforms/evmAM437X/Platform.xs", line 65: TypeError: Cannot read property "attrs" from undefined (C:/ti/xdctools_3_32_01_22_core/packages/xdc/platform/Utils.xs#87)
    "./package/cfg/gpio_app_led_blink_pea8fnv.cfg", line 176
    gmake.exe: *** [package/cfg/gpio_app_led_blink_pea8fnv.xdl] Error 1
    js: "C:/ti/xdctools_3_32_01_22_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake: *** [build-562058161] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

    Software tools used : 1) CCS V6.2  2)sysbios_ind_sdk_02.01.02.02

     while trying to build project as per the instructions in this thread, i am getting error in subdir make files as per highlighted lines above.

    What could be the possible reason and how can i resolve the error.

    Thanks is Advance !

  • Hello Ankita

    Each version of the SYSBIOS Industrial SDK has specific requirements for the support tools

    Your XDCTOOLS version looks to be incorrect for release 02.01.02.02.

    Version 02.01.02.02 requires

    • Code Composer Studio version CCS 6.1.2.00015
    • Industrial SDK version 2.1.2
    • SYS/BIOS 6.45.01.29 Real Time Operating System
    • XDC Tool 3.32.00.06
    • NDK 2.24.3.35
    • Compiler GNU v4.8.4 (Linaro)

    Other versions are not guaranteed to work.

    Different versions of CCS can be downloaded at: http://processors.wiki.ti.com/index.php/Download_CCS 

    Sysbios can be downloaded from http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/index.html

    XDCTools can be downloaded from http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/

    NDK can be downloaded at http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ndk/

    Verify that IA_SDK_HOME defined as a system  environment variable as (for the default install location)  C:\ti\sysbios_ind_sdk_2.1.1.2\sdk

    Please note - This is a old thread that has been closed. Please post a new e2e request for your support questions.

    David