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/AM4379: Problems starting examples with IDK AM4379 Development Board

Part Number: AM4379
Other Parts Discussed in Thread: SYSBIOS,

Tool/software: Code Composer Studio

Hello,

Im totally new to Sitara Processors and i wanted to start a simple LED blinking example for the beginning.

I installed the sysbios_ind_Sdk_02.01.03.02 which was delivered on the SD-CARD which comes with the Board.

I imported the board_support example  from the starterware folder. When i start to Build the example i get following Errors.

I use CCS 8.3.0.00009 

Build of libraries failed.
subdir_rules.mk:12: recipe for target 'build-1306255135-inproc' failed
C:/ti/bios_6_73_01_01/packages/ti/sysbios/knl/Swi.c: In function 'ti_sysbios_knl_Swi_construct2__E':
C:/ti/bios_6_73_01_01/packages/ti/sysbios/knl/Swi.c:486:64: error: 'Error_IGNORE' undeclared (first use in this function); did you mean 'Error_Id'?
Swi_construct((Swi_Struct *)(Ptr)swiStruct2, swiFxn, prms, Error_IGNORE);
^~~~~~~~~~~~
Error_Id
C:/ti/bios_6_73_01_01/packages/ti/sysbios/knl/Swi.c:486:64: note: each undeclared identifier is reported only once for each function it appears in
gmake[1]: *** [knl_Swi.o] Error 1
gmake: *** [C:/Users/STF/workspace_v8/board_support/src/sysbios/sysbios.aa9fg] Error 2
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_32_02_25_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:

js: "C:/ti/xdctools_3_32_02_25_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
xdctools_3_32_02_25_core\gmake.exe: *** [package/cfg/app_pa9fg.xdl] Error 1
xdctools_3_32_02_25_core\gmake.exe: *** Deleting file `package/cfg/app_pa9fg.xdl'
xdctools_3_32_02_25_core\gmake.exe: *** [package/cfg/app_pa9fg.xdl] Deleting file `package/cfg/app_pa9fg.h'
xdctools_3_32_02_25_core\gmake.exe: *** [package/cfg/app_pa9fg.xdl] Deleting file `package/cfg/app_pa9fg.c'
js: "C:/ti/xdctools_3_32_02_25_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
subdir_rules.mk:9: recipe for target 'build-1306255135' failed
gmake[2]: *** [build-1306255135-inproc] Error 1
gmake[1]: *** [build-1306255135] Error 2
gmake[1]: Target 'configPkg/linker.cmd' not remade because of errors.
makefile:143: recipe for target 'all' failed
gmake: *** [all] Error 2

**** Build Finished ****

what do i miss can you Help me get this example started?

  • Hi Haxor,

    I would suggest you to download and install AM437x PSDK RTOS:

    software-dl.ti.com/.../index_FDS.html

    Then for LED blink example, you can refer to below pointer:

    RTOS diagnostic SW - led_TEST

    software-dl.ti.com/.../index_board.html

    Check also below demo:

    processor_sdk_rtos_am437x_5_02_00_10/demos/rtos_template_app/am437x/evmAM437x/A9/template_app/GPIO_evmAM437x_board.c

    software-dl.ti.com/.../index_examples_demos.html

    Regards,
    Pavel
  • Hi,

    I downloaded and Installed the PDK and also "gmake" all the examples for my Processor Am437x but the generated GPIO_LedBlink_ Examples are not for my development board idkam437x also the Diagnostic SW-led Test example is an outfile where i cant Debug. I want to get an overall understanding how Gpios work from initalisation to toggle the Pins so debug is mandatory.
    Also the RTOS_Template example you suggested is for the evmAm437x board.

    Is there an easy way to migrate the examples GPIO_LedBlink_evmAM437x to idkAM437x ?
  • Haxor,

    Regarding led_TEST Diagnostic test, it should run at IDK AM437x board by default. See 3.2.4. Diagnostic Applications, led_TEST has x for "IDK AM437x" board.

    software-dl.ti.com/.../index_board.html
    software-dl.ti.com/.../index_board.html

    The source code is available at:

    pdk_am437x_1_0_13/packages/ti/board/diag/led/src/

    Regards,
    Pavel
  • Haxor said:
    Is there an easy way to migrate the examples GPIO_LedBlink_evmAM437x to idkAM437x ?

    Yes, the GPIO_LedBlink test is create for evmAM437x and skAM437x. I am not aware of easy/fast/quick way to migrate this test for idkAM437x. You should explore the HW differences between evmAM437x/skAM437x and idkAM437x and apply these in the source code.

    Check also if below e2e thread will be in help:

    We have also some info regarding PRU GPIO in below e2e threads:

    Regards,
    Pavel

  • Hello Thanks for your help I solved the Problem now,

    this i had to do to get SysBios Ind sdk Examples running

    downloads.ti.com/.../index_FDS.html

    1.Project import in CCS Project->Import CCS Projects eg. C:\ti\sysbios_ind_sdk_02.01.03.02\sdk\examples
    2. select AM4379 Cortex A under: Project->Properties->General
    3. Compiler Version select GNU v7.2.1 (Linaro) o. newer under: Project->Properties->General
    4. Linker Command file select AM437x.lds under: Project->Properties->General
    5. Xds Tools Version select 3.51.1.18_core o. newer under: Project->Properties->General tab Products
    6. Sys Bios Version select 6.73.1.01 o. newer under: Project->Properties->General tab Products
    7. Use "${BIOS_CG_ROOT}/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/hard" instead of
    "${BIOS_CG_ROOT}/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu"
    under: Project->Properties->Build->GNU Linker Library search Path
    8.Build
    9.create new TargetConfiguration under: File-> New TargetConfiguration select IDK_AM437x .
    10.debug. :)

    example_utils is a good start for me.