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.

PROCESSOR-SDK-AM65X: Timer create issue

Part Number: PROCESSOR-SDK-AM65X

Hello,

While working through the 9.1. Template Application Workshop using the AM65x IDK, the project "baremetal_template_app_am65xx_a53"

please refer to 

when run on the traget the  function TimerP_create Returns NULL.

This is the Output of the test program on the Serial UART:

------------------------------

Board Init complete

Uart Init complete

MCSPI Init complete

Gpio Init complete

======== Peripheral Initialization complete ========

 

Board Name read: AM6-COMPROCEVM

 

Board version read: E3006201E3E3010139184P00810511

 

i2c_eeprom_read_and_display task ended

spi_test task started

spi_test task ended

Timer create failed

-----------------------------------

From the souce Code example we can see the Output "Timer create failed" is created when the timer creation for timer 1 Fails.

~/ti/processor_sdk_rtos_am65xx_6_00_00_07/demos/rtos_template_app/am65xx/evmAM65xx/A53/template_app/app.c

----

#define TIMER1                     1

#define TIMER_ID                 TIMER1

 

       delayTimerHandle = TimerP_create(TIMER_ID,

                                         (TimerP_Fxn)&delayTmrIsr,

                                         &delayTimerParams);

       if (delayTimerHandle == NULL) {

           appPrint("\nTimer create failed\n");

       }

 

Any help getting the timer function working would be greatfully received.

Best regards

John Bebbington

  • John,

    Is this issue reported on custom HW platform or on the AM65 x GP EVM.  Have you updated any code in the bare-metal test or is this issue seen with the out of the box with the SDK?  Can you confirm that you are running the code with the SYSFW setup that sets up the DMSC_M3 core and the SOC clocks. 

    The bare-metal RTOS template app generates timer using OSAL layer. You may want to try and run the OSAL unit test which tests the TimerP_create independently rather than in integrated RTOS Template app environment.

    Regards,

    Rahul

  • Hello Rahul,

    I can confirm that this example was exercised on the unchanged "out-of-the-box" AM65x IDK (EVM)) kit booting with the unchaged provided SD Card labelled "IDK".

    No source code was changed.

    latest TI-RTOS SDK 6 was used with latest CCS 9.1.0

    refer to ;

    There are clearly, plenty of other things one can try, but this is supposed to be a starting point in the TI RTOS that does not work as described. 

    Best regards,

    John Bebbington.

  • Hello,

    to solve this Problem,  I performed the following steps:

    1) Powered-off the IDK and removed the SD-CARD.

    2) Powered-on the IDK (EVM)  to boot without loaders, Note during booting the debug console has no info Output.

    3) In CCS, lauched the target configuration.

    4) Connected to M3 so that the GEL script ran.

    5) Connected to the A53 so that the GEL script ran (seen in Eclipse Console)

    6) under menu run-> load -> the tempalate applications.

    Both the bare metal and the RTOS examples ran with no Errors.

    I hope this helps someone who is having some issues with the Lab documentation.

    Best regards

    John Bebbington