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.

Grace example isn't working

Other Parts Discussed in Thread: MSP-TS430PW28, MSP430F2101

I just tested the supplied Grace examples. "Blink LED from the CPU" is working as intended, but "Blink LED from Timer_A interrupt and CPU" isn't working at all. My LED always stays dark. But because I'm new to MSP430 programming, I spent the last couple of hours trying to find the error - but without success. I haven't change anything in the code example yet.

I'm using a MSP430F2101 with a MSP-FET430UIF (USB Debug Interface) and a MSP-TS430PW28 board. Please help, I'm running out of ideas...

  • Andre:

    Which version of Grace are you using?  And which version of CCS?

    Can you run a simple program to just light up the LED and see if that works?

    I ran this program on a W28 board with an F2132 device using CCS 4.2.3, Grace v1.00.01 and XDCTools 3.22.01, and confirmed that it worked.  I'll see if we can also try an F2101 device to make sure that works as well.

    Dave

  • Hello Andre,

     

    sorry for the confusion. I think the reason it doesn't work is that you have not soldered the crystal that is needed for the ACLK. It's in the package of the board, but I guess you have not soldered it yet. Grace per default assumes that you have an external 18kHz crystal available and configured the timer to use that crystal.

    Change the BCS+ clock setting to not use the Low Speed Clock Source. You won't be able to have a 1Hz timer period with a main clock of 1 MHz, so just make the LED blink faster.

    Regards,

    Michael

  • David Friedland said:

    Andre:

    Which version of Grace are you using?  And which version of CCS?

    Can you run a simple program to just light up the LED and see if that works?

    I ran this program on a W28 board with an F2132 device using CCS 4.2.3, Grace v1.00.01 and XDCTools 3.22.01, and confirmed that it worked.  I'll see if we can also try an F2101 device to make sure that works as well.

    Dave

    Hi Dave,

    I'm using CCS 4.2.4.00033, Grace 1.0.0.83 and XDCTools 3.21.1.57-msp430. 

    Michael Brunotte said:

    Hello Andre,

     

    sorry for the confusion. I think the reason it doesn't work is that you have not soldered the crystal that is needed for the ACLK. It's in the package of the board, but I guess you have not soldered it yet. Grace per default assumes that you have an external 18kHz crystal available and configured the timer to use that crystal.

    Change the BCS+ clock setting to not use the Low Speed Clock Source. You won't be able to have a 1Hz timer period with a main clock of 1 MHz, so just make the LED blink faster.

    Regards,

    Michael

    Hello Michael,
    well I think you had the right idea - Q1 is empty on my PW28. LED blinking from SMCLK works as intended. Thanks for your hint. :)
    But I just observed an interesting effect: If I configure ACLK with a really short timer period like 10 ms, the LED begins to blink with an interval of about 5 seconds. How is this possible?
    The attached screenshot reads "...This setting uses an internal low frequency oscillator...". This seems a little misguiding, because it relies in reality on an external oscillator, as I have just seen...

     

  • Andre,

    The device you are using does not have an internal low frequency oscillator. Grace shouldn't tell you that it has, this is a bug. In MSP430x21x1x devices, this setting is reserved, so I cannot really tell you what would happen if you enable it. It might somehow oscillate at a random speed.

     

    Regards,

    Michael

  • Thanks for your answer. Where can I report such a bug? Is there a special web site for that? Or is this forum the bug report channel?

  • This forum is the right place for reporting problems or bugs.

  • I see that Michael already filed the bug.  It is Bug 2527 ("Grace should not assume that there is an external crystal").

  • David Friedland said:
    I see that Michael already filed the bug.  It is Bug 2527 ("Grace should not assume that there is an external crystal").

    In this case, there is no alternative.

    On this device the external crystal is the only possible clock source for ACLK. If there is no such crystal, ACLK is simply dead and no GRACE configuration can change this.
    It's like "GRACE should not assume that there is VCC applied" :)

    But there seems to be another bug:  Grace should not offer internal VLO if there is none.

**Attention** This is a public forum