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.

Flashing Problem

Other Parts Discussed in Thread: HALCOGEN, TMS570LS1227, TMS570LS20216, LAUNCHXL2-TMS57012, TMS570LS1224

Hello, 

I am done with my coding on HET IDE. I  have gone through tutorial docs provided on the site. In short, I followed the steps HET IDE -> HalCoGen -> CCS .

 Please let me know where I'm making the mistakes.

1. HET IDE code

2. Here' simulation window ( o/p at pin 1 )

3. HalCogen -enabled HET driver 

4. HalCogen - Pin configuration 

5. CCS - flashing

It is working perfectly for  flashing. But can't see o/p on oscilloscope

   

Regards,

Suyog

  • Suyog,

    All those red errors indicate a problem with your JTAG connection to the device.

    But I don't know anything about your setup from this post, so can't really advise. For example I don't know what board you are connecting to (dev kit or custom board), what the part # on the board is, what the emulator is, whether you actually have a TMS570LS1227 on the board or not to match the halcogen program, etc...

    Those are the things to check. You should be able to produce the exact same error with even a basic HalCoGen blinky program from the looks of it.
  • Hello,

          I'm working on Keil MCBTMS570 Development Kit and having Code Composer Studio 6.1.3 . And I'm not getting any errors for a basic HalCoGen blinky program. I'm attaching generated files 3583.mypwm.rar6303.HET_PWM.rar

    REgards,

    Suyog

  • Suyog,

    Your HET project says it is for a TMS570LS12xxZWT which has the N2HET timer.

    The MCBTMS570 development kit has the TMS570LS20216ZWT device (different device) and the timer on this device is NHET not N2HET.
    So for example you do not want to run the HET assembler with the -V2 option which is what will happen with the HET IDE project you sent, because this builds for a newer version of HET than you have on the board you are using.

    Not sure that alone explains your observations but it must be fixed anyway.

    More likely the explanation is that your HalCoGen project says:

    <DEVICE>
    <family>TMS570LS12x</family>
    <device>TMS570LS1227ZWT</device>
    <dilfile>mypwm.dil</dilfile>
    <tools>ti</tools>
    </DEVICE>

    But again that is not the device that is on the MCBTMS570. These two devices are pretty code compatible and the peripherals of the TMS570LS12xx are a superset of the TMS570LS20216 - but the 20216 is on an older process with different flash and so there are nuts & bolts things hidden in the startup code of HalCoGen that are probably messing you up. [that's the purpose of HalCoGen, to abstract away especially the startup code from your application].

    You can either:
    a) switch to the TMS570LS1227 HDK

    b) switch to the TMS570LS1224 based LAUNCHXL2-TMS57012
    and change the HalCoGen config from TMS570LS1227 to TMS570LS1224.

    c) stay with the MCBTMS570 but switch the HalCoGen configuration form TMS570LS1227 to TMS570LS20216.

    The options are like this... (a) is the most hardware based solution, (c) is the most software based but you are on the NRND TMS570LS20216 which you may not like... (b) is the mid option with less changes to software but you get also to use the very inexpensive (~$25US) LAUNCHPAD. You don't get FlexRay on the 1224 though so be aware.

    The choice is up to you but you definitely need to match the HalCoGen and NHET/N2HET code up with the silicon you are running on.

    -Anthony
  • Hello,
    Thank you ! You made my day !
    Yes, That worked out for TMS570LS20216.

    Regards,
    Suyog