Good Afternoon,
I am going to zip two text documents and attach them here. One titled base station, one titled data collector.
The data collector samples temperature from the ADC and stores them in flash. Then, the user can open putty (connected to the base station) and press 't' in order to transmit the temperature values from data collector to the base station.
I actually use a MATLAB gui that mimics the same functionality and receives the transmitted data and plots it.
All of this works with a physical tx & rx connection on UART1 between the boards. If I use UARTEnableSIR(UART1_BASE, true); the following occurs:
I can transmit the user choice from the base station to the data collector. The data collector DOES receive it and handles the choice accordingly. However, when the temperatures are sent back to the base station (and to the gui) I receive NO values. Again, this does work with a physical connection...but breaks with the simple inclusion of uartenablesir.
I would GREATLY appreciate it if someone could run through the two iterations of code and see if I am missing something that would cause the infrared not to work. I am to present this Friday. I have an older iteration of code(continuous data transfer) that works...so I know it is software related. I just don't know what is wrong.
Thank you!!!for_debugging.zip