DSPRelated.com

code working on simulator but not on device?

Started by megha daga in TMS320c54x18 years ago 22 replies

Hi everyone I am working on a PEP5416 device and am using a TI C5416 simulator. I am implementing an acoustic model which takes the sound input...

Hi everyone I am working on a PEP5416 device and am using a TI C5416 simulator. I am implementing an acoustic model which takes the sound input from the microphone, process it (filters) and provide the filtered output at headphone. My code is working on the simulator, its not giving any errors and I have debugged it step by step, its nowhere getting stuck. But when I try to run the code on the ...


Re: [Fwd: Re: code working on simulator but not on device?]

Started by Jeff Brower in TMS320c54x18 years ago 1 reply

Megha- > Results with no printf were: > rx_wait was: > 8 > 0 > 19 > 0 > 19 > 0 > 19 > 0 > and tx_wait were all 0. Ok,...

Megha- > Results with no printf were: > rx_wait was: > 8 > 0 > 19 > 0 > 19 > 0 > 19 > 0 > and tx_wait were all 0. Ok, these counts are really short, but at least they are consistent. The Tx values are zero because once Rx is ready, Tx is most likely going to be ready at the same time. > > Well as per as clock is concerned. DSP is running at 96MHz (as set in DSP/BIOS) > an


Re: [Fwd: Re: code working on simulator but not on device?]

Started by Jeff Brower in TMS320c54x18 years ago

Megha- > I tested with the highest speed possible (156MHz) with a multiplier of > 13. > Yes there was increase in the counts of rx > It...

Megha- > I tested with the highest speed possible (156MHz) with a multiplier of > 13. > Yes there was increase in the counts of rx > It was as follows: > 25 > 0 > 35 > 0 > 34 > 0 > 35 > 0 > and tx was 0 for all. well I cant see the definations of the function > PEP5416_AIC23_read and write but ya I know what they do. The read16 will > read a 16-bit signed value from the codec data


Re: [Fwd: Re: code working on simulator but not on device?]

Started by Jeff Brower in TMS320c54x18 years ago

Megha- > I did following: > > int rx_wait[8]; > int tx_wait[8]; > > for(i=0;i { > rx_wait[i] = 0; > > ...

Megha- > I did following: > > int rx_wait[8]; > int tx_wait[8]; > > for(i=0;i { > rx_wait[i] = 0; > > /* Copy data from microphone inputs to headphone output */ > while (!PEP5416_AIC23_read16(hCodec, &buffer[i])) rx_wait[i]++; > printf("rx wait is %d \n",rx_wait[i]); > > tx_wait[i] = 0; > while (!PEP5416_AIC


[Fwd: Re: code working on simulator but not on device?]

Started by Jeff Brower in TMS320c54x18 years ago 2 replies

Megha- Suggestions: 1) Comment out Preemphasis() for now, during debug. 2) Does FilterBufferBySamples() expect floating-point arguments? ...

Megha- Suggestions: 1) Comment out Preemphasis() for now, during debug. 2) Does FilterBufferBySamples() expect floating-point arguments? If so, you are passing pointer to fixed-point, which is going to be a problem. 3) Place counters in these two loops and find out how long they wait: long rx_wait = 0; long tx_wait = 0; while (!PEP5416_AIC23_read16(hCodec, &bufferrcv[i])...


Re: [Fwd: Re: code working on simulator but not on device?]

Started by megha daga in TMS320c54x18 years ago

Dear Jeff I did following things: First: Working long rx_wait = 0; long tx_wait = 0; while (!PEP5416_AIC23_read16(hCodec, &bufferrcv[i]))...

Dear Jeff I did following things: First: Working long rx_wait = 0; long tx_wait = 0; while (!PEP5416_AIC23_read16(hCodec, &bufferrcv[i])) rx_wait++; while (!PEP5416_AIC23_write16(hCodec, bufferxmt)) tx_wait++ cfir(); and inside cfir() I just did copy paste (xmt=rcv). In that case rx_wait count is varying 0 to 57 and tx_wait is 0 Second: Not Working output is noise long rx_wait = 0; ...


Re: [Fwd: Re: code working on simulator but not on device?]

Started by Jeff Brower in TMS320c54x18 years ago 1 reply

Megha- > Secondly when I calculated the rx_wait and tx_wait without FilterBufferBySamples I > got a range of values (0-50) for rx_wait and 0...

Megha- > Secondly when I calculated the rx_wait and tx_wait without FilterBufferBySamples I > got a range of values (0-50) for rx_wait and 0 for tx_wait. For rx_wait it was > changing every time. And what if you just do this: long rx_wait; long tx_wait; int sample; rx_wait = 0; while (!PEP5416_AIC23_read16(hCodec, &sample)) rx_wait++; tx_wait = 0;


Looking for Teachers of DSP

Started by Webmaster in TMS320c54x18 years ago 1 reply

I am creating a new discussion group for teachers of signal processing. The goal is to bring together as many (D)SP teachers as possible so if...

I am creating a new discussion group for teachers of signal processing. The goal is to bring together as many (D)SP teachers as possible so if they wish, they can exchange all kind of useful information, like for instance which book(s) they use to teach their class, their favorite web sites, matlab tutorials, labs, etc. I am requesting your help today to help me build a list of teachers th...


help regarding memory mapping

Started by megha daga in TMS320c54x18 years ago 1 reply

Hey Everyone I need help regarding proper memory allocation of internal and external memory. The problem is my code is too big. Its not fitting...

Hey Everyone I need help regarding proper memory allocation of internal and external memory. The problem is my code is too big. Its not fitting into the memory. My MP/MC is 0, DROM is 1, OVLY is 1 Following is memory map in my GEL file: GEL_MapAdd(0x80u,0,0x7F80u,1,1); /* DARAM */ GEL_MapAdd(0x08000u,0,0x8000u,1,1); /* External */ GEL_MapAdd(0x18000u,0,0x8000u,1,1); /* DARA...


Re: problem in use of external memory

Started by Jeff Brower in TMS320c54x18 years ago 2 replies

Megha- > Should I change anything in > settings or something to enable the external memory. As per as I know we dont have > EMIF settings...

Megha- > Should I change anything in > settings or something to enable the external memory. As per as I know we dont have > EMIF settings in C5416 as in c55x. Right? Not exactly. There are memory-related registers you have to set for 5416, such as wait-states, BSCR, etc. Question: what .gel file are you giving CCS prior to use when it first opens? The initial .gel file should be se


Ask a Question to the DSPRelated community

To significantly increase your chances of receiving answers, please make sure to:

  1. Use a meaningful title
  2. Express your question clearly and well
  3. Do not use this forum to promote your product, service or business
  4. Write in clear, grammatical, correctly-spelled language
  5. Do not post content that violates a copyright