vxworks

taskVarAdd used twice for the same variable

Hi All, I have a global struct added to my task using taskVarAdd() API. But during some scenarios, the same global struct is is added to the same task again using taskVarAdd() API. [i.e., taskVarAdd() is called twice from a task for a same variable]. This struct will maintain the taskID, message queue ids for that task Following is ...

Profiling a VxWorks system

We've got a fairly large application running on VxWorks 5.5.1 that's been developed and modified for around 10 years now. We have some simple home-grown tools to show that we are not using too much memory or too much processor, but we don't have a good feel for how much headroom we actually have. It's starting to make it difficult to do...

If passing a negative number to taskDelay function in vxworks, what happens?

Noted that the parameter of taskDelay is of type int, which means the number could be negative. Just wondering how the function is going to react when passing a negative number. ...

How to determine why a task destroys , VxWorks ?

Hi I have a VxWorks application running on ARM uC. First let me summarize the application; Application consists of a 3rd party stack and a gateway application. We have implemented an operating system abstraction layer to support OS in-dependency. The underlying stack has its own memory management&control facility which holds memory ...

Redirecting VxWorks shell output to a socket.

I'm aware that it's straightforward to redirect the shell output to a file. So I should also be able to set up a socket and redirect the shell's output to the socket, as essentially it's just another file descriptor (I think)? I've seen some example C programs that create some basic client/server functionality but (as small as they are...

How do you force C++ compilation on a .c file using VxWorks MIPS compiler?

I'm using the VxWorks MIPS compiler and I have some third party source that needs to be compiled as c++ but all the extensions are .c. There must be a switch I can pass into the compiler in this case to force C++ compilation but I can't find it. Any suggestions? ...

Thread stack overflow

In RTOses like vxworks whenever we create a task the stacksize is specified . Can we write a routine in C which checks if the stack is overflowing or not for the task ? ...

Do vxworks task share data region ?

In vxworks is the data region shared across all the created tasks like linux threads ?. Also what about the text and code segment which I feel should be separate for each task ...

How do we find out why proiority inheritance happened in VxWork?

We have one task who State is Ready+I . Can we find which task is it waiting for to release all semaphores? This is pre-6.0 vxworks ...

Cross compile Boost 1.40 for VxWorks 6.4

I'm trying to migrate a project which uses Boost (particularly boost::thread and boost::asio) to VxWorks. I can't get boost to compile using the vxworks gnu compiler. I figured that this wasn't going to be an issue as I'd seen patches on the boost trac that purport to make this possible, and since the vxworks compiler is part of the gnu...

Difference between vxworks 6.1 and 6.6

Hi All, Please let me know the difference between vxworks 6.1 and 6.6 Regards, Sikandar ...

In vxworks, should every task be spawned with VX_FP_TASK option?

In vxworks, should every task be spawned with VX_FP_TASK option? The VX_FP_TASK option is required if your task uses any floating point operations. But how does one predict the future - i mean, how can one know if he/she will use float or not? While fixing any bug or introducing new code, should the programmer find which all tasks wil...

How do I use the host's serial port with VxSim?

Can I use the hosts serial port through VxSim in VxWorks 5.5? ...

VxWorks : Task Id overwrites to another memory location

Hi I have an application running on VxWorks 5.5.1 It basically allocates a STL map data structure but in some cases my main task crashes. When I monitor via debugger, the allocated size for an STL map type variable has the value of another task's ID instead of 8. So it seems like a task ID and a variable is mixing. The problem occurs...

Has anyone run VxWorks on a desktop PC as a target

Can I use a desktop PC to run VxWorks as the operating system? In other words, can a standard PC be used as a target processor? I'm not talking about hosting Workbench and a VxSim on the same machine. Rather, I'm considering running just VxWorks (and my application) on a PC. It seems feasible as long as we can configure a board suppo...

What is the context of a task that is saved on stack when a task is blocked in VxWorks?

What is the context of a task that is saved on stack when a task is blocked in VxWorks? ...

What are all the differences between pipes and message queues?

What are all the differences between pipes and message queues? Please explain both from vxworks & unix perspectives. I think pipes are unidirectional but message queues aren't. But don't pipes internally use message queues, then how come pipes are unidirectional but message queues are not? What are the other differences you can think...

errno returns zero always in VxWorks PPC

I am running my code on VxWorks PPC and incase of system call failures especially for socket send / recv functions, errno returns 0 always. After some analysis I found that, errno returns 0 incase of all system call failures. Is there any initialization which I should be doing for errno to return correct values? ...

Instruction on how to build Qt for VxWorks ?

I would like to use Qt with VxWorks. Is that possible? If so, does anyone know if there's a tutorial or step-by-step guide on how to do so? Extra If anyone has experience in using Qt with VxWorks, you could share here as well. ...

Vxworks OS!!Can one task allocate memory from heap(say T1) and that can be freed by some other task (say T2)?

Hi, I am new to Vxworks. I have a doubt regarding the memory allocation/deallocation in Vxworks? Can one task allocate memory from heap(say T1) and that can be freed by some other task (say T2)? Thanks & Regards, AKS ...