Giuseppe Di Martino

Running Unit Test with Tessy

Discussion created by Giuseppe Di Martino on Jun 3, 2008
Latest reply on Jun 9, 2008 by UK_CF_FAE

I’m using Tessy (version 2.2.23) for running some tests with Trace32 set as target debugger for HCS08GB60 microcontroller.

Tessy InitScript command attribute is like the following:

WinClear
SYStem.Reset

Break.RESet
MAP.BONChip  0x1080--0xffff
SYStem.Up
do  C:\T32\m68hc08\flash\FlashS08.cmm prepare
flash.erase          all
wait 2.s
flash.erase          off
FLASH.Program                 ALL

And the PostloadScript attribute is :


FLASH.Program                 off
Print “flash programming ready”
Register.Set PC main
Register.Set SP 0xff
Data.List
Register
D.S. D:1802 53                    ;disable COP


 

Everything works correctly and the test is uploaded into flash.
Then Tessy reports the following message:

[tstcomm: bufferedWrite] unable to write - buffer not completely read (Master)
[tslow_disconnect] shutting down TRACE32
Error executing Master

and the cpu target is reset!
Is there something missing in the scripts?
Please can someone  help me?

Thanks!





Outcomes