Running Unit Test with Tessy

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

Running Unit Test with Tessy

5,085 Views
JKLucas
Contributor I

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!





Labels (1)
0 Kudos
Reply
2 Replies

3,027 Views
harsha_jakkamkr
Contributor II
I believe it could be due to invalid memory access by the function under test. I have seen similar errors when the code was accessing invalid memory. This invalid memory access could also happen in the stub function.
Tags (2)
0 Kudos
Reply

3,581 Views
UK_CF_FAE
NXP Employee
NXP Employee
I'm not familiar with Tessy. anyone on the forum got any experience??
 
Mark
0 Kudos
Reply