unexpected simulator halt

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

unexpected simulator halt

跳至解决方案
2,808 次查看
bobelec
Contributor III

Hello,

I'm launching a MC9S08DZ128 simulation on the P&EMicro emulator of CodeWarrior 10.

After the chip initialization and a few other commands, the emulator stops with the following message:

Thread [ID: 0x0] (Suspended: Signal 'Halt' received. Description: User halted thread.)

 

I didn't send any halt signal

There's not breakpoint in the project

Thet is no IT call as far as I can see.

If I remove the intruction on which the simulator halted, it stops at the next instruction.

It's a memory paged project that compiles successfully.

 

Do you have any idea on how I could find out the cause of this crash ?

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,803 次查看
bobelec
Contributor III

Hi Lundin,

The stack is OK.

I switched back to CodeWarrior 6.3 (I was using CW10) and the 6.3 simulator told me that I was reading some data from uninitialized FLASH.

I corrected the bug in my source code and now the project is simulating successfully under CM6.3 aswell as CW10.

I think I will abandon CW10. I'll wait until it's more stable (see my issue concerning the compile time being 30 time longer on CW10 than on CW6.3)

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,803 次查看
Lundin
Senior Contributor IV

You typically get this when the program is executing outside its memory space. Seems likely that you have a severe bug in the program. The most common reason is stack overflow. Do you set up the stack properly?

0 项奖励
回复
1,804 次查看
bobelec
Contributor III

Hi Lundin,

The stack is OK.

I switched back to CodeWarrior 6.3 (I was using CW10) and the 6.3 simulator told me that I was reading some data from uninitialized FLASH.

I corrected the bug in my source code and now the project is simulating successfully under CM6.3 aswell as CW10.

I think I will abandon CW10. I'll wait until it's more stable (see my issue concerning the compile time being 30 time longer on CW10 than on CW6.3)

0 项奖励
回复