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.

TMDX570LS31CNCD interchangeability

Other Parts Discussed in Thread: HALCOGEN, TMS570LS1227

Hi,

Is the TMDX570LS31CNCD control card interchangeable with a F28035 Piccolo controlCARD?

I'm thinking of changing the F28035 Piccolo controlCARD that's in my rig and swap it for a TMDX570LS31CNCD as I have a lot of issues with getting floating point math to work on the F28035's CLA on CSS.

Also, can I use the Keil compiler for it? If so, does Keil already have the peripheral drivers?

Thanks

  • Thank you for using the Hercules forum. One of our engineers will be with you shortly.

  • Yes, it is interchangeable. You can find the reference firmware by searching TMDX570LS31CNCD in ti.com. The example firmware is running from CCS FREE. This hardware has a built-in xds100v2 emulator used with CCS. I am not sure whether IAR and Keil IDE supports that.

    If you want to write the project in Keil, it is better to work with DS-5 than Keil MDK (have some problems). By pulling out the jumper in the LS31 CNCD, the hardware can with a external emulator such as 510USB. If you perfer a Keil or IAR emulator, you might need to pull up the nTRST pin.

    If you want to FPU hardware in the IC, you have enable it first, HalCoGen can generate the example code to do this for CCS, IAR and Keil. Otherwise, you will get a abort (undefine instruction error).

    Thanks,

    Haixiao

  • Hi,

    Thanks for the advice. I bought a TMS570LS12 control card because I need the ePWM module.

    I also got a J-Link EDU as it was reasonably priced.

    I have started working with Keil. So far there weren't any issues apart from when I enter debug mode, nothing happens. But if you click "Reset CPU", it goes into debug mode. When you said that there were some issues with Keil, did you mean that kind of  debugger/loader functionality issue with the IDE, or something that would prevent the final code from executing properly like a bug in the firmware?

    I have used HalCoGen, but haven't seen the option for FPU. Where is it?

    Also, if I enable Optimisation level 2 on Keil, FP ops seem to run quite fast. Do I get even more acceleration with the HalCoGen driver enable?

    Thank you.

  • Hi,

    I found the FPU option.

    But there is a another problem.

    I want to use interrupts and peripherals and want to use HalCoGen to generate the drivers.

    But I don't know how to integrate the files it generates into my Keil project.

    I'd like to start with a fresh project. I can't find instructions for this anywhere.

    Could you tell me the setup process? (After generating the HalCoGen files, I guess I have to create a new project from Keil and add certain files to it that was generated earlier. But I don't know which files to add etc.)

    No matter what I tried, there are so many errors because the structure of the project is not correct.

    Thanks

  • Hi,

    I found this document: http://www.keil.com/appnotes/files/apnt_210.pdf

    But when I followed the instructions for the MCU I'm using (TMS570LS1227), I get loads of errors on Keil.

    Could you please replicate the same procedure for that MCU and confirm? (I use µVision 4.7)

    I switched from C2000 to TMS570LS1227 because CCS was a nightmare. Now this is not looking any better either.

    I'm trying to finish a project and the timelines are very tight.

    Thank you