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.
Hi,
We are new with TI microcontrollers and tools and trying to get your TMDX570LC43HDK evaluation board up and running using HALCOGEN and IAR workbench.
We are using the TI-HALCoGEN (v 04.07.01) to setup the TI-Hercules TMS570 MCU evaluation board (TMS570CL4357) code to run with FreeRTOS and setting up Het1 à Pin 0-7 à bit 0: direction as output with no PSL checks.
However once the code is generated for the IAR environment we are unable to get the code to run.
Stepping through the code we found the code breaks at SWI_Handler. Trying to get this code to work we have determined that the code is using the IAR handler, ignores TI declaration of handler. Also ignores the stack pointer values generated by TI. IAR Startup is not properly linking/callling TI HALCoGen Startup code: (see HL_sys_startup.c + HL_sys_intvecs.asm HL_sys_core.asm).
We sent this question to IAR since it seem to be there code that is messing up. However they came back and State "the TI-generated code should generate a workspace and project that just works with the Embedded Workbench. Since that is not happening, there is something wrong in the code and/or project file they are generating."
We also tried to create the code without FreeRTOS and again the same issue occurred.
Need help in trying to get board working wiht IAR Workbench.
Here is the modified pieces of the code from HL_sys_main.c which was generated by HALCoGEN.
#include "HL_sys_common.h" #include "FreeRTOS.h" #include "os_task.h" #include "os_timer.h" #include "HL_het.h" #include "HL_gio.h" #include "HL_esm.h"
xTaskHandle xTask1Handle;
void vTaskHET(void *pvParameters) { for(;;) { vTaskDelay(100); } }
int main(void) { /* USER CODE BEGIN (3) */ gioInit(); hetInit(); if (xTaskCreate(vTaskHET, (const signed char *)"TaskHET", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTask1Handle) != pdTRUE) { /* Task could not be created */ while(1); } /* USER CODE END */
return 0; } |
We did get this code to work in TI C Composer using HALCoGEN for TI composer.
Thanks,
Trish
Hi all
I found the answer in an support document from IAR
which gives the steps to setup IAR to work with HALCoGen project.
Regards,
Trish