Hi,

i'm using one or some few assertion points and if an assertion is not
fullfilled i use a function like this:

// do kernel panic
void
kernel_panic (void)
{
  volatile int i = 0x3fff;
  P4OUT = 0x00;
  P4DIR = 0xff;
  _DINT ();                     // Disable all interrupts.
  _BIC_SR (LPM4_bits);
  _BIC_SR_IRQ (LPM4_bits);      // Change the SR register on the stack, within 
interrupt service routine.
  // Sets bits using a BIS mask, SR instruction.

  for (;;)                      // forever
  {
    for (i = 0x1fff; i > -0x1fff; i--)  // dead end: fast blinking with 5,6 Hz
    {
      if (i > 0)
        P4OUT &= ~(ROT | GRUEN);
      else
        P4OUT |= ROT | GRUEN;
    }
  }
}

Regards,

Rolf


[email protected] schrieb am 21.01.05 10:48:38:
> 
> Hello,
> 
> i want to ask how other poeple debug their mspgcc applications.
> 
> I have tried msp430-gdb + insight, but it is running not very reliable.
> I have also tried to use msp430-gdb with eclipse but could not get things 
> running.
> 
> What programs do you use for debugging?
> Any suggestions for the toolchain? (I would prefer a graphic environment).
> 
> 
> Best regards,
> 
> Florian
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users




Reply via email to