This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

integrating video_preview example

I am able to run the video_preview example, which grabs the frames from the camera. I want to use this example in another dsp/bios project. I copied the other dsp/bios code into the video_preview example. And also made some changes to the dsp/bios configuration according to the other project. One such change is addition of an Idle Funtion "IDL_OSware".

When i include this function, i am getting a grey frame, when i delete this function from the configuration, i am getting the video frames as usual. But, if i delete this function, the other dsp/bios code which i integrated, is not working. According to the documentation, this function relaxes the cpu and gives  control to other process. May be this is the reason, i am getting the grey frames. Is there any way i can overcome this problem, like saving the context of video_preview task before relaxing the CPU or something like that

 

Thank you

  • I honestly never heard of the "IDL_OSware" you are talking about and I'm not sure that DSP/BIOS supports it. What part of your program calls the function? Why do you need it? IF I understand what you are trying to achieve maybe I could help. Are you using TSKs? Do they have different priorities?  

     

  • I am running DSP/BIOS and Linux in parallel using virtualLogix VLX (a virtualization software). Currently, the use of DSP/BIOS application is to assign memory to the Linux to run. I have 128 mb ddr and i am partioning 64 mb each for DSP/BIOS and Linux. This partition is done by DSP/BIOS. Also, DSP/BIOS configures a shared memory region through which both the DSP/BIOS and Linux exchange data. This is working with some dummy data. Now,  i want to share the frames captured by the DSP/BIOS. So, i integrated both the frame grabbing and my DSP/BIOS projects. CPU is being scheduled by the DSP/BIOS and Linux through interrupts. IDL_OSware is triggered through such interrupt. Its functionality is to idle the DSP/BIOS and give access to Linux. I uploaded my DSP/BIOS project. May be you will get some better idea. It has also a TSK and frame grabbing project also has TSKs.

    shm-example.rar
  • May be i have to check with TSKs. Because both the projects have thier own TSKs and they might be interrupting each other.