Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC

Ads

Discussion Groups

Discussion Groups | 68HC12 | P&E Debugger + soft reset HCS12

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

P&E Debugger + soft reset HCS12 - Scott - Jun 22 8:19:00 2004

Hi,

I am running into a problem where my software reset will work while
running with my debugger but when it is removed the code locks up
somwhere. Since I dont have a debugger attached when it locks up I
cant tell what happens, and it works with the debugger running.

I do not enable cop either thinking that cop could be timing out. On
top of that I make sure in my reset routine to disable cop.

Currently my reset routine will (i dont disable cop here)

asm("sei") //disable interrupts
asm("jmp __start") //jump to start of program This works fine when running through the BDM and debugger. But with
everything detached its useless. Any help would be appreciated.

Thanks
Scott





(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )


Re: P&E Debugger + soft reset HCS12 - M.B. - Jun 23 0:17:00 2004


>asm("sei") //disable interrupts
>asm("jmp __start") //jump to start of program >This works fine when running through the BDM and debugger. But with
>everything detached its useless. Any help would be appreciated.

If You use once writeable registers you can't write this after your sowtware
reset.
At BDM and debugger You can modify this register.
Use COP reset...

Mariusz





(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: P&E Debugger + soft reset HCS12 - Scott - Jun 23 10:05:00 2004

Thanks, i happen to move my ram during initialization which happens
to be a write once I believe. Thanks for the tip.

scott

--- In , "M.B." <manekb@p...> wrote:
>
> >asm("sei") //disable interrupts
> >asm("jmp __start") //jump to start of program > >This works fine when running through the BDM and debugger. But with
> >everything detached its useless. Any help would be appreciated.
>
> If You use once writeable registers you can't write this after your
sowtware
> reset.
> At BDM and debugger You can modify this register.
> Use COP reset...
>
> Mariusz




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )