DSPRelated.com
Forums

Re: Fw: DM642 VideoPort: VP_open doesnt return

Started by mens...@hotmail.com April 26, 2006
Yes, I have the same problem... reset remains 1. This can only happen when the clock signal is not present... but I have a really good clock on my DM642. So I switch-off-on and hope it works again.
Maybe it has to do with an old version of the DM642, because the first batches had problems.

>
>Another thing I found out:
>
>I extracted the source of VP_open from the csl6000.src with ar6x and
>compiled it locally with my small application. When VP_open is called with
>VP_OPEN_RESET, the following code is executed:
>
>/* Enable video port in PCR register if it is not */
>if(!VP_FGETH(hVp, PCR, PEREN))
>{
>VP_FSETSH(hVp, PCR, PEREN, ENABLE);
>}
>
>VP_FSETSH(hVp,VPCTL,VPRST,RESET);
>
>/* Wait for reset to complete */
>while(VP_FGETH(hVp,VPCTL,VPRST));
>
>well - and the last while is an infinite loop when the VPCTL bit is not
>reset to 0 again. I wonder why TI hasnt implemented a timeout or something
>to make the function exit when an error happens...
>
>In my case, the VPRST bit in VPCTL is set to 1 and remains 1 forever, the
>reset is never finished, thats why VP_open call hangs.
>
>Whats required to make the VP-Reset finish?
>
>bye,
>
>thomas
>
>> ==============================================================>> Hi,
>>
>> In another posting some hours back, I have described a problem
>initializing
>> the DM642s VideoPort. I have seen another quite strange behaviour, maybe
>> someone had this before...:
>>
>> 1.) powerOn
>> 2.) download small application that enables videoPort in the PERCFG
>register
>> (CHIP_config) and
>> 3.) call VP_open(anyPortNr, VP_OPEN_RESET). This call doesnt return.
>>
>> Again - like described yesterday - when I download the VGA_DISPLAY sample,
>> reset the CPU from CCS and reload my application, the VP_open returns.
>>
>> Anyone has observed a similar hanging of the VP_open? What was the
>solution?
>>
>> There is something required apart from enabling the videoPort in the
>PERCFG
>> register to make the VideoPort active, some setting that survives a 'Reset
>> CPU' from CCS - what could this be?
>>
>> best regards,
>>
>> thomas
>
>
>--
>+++ NEU: GMX DSL_Flatrate! Schon ab 14,99 EUR/Monat! +++
>
>GMX Garantie: Surfen ohne Tempo-Limit! http://www.gmx.net/de/go/dsl
>
>
>
>
>
>