Posted on May 17, 2011 at 13:45For starters, try displaying a counter on your LCD that's incremented in the while loop, to make sure that the code is getting that far and trying to send out characters.
Posted on May 17, 2011 at 13:45You've switched to USART1, but you're still setting up the pins for USART2. USART1 should be on PB6/PB7. If you want to use PA2/PA3, I think you have to use USART2.
Posted on May 17, 2011 at 13:45You're using USART2, but you're enabling the clock for USART1. Try this instead: RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART2, ENABLE);