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.

HALCOGEN support for TMS570LC4357: Several Bugs

Other Parts Discussed in Thread: TMS570LC4357, HALCOGEN, TMS570LS1224

We are porting an existing prototype software project from the TMS570LS1224 to the TMS570LC4357.  These are the issues we've run into so far, using HALCOGEN 04.05.00.

1) There doesn't seem to be a Safety Init tab available, nor are any of the safety init functions issued in the generated code.  Related: The Flash and RAM tabs do not have checkboxes to enable ECC.

2) Assembly code for the data abort handler is not produced.  When targeting the 'LS1224, a file dabort.s with a definition for _dabort is provided.  When targeting the 'LC4357, no such file or function definition is produced.  However, the vector table does refer to such a function.  Therefore, the project does not link.

3) In the PMU management assembly code, _pmuGetEventCount_ needs to perform lsr on $r0 by 1 to match the register usage with the definitions of pmuCOUNTER{0,1,2} provided in HL_sys_pmu.h.  The 'LS1224 code gets this right, but the 'LC4357 code does not.

4) In the definion of HL_sys_core.s:_cacheEnable_, two instructions incorrectly use ';' for comments (Keil syntax) instead of '@' (GNU syntax), which prevents the code from assembling.  The project is in GCC tools mode.

  • Hi, there.

    I have passed you posting to the Halcogen team. They will address your question shortly.

    Thanks and regards,

    Zhaohong
  • Hi Jonathan

    1) ECC is enabled in TM570LC43xx device all the time, you cannot disable it, hence no configuration in HALCoGen. Also for TM570LC43xx device HALCoGen depends on Safety Diagnostics Library for all safety features. YOu can refer to the example that walks over steps to use Safety library with HALCoGen.

    2) Yes TM570LC43xx needs customer to provide the data abort routines. You can add your own data abort handler and give the function in the Box for data Abort in the HALCoGen "Interrupts" Tab. LS1224 had it because the data abort handler was necessary since HALCoGen safety function require for the Safety Startup, but in LC43xx HALCoGen depends on Safety Diagnostics Lib.

    3) I believe this is also addressed in the upcoming Patch. 

    4) Bug ID : SDOCM00118075 is already raised against HALCoGen, this will roll out in the Aug end Patch (4.05.01) release.