USBDM can't debug watchdog in MC9S08PA16

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USBDM can't debug watchdog in MC9S08PA16

506 Views
wangbaode
Contributor IV

Hi pgo,

I find a bug of USBDM.I new a project of Mc9S08PA16.I download the program into pA16 and watch WDOG register.

pastedImage_0.png

the value is different from the default value of PA16.when i download program into PA16 through multilink.the value is same as the default value in datasheet.

so I think it's a bug.can you try it?

bye

Tags (2)
0 Kudos
3 Replies

309 Views
pgo
Senior Contributor V

Hi Wang,

This issue has been corrected in the current version just uploaded to Sourceforge.

bye

0 Kudos

309 Views
wangbaode
Contributor IV

Dear pgo,

Thanks

0 Kudos

309 Views
pgo
Senior Contributor V

Hi Wang,

You are quite correct.  Unfortunately I can't see any way around this.

USBDM modifies the target registers to allow programming.  After programming the device is reset.  Unfortunately the Watchdog is not reset by a software reset - It appears to only be reset by a power-on-reset.

If you cycle power to to the target during your debugging session (and clear the USBDM connection dialogue that pops-up) you can restore the power-on-values.

Software reset in the debugger will not achieve this - The watchdog is unchanged.

I'm unsure how the Multi-link works.

bye

PS. I will modify the flash programming code so it doesn't lock the WDOG (if possible).

0 Kudos