Dear everybody,
I have made a project with CCSv4 and ezUSB C5515. I made an ASM file defining 2 variables like this
....
.global _tv_outbuf
.global _tv_inbuf
.sect ".data"
_tv_outbuf
.space 16*500
_tv_inbuf
.word 0
.word 2531
.word 4848
.word 6699
.....
In file main.c file: i can read the values of tv_inbuf using way shown in SPRU281A, section 6.5. However, i can not write values to tv_outbuf, data in this section remains zeros all the time. I would like to write using C file
This is my C file:
#ifdef FILE_INPUT
extern Int16 tv_inbuf[];//This is the object
Int16 *tv_inbuf_p = tv_inbuf; //See p138.SPRU 381 - Pointer to file input array
extern Int16 tv_count;//Total number of input samples
Int16 sample_index=0;//Pointer to input samples
extern Int16 tv_outbuf[];//This is the object
Int16 *tv_outbuf_p= tv_outbuf;//This is the pointer to file output array
#endif
...
input[0]=tv_inbuf_p[sample_index];//This works nicely
filter();//Perform filter
tv_outbuf[0]=5;//This doesn't work
...
I do not know how to slove the problem. Please help me. I really appreciate your help.