2011-11-09 07:38 AM
FIXED!!!!
I was using a Union Structure, which required a read to the register..I have STM32F207 chip...Using UART2, I've tried to do bidirectional data sending and receiving. However, I've noticed that when I write a byte to UART_DR, the RXNE bit is clearing. This bit should only clear when I READ UART_DR. ''In single buffer mode, clearing the RXNE bit is performed by a software read to theUSART_DR register. The RXNE flag can also be cleared by writing a zero to it. ...'' ( RM0033 pg 610 - DOCID 15403 Rev 3)Help! Not sure what's going on. Is this a problem with the chip?Thanks!Sam #must-be-a-hardware-problem2011-11-09 08:44 AM
Help! Not sure what's going on. Is this a problem with the chip?
I'd wager the problem is far more mundane, you'd need to look at the code, and what the compiler has generated. Really can't help with the level of detail provided thus far, but a hardware flaw that big would be hard to miss in validation. Check the device errata, create a small stand-alone demonstration of the failure.