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.

TMS570LC4357: HalCoGen SimuLink error on CAN example project

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN, UNIFLASH,

Hi Hercules Team,

I have a customer trying to fix the below error:

An error occurred while trying to generate source files from HALCoGen. Please ensure that the model has been configured correctly: 'HALCOGEN' is not recognized as an internal or external command, operable program or batch file

When loading CAN examples from "C:\ti\Hercules\HALCoGen\v04.07.00\examples "

Below is the error the customer has, when trying to load a Simulink compiled file using UniFlash:

"Error!

File "x/first5.out" Does not match the target endianness, not loaded. Check project build options and target configuration file (ccxml)."

We think that issues may be related to firmware the customer loaded on the TMS570LC43x launch pad when using CCS7 and HALCoGen 4.07.  With the Mathworks embedded coder, they're using CCS6 and HALCoGen 4.06, which we think may require an older version of firmware on TMS570LC43x launch pad.   

The customer has tried using HALCoGen 04.07 and 04.06, having issues with both, see below.

Would you please be able to help locate correct version of firmware for TMS570LC43x launch pad, and possibly be provide instructions on downgrading firmware, as well as verifying this as a fix?

Thanks in advance!

Barend

  • Hello Barend,

    We recommend to use the latest HALCogen. The HALCoGen doesn't support the enlarged windows fonts. The background of GUI is a static picture which doesn't scale up with higher font size. Please use 100% font size in Windows to correct the unalignment problem.

    If the out file is generated by simulink, please check the toolchain setup. The file might look like:
    TI_Hercules_TMS570LC4357_toolchain.m. Make sure that "big endian" is used in compilerOpts in this tool chain configuration matlab file.

    % ------------------------------
    % Build Configurations
    % ------------------------------
    compilerOpts = {...
    '-mv7R4 ' ...
    '--code_state=32 ' ...
    '--float_support=VFPv3D16 ' ...
    '--abi=eabi ' ...
    '--include_path="$(TI_INCLUDE)" ' ...
    '--display_error_number ' ...
    '--diag_warning=225 ' ...
    '--diag_wrap=off ' ...
    '--enum_type=packed' ...
    '--big_endian' };