Hi thanks for the reply enabled only proc and in hello.c file i have set #define NUM_ARGS 0 and using in PROC_Load as bellow
44 if (DSP_SUCCEEDED(status)) { 45 status = PROC_Load(ID_PROCESSOR, dspExecutable, NUM_ARGS, NULL); 46 if (DSP_FAILED (status)) { 47 printf("PROC_Load failed. Status: [0x%x]\n", (unsigned)status); 48 } else { 49 printf("PROC_Load successful\n"); 50 } 51 fflush(stdout); 52 } then im getting following error ============================================================ Entered Hello_Create() ============================================================ PROC_Setup successful PROC_Attach successful PROC_Load successful PROC_Start failed. Status: [0x8000802d] ============================================================ Leaving Hello_Create() ============================================================ Create phase failed. Status: [0x8000802d] ============================================================ Entered Hello_Delete() ============================================================ PROC_Stop() failed (output). Status: [0x8000801b] PROC_Detach() successful. PROC_Destroy successful. ============================================================ Leaving Hello_Delete() ============================================================ ============================================================ if i set #define NUM_ARGS 2 i get different error ============= Hello Test ============== ============================================================ Entered Hello_Create() ============================================================ PROC_Setup successful PROC_Attach successful PROC_Load failed. Status: [0x8000800b] ============================================================ Leaving Hello_Create() ============================================================ Create phase failed. Status: [0x8000800b] ============================================================ Entered Hello_Delete() ============================================================ PROC_Stop() failed (output). Status: [0x8000801b] PROC_Detach() successful. PROC_Destroy successful. ============================================================ Leaving Hello_Delete() ============================================================ ============================================================ On Tue, Oct 21, 2008 at 3:05 PM, Kamoolkar, Mugdha <[EMAIL PROTECTED]> wrote: > Deepak, > > Please look through DSP/BIOS documentation on POOL module to see how POOL > instances must be created in BIOS. Also, you can use DSPLink sample > applications as reference: > E.g.: /dsplink/dsp/src/samples/message/message_config.c > static POOL_Obj pools [NUM_POOLS] = > { > { > &SAMPLEPOOL_init, /* Init > Function */ > (POOL_Fxns *) &SAMPLEPOOL_FXNS, /* Pool interface > functions */ > SAMPLEPOOL_PARAMS, /* Pool > params */ > NULL /* Pool object: Set within pool > impl. */ > } > } ; > This sets up the POOL. Also look at definitions of SAMPLEPOOL_init, > SAMPLEPOOL_PARAMS as defined in message_config.c and do a similar thing for > your application. > This configuration was not detailed at the web-site you have mentioned, so > that's why you probably missed it. > > If you do not need POOL and want a simple hello world program, you can just > enable only PROC module in configuration and try out. If you do that the > POOL configuration is not required, and POOL related error will not be seen. > > Regards, > Mugdha > > > ------------------------------ > *From:* Deepak Mundra [mailto:[EMAIL PROTECTED] > *Sent:* Tuesday, October 21, 2008 2:30 PM > > *To:* Kamoolkar, Mugdha > *Cc:* davinci-linux-open-source@linux.davincidsp.com > *Subject:* Re: writing compiling executing arm-dsp hello world program > > Hi .. As mentioned in the site .. i compiled both dsp and gpp side .. and > copied hellogpp and hello.out to board and also > dsplink/gpp/export/BIN/Linux/Davinci/RELEASE/dsplinkk.ko Using > loadmodules.sh inserted and ran "./hellogpp hello.out " .. but as i > mentioned in another mail .. im getting error at POOL CONFIG .. > > The selected configuration is: > > GPP OS = Linux > DSP OS = DspBios > GPPDISTRIBUTION = davinci_mvlpro4.0 > GPPOSVERSION = 2.6 > DSPDISTRIBUTION = c64xxp_5.xx_linux > > GPPPLATFORM = Davinci > DSPPLATFORM = Davinci > > USE_PROC = 1 > USE_POOL = 1 > USE_NOTIFY = 1 > USE_MPCS = 1 > USE_RINGIO = 1 > USE_MPLIST = 1 > USE_CHNL = 1 > USE_MSGQ = 1 > > TRACE = 0 > PROFILE = 0 > PROBE = 1 > > Am i missing anything .. > > Thank you > > On Tue, Oct 21, 2008 at 11:41 AM, Kamoolkar, Mugdha <[EMAIL PROTECTED]> wrote: > >> You can rebuild DSP-side: >> http://tiexpressdsp.com/wiki/index.php?title=Building_DSPLink >> >> Regards, >> Mugdha >> >> >> ------------------------------ >> *From:* Deepak Mundra [mailto:[EMAIL PROTECTED] >> *Sent:* Tuesday, October 21, 2008 11:38 AM >> *To:* Kamoolkar, Mugdha >> *Cc:* davinci-linux-open-source@linux.davincidsp.com >> *Subject:* Re: writing compiling executing arm-dsp hello world program >> >> Thanks for the reply ... >> >> DSP-side configuration mismatch/failure >> 0 -> success >> Positive value -> DSP-side failure code. >> (Uint32) -1 -> DSP-side component was not initialized. >> >> DRV configuration status [0x0] >> IPS configuration status [0x0] >> POOL configuration status [0x0] >> MPCS configuration status [0x0] >> MPLIST configuration status [0x0] >> MQT configuration status [0x0] >> DATA configuration status [0xffffffff] >> RINGIO configuration status [0x0] >> >> >> Now that makes sense after reading the trouble shooting guide .. this >> means DSP side i havnt enable CHNL option .. Because in GPP SIDE I have >> enabled it.. one thing which i can try is disabling in gpp >> >> using dsplinkcfg script >> >> >> But what about DSP side ? how can i enable it (or rebuild dsp) >> >> Thank you >> >> Deepak >> On Tue, Oct 21, 2008 at 9:31 AM, Kamoolkar, Mugdha <[EMAIL PROTECTED]> wrote: >> >>> Deepak, >>> >>> What error did you get while running? >>> Have you looked at this to see if your error matches any of the ones >>> listed here: >>> >>> http://tiexpressdsp.com/wiki/index.php?title=Troubleshooting_DSPLink_configuration_issues >>> >>> Regards, >>> Mugdha >>> >>> >>> ------------------------------ >>> *From:* [EMAIL PROTECTED] [mailto: >>> [EMAIL PROTECTED] *On Behalf Of *Deepak >>> Mundra >>> *Sent:* Monday, October 20, 2008 6:13 PM >>> *To:* davinci-linux-open-source@linux.davincidsp.com >>> *Subject:* writing compiling executing arm-dsp hello world program >>> >>> Dear all >>> >>> I have i am trying to run a arm-dsp hello world program .. when i was >>> searching i found the following link .. in which the author has written both >>> arm side and dsp side code .. >>> >>> http://www.dsprelated.com/groups/c6x/show/10556.php >>> >>> But my problem is how to compile these ? i have all tools required for >>> compilation.. i have also tried changing make files of sample dsplink codes >>> and also succeeded :) but got error while running ..So want detailed easy >>> step to compile this ..Please can any one guide me in this.. >>> >>> Thanks >>> Deepak >>> >> >> >
_______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source