Hello:
I am the student who is currently doing the audio signal processing project with C6713 floating point DSK and CCSv5.4 tool.
Since I am the novice of software development using DSP processor, I encountered numerous problems when writing C code.
My question is the software-level programming and debugging:
First, I want to use wire and mp3 to import the 10sec whale voice wav signal into the DSK. I use the Interrupt-based approach of reading in signal. (Namely, if signal comes into the Codec & McBSP, the interrupt event starts to work and CPU executes the ISR. I use API function of McBSP to read in sample-by-sample. If I suspend the mp3, no signal comes in and CPU executes the main function).
Here is my snapshot of ISR:
Remark: I create the temp variable which is used to receive the instantaneous sample from API function McBSP_read. Then I create the vector with only length of 1 to store this sample.
The key problem that I got stuck is that I need to use memory copy function to copy each instantaneous sample from the vector to the consecutive space of External SDRAM CE0 (start from 0x80000000). This memcpy function requires me to input the source and destination address of the value I want to copy from and to. "sample" is the source address. But for "exmaddr", I need to start from 0x80000000, but how can I increment it by 2 (each sample is 2bytes) to update the destination address? Since I am doing within the ISR, it is impossible to write "int exmaddr=0x80000000 at the beginning of the ISR. The samples would never be stored into succeeding memory space of CE0.
When I build, the error is:
how could I deal with the input parameter data type?
Another question is that do I have to add:
void *memcpy(void *dest, void *src, size_t count) in the front of main()?
Could you give me some suggestions (example code is better) about how to successfully import the voice signal into the CE0 from 0x80000000?
(10second Voice signal has 965499 samples. 2byte for each sample. Total byte is about 2000000)
I need ox1E8480 length space declared in cmd file to store this signal.
If you need supplemental code I wrote for reference, please tell me and I would update on time.
Thank you very much!
Yu