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/RM46L852: rtiBlinksy Example Issue

Part Number: RM46L852
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Hello,

I am currently testing all of the features I need for an project, going through the examples for any features I know will be necessary. All is well apart from for using timers, for which I am looking to get the rtiBlinky up and running on my RM46 Launchpad.

Following the few steps necessary in Halcogen and replacing the blank 'sys_main.c' with the code given by the example I have been unable to see any proof of the timer firing. Am I correct in thinking I am looking for any of the N2HET1 pins to be going high as I currently have a scope on N2HET1[10] but it remains at ground. I have tried some of the other HET1 pins aswell.

I am confused however as placing a breakpoint inside of the 'rtiNotification' the method I believe is fired when the timer goes off, does have the code reach it. So I guess my first question is what am I expecting based on the 'rtiBlinky' example to see happen every time the interrupt is fired? I initially thought it would be the LEDs due to the name, and then I thought all of the HET Pins would move but now I am not sure.

Any help would be appreciated and I have attached the project but seeing as I haven't written any of my own code for this yet I see the issue is more around my understanding of the example's intentions.

Cheers,

Rhys2055.newRTI.zip

  • Hello Rhys,

    Just had a look at your HALCoGen file, and noticed that the RTI INT is not enabled:

  • Hi QJ,

    Thank you for your reply.

    I have just checked back to my own project and this is in fact enabled. I also extracted the zip file which I uploaded here and in that Halcogen file this option is also enabled. I am not sure why it would show up differently on yours.

    Could you please help me understand all of this sentence from the rtiBlinky example file as this might help me find a solution. "This is an example which descibes the steps to create an example application which toggles the High End Timer (HET) pin 1 based on an RTI timer compare 0 tick of one second".

    So I see that a timer should be firing every second and we are using the "RTI Compare 0" for this. The firing of this timer is invisible to us however unless we place some visible action to occur inside of the 'rtiNotification'. The example has this line inside of the rtiNotification function:

    gioSetPort(hetPORT1, gioGetPort(hetPORT1) ^ 0x00000001);

    What exactly is this line doing? I believe I am looking for the effect but not seeing it. So for example I have placed my scope on many different N2HET1[] pins around the RM46 but not seen the toggling I think I should be seeing. Am I looking for the right thing?

    Cheers,

    Rhys

  • Hello Rhys,

    1. gioSetDirection(hetPORT1, 0xFFFFFFFF);
    This sentence is to set NHET GIO port hetPort pin direction to all output
    2. rtiEnableNotification(rtiNOTIFICATION_COMPARE0);
    This sentence is to enable RTI Compare 0 interrupt
    3. gioSetPort(hetPORT1, gioGetPort(hetPORT1) ^ 0x00000001)
    This sentence is to toggle NHET pin 0.
    gioGetPort(hetPORT1) is to read NHET port value (bit 0 is for pin 0, bit 1 is for pin 1, so on)
    gioGetPort(hetPORT1) ^ 0x00000001 is bitwise XOR: if pin 0 is 1, then set pin 0 to 0; if bit 0 is 0, then set pin 0 to 1