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/TMDSIDK437X: How to blink the LED on TMDSIDK437x

Genius 5840 points
Part Number: TMDSIDK437X

Tool/software: Code Composer Studio

Hello,

I would like to blink the LED on TMDSIDK437x.

Are there any good example project?

I am looking GPIO_LedBlink_evmAM437x_armTestProject.

I modified GPIO_evmAM437x_board.c file as below.

#define GPIO_USER0_LED_PIN_NUM (0x17)
#define GPIO_USER0_LED_PORT_NUM (0x02)
#define GPIO_USER1_LED_PIN_NUM (0x18)
#define GPIO_USER1_LED_PORT_NUM (0x02)

After that, I run GPIO_LedBlink_evmAM437x_armTestProject with TMDSIDK437x.

But the demo gets stop with following error.

   CortexA9: Unhandled ADP_Stopped exception 0x810226E0

Are there any additional point I should modify?

Regards,

U-SK

  • Hi U-SK,

    Please refer to the below e2e thread:

    e2e.ti.com/.../771028

    Regards,
    Pavel
  • Hi Parel,

    Thank you for your reply.

    I tried to run led_diagExample_idkAM437x_armv7.out referring to the thread you send,

    but idkAM437x does not blink LED and the program stopped as below.

    I run led_diagExample_idkAM437x_armv7.out as below procedure.

    In command prompt,

    1. cd C:\ti\processor_sdk_rtos_am437x_5_02_00_10

    2. setupenv.bat

    3. gmake

    4. cd C:\ti\processor_sdk_rtos_am437x_5_02_00_10

    5. gmake idkAM437x

    6. In CCS, connect to TMDSIDK437x and load led_diagExample_idkAM437x_armv7.out file.

    7. run the program

    Is my procedure correct ?

    Regards,

    U-SK

  • U-SK said:

    4. cd C:\ti\processor_sdk_rtos_am437x_5_02_00_10

    5. gmake idkAM437x

    For making the idkAM437x diagnostic test, you need to run make command from the below directory:

    C:\ti\pdk_am437x_1_0_13\packages\ti\board\diag\

    The result out files should be available at:

    pdk_am437x_1_0_13/packages/ti/board/bin/idkAM437x/

    To verify your idkAM437x CCS setup, you can first load and run the "Hello world" example. Once successful you can proceed with LED diagnostic test.

    Regards,
    Pavel

  • U-SK,

    I tried this LED test on my side, I have idkAM572x board and using led_diagExample_idkAM572x_armv7.out. I am loading the out file through CCS, not using SD or SPI. The default led_diagExample_idkAM572x_armv7.out does not work for me also. I need to update the code according to the instructions provided in below section of the user guide:

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

    I have modified my board_cfg.h according to the instructions:

    pdk_am57xx_1_0_13/packages/ti/board/src/idkAM572x/include/board_cfg.h

    + #define PDK_RAW_BOOT

    Then I clean and make again the diagnostic tests. When I run the out file, I see LEDs are toggling and information message appear in terminal console (not CCS console). I am using Ubuntu, thus using picocom:

    $ picocom -b 115200 /dev/ttyUSB1

    Terminal ready

    *********************************************
    * LED Test *
    *********************************************

    Testing LED
    Blinking LEDs...
    Press 'y' to verify pass, 'r' to blink again,
    or any other character to indicate failure: y
    Received: y

    Test PASSED!

    LED Test Passed


    Regards,
    Pavel