Page 1 of 1

Keil microVision Display DLL

PostPosted: Thu Jan 09, 2003 7:59 am
by ChrisL
Keil's microVision has an interface for an RTOS to display task status info during debugging. See their app note #144. Does anyone know if Salvo would work or could be made to work with this interface?

------------------
Chris Lincoln
ULTRAX, Inc.


Re: Keil microVision Display DLL

PostPosted: Thu Jan 09, 2003 8:55 am
by aek
Hi Chris.

We're aware of the DLL interface, but haven't yet looked too deeply into implementing it for Salvo. It certainly would be useful.

One issue that might complicate things is the configurability of Salvo. The Salvo structures (e.g. the tcbs) will differ depending on which config options are used. I presume that this would require that the DLL be "salvocfg.h-aware" in order to display things like task status, priority, etc. correctly. Probably pretty non-trivial to implement correctly ...

Regards,

------------------


Re: Keil microVision Display DLL

PostPosted: Thu Jan 09, 2003 8:57 am
by aek
One thing I should mention is that there is a Salvo user who is developing a low-cost Salvo hardware monitor -- while it doesn't display task states, it does show which task(s) are running, when the system is idling, and does run-time measurements on system performance ...

------------------


Re: Keil microVision Display DLL

PostPosted: Thu Jan 09, 2003 9:03 am
by aek
Oh, one other thing ... since uVision does a nice job of displaying structures, you can figure out the state of a task, etc. in a roundabout way.

The tcb for a given task is at &tcbArea[tID-1], i.e. task 5's tcb is at &tcbArea[4]. The status (byte) field holds the task priority and its state (see salvo.h). With the info in salvo.h and the right bits (status is a bitfield with a couple of things in it), you can halt processing and peek at the state of any task.

Not pretty, but it works.

------------------

[This message has been edited by aek (edited January 09, 2003).]