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.

CCSv5 emulation of TMS570LS3137 does not work

Other Parts Discussed in Thread: TMS570LS3137, HALCOGEN

I seem to be having issues with the emulator for the TMS570LS3137, it interrupts to undefEntry when the function _coreEnableEventBusExport_(); within _c_int00(void) is called; specifically it interrupts at the assembly line

mrc   p15, #0x00, r0,         c9, c12, #0x00

this code was compiled by HALCOGEN: 03.06.00

The code was built to the instructions of the example "N2HET PWM" for CCSv5

The code works when programmed onto a real TMS570LS3137.

The options in targetConfigs is Texas Instruments Simulator->Cortex R4, Big Endian

Which .gel should be used, it seems to default to a .gel in the unsup folder, though I have tried others I've found within the simulation folder.

This has been tried with an older version with updates and a clean installation of CCS5.5.0.00077_win32

Cheers,

Alan

  • the specific location of the .gel which ccsv5 wishes to use is

    ..\..\simulation\unsup\cp_2011_12\env\ccs\import\tisim_armxx.gel

    In addition with the new CCSv5 the code generated from HALCOGEN for PIN_MUX produces the following warnings

    Description Resource Path Location Type
    #1934-D concatenation with "&" in macro "PINMUX_SET" does not create a valid token pinmux.c /Test_TMS_RESET_S0_Toggle/source line 135 C/C++ Problem

    which were not generated before the update and this all stopped working

  • Alan,

    We do not have an instruction set simulator that models the TMS570LS3137.  The Cortex R4 simulator that comes w. CCS doesn't have really anything other than the fixed point core modeled - no FPU, MPU, coprocessor, etc.  No peripherals.  And it's not cycle accurate.

    So you could use it to understand the instruciton set but running code from HalCoGen is out of the question without a lot of hacks. 

    We haven't really invested in the simulator since our focus has been to put low cost real hardware out there.  You can pick up a USB stick or control card for under $100 and run on real silicon.   I know this isn't a perfect answer, ideally we'd have both, but we had to pick one and we picked the low cost hardware path.

     

  • Hi Anthony,


    Thanks for the response, at  least I can now stop pulling everything apart trying to see why it was not working.


    Regards,

    Alan