MPC5xx: CodeWarrior Debug: OSEK Tasks State is "*invalid expression*"

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC5xx: CodeWarrior Debug: OSEK Tasks State is "*invalid expression*"

1,714件の閲覧回数
ThomasKintzel
Contributor I
Hello!

I'm using
CodeWarrior 8.1
OSEK 2.2.1
MPC563

I debug my application and want to watch the OSEK Tasks objects

In that window the debugger displays in the columns "Task State" and "Wait Events" the text *invalid expression* (see attached pic).

I do something wrong. But what? Can anybody help me to see correct values?

Thank you

regards
Thomas

Message Edited by CrasyCat on 2007-04-13 02:28 PM

ラベル(1)
タグ(1)
0 件の賞賛
3 返答(返信)

446件の閲覧回数
J2MEJediMaster
Specialist I
Again, keep in mind that basic OSEK tasks--of which you've got quite a number--are either running or not. Put another way, their context exists only while their code executes, and it utterly disappears when the task terminates. The task context is only preserved for extended tasks. Unless you've hacked at the OSEK source code files (those in the ..\osts12\src\ directory), things should be functioning as they should.

---Tom
0 件の賞賛

446件の閲覧回数
J2MEJediMaster
Specialist I
Is this a screen shot before OSEK runs? The task state variables might be filled with random numbers that fall outside of the range of what's considered a valid task state. Hence the "invalid expression" result. The same explanation applies to those event variables. As OSEK runs and tasks start and stop, valid values should start to appear. Note that task states are only valid for extended tasks.

---Tom
0 件の賞賛

446件の閲覧回数
ThomasKintzel
Contributor I
Tom, thanks for your reply
 
>> Is this a screen shot before OSEK runs?
 
No, the application was started. I have set a breakpoint in one of the extended tasks.
 
This is my very beginning of that project and with OSEK in general. Some of the tasks consists only of a TerminateTask() so that they are already terminated at this time. Maybe this is a problem?
 
Thomas
 
 
0 件の賞賛