Does anybody link together dsplink and wince application?
I builded sample application "message" and "readwrite" and they seemed run ok.
But then i tried to write simple console application for GPP.
I call in the _tmain() those functions:
PROC_setup ()
PROC_attach ()
PROC_load ()
PROC_start (processorId) ;
On the DSP side i have simple application "bios_led", it toggles led.
I call in main()
DSPLINK_init ()
When gpp application starts it successfully loads bios_led and starts it, but then it hangs.
This behaviour is well described in this post http://e2e.ti.com/support/embedded/linux/f/354/p/145131/527312.aspx#527312
The deadloop is exactly the same:
dsplink_linux_1_65_00_02\dsplink\gpp\src\ldrv\drv\Shm_drv.c
NORMAL_API
DSP_STATUS
SHMDRV_handshake (IN ProcessorId dspId,
IN Uint32 linkDrvId,
IN DRV_Handshake hshkCtrl)
{
......
/* Wait for DSP to write its handshake value. */
/* while ( (ctrlPtr->handshakeDsp != dspHandshake)
&& DSP_SUCCEEDED (status)) {
i ;
if ( (linkDrv->hshkPollCount != (Uint32) -1)
&& (i == linkDrv->hshkPollCount)) {
status = DSP_ETIMEOUT ;
SET_FAILURE_REASON ;
}*/
......
}
This is because expecting value of ctrlPtr->handshakeDsp is BABA01FF but actual value i get is BABA0103.
Can anybody post a simple example of how accurately configure DSPLink for WIN CE on DSP and GPP sides in minimum configuration including PROC and NOTIFY modules?
Thanks in advance