EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Crash: MSP430F2618, UART A1Tx and Timer B0 Interrupt

Started by bschaettin January 13, 2009
Hi

had anybody the same problem or is a MSP430 crack which can help me.

If both interrupt (UART A1 Tx and Timer B0 as 1ms timertic) are used
then the system crashes.
This crash can easy reproduce when in while-loop repetly send a string
through UART with same millisecond pause between.

Some knowledge:
1. if one interrupt is used only and the other part is otherwise
realised then no crash (equal for other interrupt)
2. when the time in the timertic ISR make longer ( i.e. for(int i = 0;
i < xx; i++); added) then the crash is frequently
3. the same code (except register differences) is used with uC
'FG4618, 'F1611 without problems (but with IAR V3.42A).

For this project IAR V4.11b is used.

Thank for helps

Beginning Microcontrollers with the MSP430

I found the failure.

--- In m..., "bschaettin"
wrote:
>
> Hi
>
> had anybody the same problem or is a MSP430 crack which can help me.
>
> If both interrupt (UART A1 Tx and Timer B0 as 1ms timertic) are used
> then the system crashes.
> This crash can easy reproduce when in while-loop repetly send a string
> through UART with same millisecond pause between.
>
> Some knowledge:
> 1. if one interrupt is used only and the other part is otherwise
> realised then no crash (equal for other interrupt)
> 2. when the time in the timertic ISR make longer ( i.e. for(int i = 0;
> i < xx; i++); added) then the crash is frequently
> 3. the same code (except register differences) is used with uC
> 'FG4618, 'F1611 without problems (but with IAR V3.42A).
>
> For this project IAR V4.11b is used.
>
> Thank for helps
>

> I found the failure.
Care to ellaborate, so that others in this forum my benefit from your
experience?

Michael K.

--- In m..., "bschaettin"
wrote:
>
> I found the failure.
> --- In m..., "bschaettin"
> wrote:
> >
> > Hi
> >
> > had anybody the same problem or is a MSP430 crack which can help me.
> >
> > If both interrupt (UART A1 Tx and Timer B0 as 1ms timertic) are used
> > then the system crashes.
> > This crash can easy reproduce when in while-loop repetly send a string
> > through UART with same millisecond pause between.
> >
> > Some knowledge:
> > 1. if one interrupt is used only and the other part is otherwise
> > realised then no crash (equal for other interrupt)
> > 2. when the time in the timertic ISR make longer ( i.e. for(int i = 0;
> > i < xx; i++); added) then the crash is frequently
> > 3. the same code (except register differences) is used with uC
> > 'FG4618, 'F1611 without problems (but with IAR V3.42A).
> >
> > For this project IAR V4.11b is used.
> >
> > Thank for helps
>
Do you know this effect that you look 20 times on the same code part
and make a lot of different tests and every time you are shure this
code must be 150% correct?
Murphys law said: if you are more as 100% shure that it is correct
than 100% something is wrong!

The problem was that the ISR used an unused vector# and the name of
this vector# looked plausible correct. Why it's function when in the
system one interrupt (the ISR with the wrong vector#) is active only,
is for me strange.
--- In m..., "tintronic" wrote:
>
> > I found the failure.
> Care to ellaborate, so that others in this forum my benefit from your
> experience?
>
> Michael K.
>
> --- In m..., "bschaettin"
> wrote:
> >
> > I found the failure.
> >
> >
> >
> >
> > --- In m..., "bschaettin"
> > wrote:
> > >
> > > Hi
> > >
> > > had anybody the same problem or is a MSP430 crack which can help me.
> > >
> > > If both interrupt (UART A1 Tx and Timer B0 as 1ms timertic) are used
> > > then the system crashes.
> > > This crash can easy reproduce when in while-loop repetly send a
string
> > > through UART with same millisecond pause between.
> > >
> > > Some knowledge:
> > > 1. if one interrupt is used only and the other part is otherwise
> > > realised then no crash (equal for other interrupt)
> > > 2. when the time in the timertic ISR make longer ( i.e. for(int
i = 0;
> > > i < xx; i++); added) then the crash is frequently
> > > 3. the same code (except register differences) is used with uC
> > > 'FG4618, 'F1611 without problems (but with IAR V3.42A).
> > >
> > > For this project IAR V4.11b is used.
> > >
> > > Thank for helps
> > >
>

The 2024 Embedded Online Conference