Hi all, I am trying to send the data out from the processor's(BF533) memory back to the "terminal screen"....through the UART. so what I did was I added "STDIO_UART.C" file from the STDIO_UART project to my "Audio"project Let me explain the out line of my code and then tell my problem ---------------------- void main(void) { all the innitializations.....all other functions are called here while(1) { for (i =0;i<100;i++) ----- ----- if( a cetrain condition is met) { fp = freopen("", "a+", stdout); printf("\n\r================\n\r"); printf("%f\n\r",azm); fclose( fp); } } } ----------- so I don't think I can open and close the file outside the loop as all my code is there inside "while(1)" loop.(do let me know if there is a possibility to open and close a file only once even in this situation,If i can do this then my problem is solved) also I have noticed that I am able to print as many times as I want before closing the file once. but after I open and close the file for the 1st time,i am able to open the file for the second time but I am not able to close the file for the second time.... so tried to debug the code then i realised that for some reason the UART_LSR registers is not being reset to 0x0060 as it should be done after each transfer is complete.....this situation araises only when i try to close the file for the second time (obvisouly after i open the file for the 2nd time)... SO NEED HELP FROM THE EXPERTEIS ...immediately.... thanking you all in advance and hope to hear from u all soon with best regards, shwetha ________________________________________________________________________ Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony |
audio talk through-STDIO_UART(BF533)
Started by ●February 19, 2005