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.

CCS/TMS320C5535: REQ: CCSv5.5 and 'C55x Simulator - How To Enable Timer0 IRQ's?

Part Number: TMS320C5535

Tool/software: Code Composer Studio

Hello (Ki),

I've put the 'c5535 project I've been working on here:  

In case that URL doesn't show up correctly:  (look in tags please)

The workspace you want to point to is /tmp1/c55x-sim2 in that repository once you download it.

It's running but the Timer0 IRQ isn't firing.  Can you please tell me how to do that?  I've tried various dat files with Pin Connect but that doesn't seem to work and/or I'm doing something wrong.

I think this is the latest tool set these simulators ran under - I'm going to try and make a target configuration file for some of the later CCS releases and see if that works - but that won't answer the Timer0
question.  I've found some older config files for the simulator (.cfg) - but I don't see any explicit sections or modules for the Timer0/1 peripherals that the docs claim is supported.  I tried the pin connect to SINT4 but of course all that did was stall the simulator and I had to kill in task manager.

Any help here appreciated.

Thanks!
John

  • John,

    As you may be aware, simulators are no longer supported and there are not many experts left in this area that can help answer questions. I have to admit that I personally don't have much experience or expertise in this subject so may not be able to help much here, but hopefully some community members who have used simulators in the past can chime in here with their input. I will still take a look at your project and let you know if anything jumps out.

  • Aarti,

    The only thing you may have to change is the path to the tools including the include file path for the CGT.  It's built using the latest release for the c55x which is CGT 4.4.1.

    The Timer0 IRQ isn't firing; once that works the simulation will be good enough to model the issue I'm trying to solve.

    Thanks,

    John

  • Hello Again Aarti,

    It appears I have the Cycle Accurate simulator running - and the Timer0 IRQ is firing - but I would like TI to verify this - if that's OK.
    I kindof have the simulator limping along right now - I need a more stable set-up; but it would appear that works. I'm setting the Clock for int4 and I am using the dat file for SINT4 - which seems to be OK - you'll see the tickIRQctr increment in the watch window.

    I thought from the docs it was the other way around - that the functional simulator would do this vs. the CA. The targetConfig you want to point to for this is the one (.ccxml) that's under the targetConfigs dir in the project.

    Thanks,
    John
  • John,

    For some reason I'm having trouble getting it going. My CCS seems to be locking up for some reason when I run the program.

    However, it sounds like you've made progress in getting things going, and its unlikely that I'll be able to add much more expert insight. Long term though it would be best to switch to a development board since we no longer support simulators.
  • Aarti,

    There's probably two issues going on - and this was happening to me too - you need to disable the SINT4 data file (disconnect) and make sure you are running the version of the ccxml that is in the root part of the project directory - I think I made a mistake telling you it was in the targetConfigs dir. Note I've updated the project on github - if you download that - load it - make sure the clock is enabled (I think you have to connect to the hw.int4 under setup but I think it works as long as the clock is running) - and then when you enable the SINT4 with the dat.txt file you'll see the Timer0 IRQ vector increment the tickCNTirq that's in the watch window.

    Would be great if you could at least verify this. Shouldn't take that long after downloading the latest from github.

    Also - CPU_119 is still an issue with these processors - hence why I need to do this. Trying to debug what I need to do on a target board is virtually impossible due to the CPU_119 issue.

    Thanks,
    John
  • Aarti,

    Here's a couple of screen shots:

    Thanks,
    John W.

  • John,

    Thank you for clarifying. Following your guidance and using the updated project from github, I can confirm that I see the same operation as you, and the Timer0 IRQ vector increments the tickIRQctr in the Expressions view.
  • Aarti,

    Can you please verify that you loaded the functional vs. cycle accurate simulator?

    Also, I've found that sometimes you have to completely reload to get the run to reset correctly. Sometimes just doing the 'load program' over works and sometimes I have to exit/re-enter the simulator. That may be just due to counts in the dat.txt file; and I've found that the numbers in that file don't seem to be that important; as long as the simulator runs and the tick counts start.

    Thanks!
    John
  • John Westmoreland43 said:
    Can you please verify that you loaded the functional vs. cycle accurate simulator?

    It is the functional simulator.

    John Westmoreland43 said:
    Also, I've found that sometimes you have to completely reload to get the run to reset correctly.

    I noticed that as well.