clive, thank you for the examples. I think since I have access to PA2 I will cut/paste the second example at 9600bps. Do I need to do anything else like setting up closks or any other woodo? Also, do you think that the since the ST is a 3v device that there could be some logic-level issues when using it with a ttl converter? In any case, thanks everyone for your help, at least now I have a starting code that works -- when I get back to work I'll get the scope and check the levels.
5v Tollerance would be preferred (since It'll be driving fiber optic transcievers) I'll solder up pin 68,69 (PA9/PA10) and give it a try -- I'll let you know. Alex
The clocks would only be need to be setup explicitly if you were using synchronous serial modes. The code fragment provided for USART1 was all that was needed on the device. I wasn't remapping the USART so the AFIO clocks might be overkill, I usually enable them, ST does so in the boot loader.
My USART1 is connected up to a debug terminal via a FTDI DLP-RXTX, these boards have a solder jumper so you can switch the IO between 5V, or the voltage (3V/3.3V) supplied by the STM32 http://www.dlpdesign.com/dlptxrx-v12-ds.pdf A quick check of the manual suggests that the USART1 pins are 5V tolerant, the
USART2
pins are NOT. -Clive Edit: USART2 pins can be remapped to PD.5/PD.6 on the LQFP100 package, these pins are 5V tolerant. I don't have the ST decoder wheel to hand so not sure that is your part, other than it's a Medium Density part.
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..