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.

RE: TMS570LS3137BZ LED's shining

Other Parts Discussed in Thread: HALCOGEN

And else i,ve generated the code with halcogen, but i have an error

This is the C code:

/*
 * main.c
 */
int main(void) {
    /* USER CODE BEGIN (0) */
    /* USER CODE END */

    /* Include Files */

    #include "sys_common.h"
    #include "system.h"

    /* USER CODE BEGIN (1) */
    /* Include FreeRTOS scheduler files */
    #include "FreeRTOS.h"
    #include "os_task.h"

    /* Include HET header file - types, definitions and function declarations for system driver */
    #include "het.h"
    #include "esm.h"

    /* Define Task Handles */
    xTaskHandle xTask1Handle;

    /* Task1 */
    void vTask1( void * pvParameters )

    {
        for(;;)
        {
            /* Taggle HET[1] with timer tick */
            gioSetBit(hetPORT1, 17, gioGetBit(hetPORT1, 17) ^ 1);
            vTaskDelay(100);
        }
    }
    /* USER CODE END */


    /** @fn void main(void)
    *   @brief Application main function
    *
    */

    /* USER CODE BEGIN (2) */
    /* USER CODE END */


    void main(void)
    {
    /* USER CODE BEGIN (3) */

        /* Set high end timer GIO port hetPort pin direction to all output */
        gioSetDirection(hetPORT1, 0xFFFFFFFF);


        /* Create Task 1 */
        if (xTaskCreate(vTask1, (const signed char *)"Task1", configMINIMAL_STACK_SIZE, NULL, 1, &xTask1Handle) != pdTRUE)
        {
            /* Task could not be created */
            while(1);
        }

        /* Start Scheduler */
        vTaskStartScheduler();

        /* Run forever */
        while(1);
    /* USER CODE END */
    }


    /* USER CODE BEGIN (4) */
    /* USER CODE END */
    return 0;
}

but in the line with bracket:

void vTask1( void * pvParameters )

    {                                                             <-here there is an error 66 expected a " ;"    main.c
        for(;;)

what is the problem?

i attache the archive with programm.

ksuled.zip
  • Ksu,

    Hi, I split this into a new thread because you had already marked the original thread answered.
    (If you mark the thread answered, it may not get looked at again ...)

    Did you look at the comments in the example file that you chose to use,
    The comments have the steps you should follow in HalCoGen.    I don't know specifically about your error, but it looks like you chose a FreeRTOS example.
    When you created your project in HalCoGen did you create a FreeRTOS based project and did you follow the other instructions in the comments of the example?

    Also the example files generally replace the generated sys_main.c from halCoGen.  So the flow is generally to:

      - open the example file in a text editor

      - follow the instructions (in example file comments)

        this usually involves generating a halcoGen project.

      - replace the sys_main.c contents with the example contents

      - generate a CCS project from the HalCoGen project, see