EmbeddedRelated.com
Forums
Memfault State of IoT Report

How to do a real reset ?

Started by crandel_z October 27, 2009
Thank you Joe. I will implement it.

--- In m..., Joe Radomski wrote:
>
> any interrupt bits that were set prior to the "reset" remain untouched so if you enable global interrupts it will jump to FFFF if an interrupt routine is no longer there..
>
> not having a vector is BAD practice.. you should make a spurious interrupt handler and point all non used interrupts to this routine so you can determine the soource of the trouble.
>
>
>
> --- On Tue, 10/27/09, crandel_z wrote:
>
>
> From: crandel_z
> Subject: [msp430] Re: How to do a real reset ?
> To: m...
> Date: Tuesday, October 27, 2009, 9:44 AM
>
>
>
>
>
>
> I think I understood the problem.
>
> When I re-enable the interrupts are not jumping to old addresses. The not used interrupts (in the new firmware) are jumping to 0xFFFF.
>
> Crandel
>
> --- In msp430@yahoogroups. com, Joe Radomski wrote:
> >
> > That should not be.. the vectors are fetched from flash memory... I have done this myself on several projects and have never had an issue with the vectors.. if you are vectoring the flash vectors to RAM through a routine that checks the validity, then thats anotehr issue
> >
> >
> >
> > --- On Tue, 10/27/09, crandel_z wrote:
> >
> >
> > From: crandel_z
> > Subject: [msp430] Re: How to do a real reset ?
> > To: msp430@yahoogroups. com
> > Date: Tuesday, October 27, 2009, 7:56 AM
> >
> >
> >
> >
> >
> >
> > My problem is that a update the firmware included the interrupt vector.
> > When I do reset. The interrupts keep jumping to the old values, until I unplug/plug the my card.
> >
> > Crandel
> >
> > --- In msp430@yahoogroups. com, "lslonim2" wrote:
> > >
> > > I'm familiar with the older parts in the line, but I think you are expecting too much from a reset. The registers are not supposed to be initialized by a reset. They may come up in a certain way after a powerup, but it's not guaranteed. They are random.
> > >
> > > Lloyd
> > >
> > > --- In msp430@yahoogroups. com, "crandel_z" wrote:
> > > >
> > > > Hi, I write a program that allow to update the flash program. After that I need to do a reset.
> > > >
> > > > I try to use watchdog and to call to 0x3100 to do the reset. But they not do a real reset, they do like a restart. Some registers are not initialized.
> > > >
> > > > There are another way to do a reset ?
> > > >
> > > > Thanks
> > > >
> > > > Crandel
> > > >
> > > > pd: I use MSP430F2618
> > > >
> > >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

Beginning Microcontrollers with the MSP430


Memfault State of IoT Report