2014-04-05 01:39 AM
2014-04-08 01:34 AM
OK, let's go back to the basics: throw away interrupt stuff, RX side, your data buffers etc ... Try to send in an endless loop a single char, just to make sure wires are correctly connected and baudrates synced with docklight.
Just another free guess: What can make your project working on F4 and not F0, might be the value of HSE_VALUE in your project. Make sure it matches your crystal (if you use HSE as clock).2014-04-08 02:06 AM
OK, let's go back to the basics:...
I honestly suggest to the OP to have a look at Arduino or similiar concepts/environments. They present a much lower entry hurdle, compared to to the kind of bare-metal coding required here.
2014-04-08 02:22 AM
2014-04-08 02:42 AM
I'am happy to see that the code is perfectly all right.
Before coming back to us in case something wrong happen, do not forget to change: GPIO_PinAFConfig(GPIOA, GPIO_PinSource9, GPIO_AF_0); // GPIO_PinAFConfig(GPIOA, GPIO_PinSource10, GPIO_AF_0); into GPIO_PinAFConfig(GPIOA, GPIO_PinSource9, GPIO_AF_1); // GPIO_PinAFConfig(GPIOA, GPIO_PinSource10, GPIO_AF_1); And tell us how you test and why you think something is working or not, plz help us to help you.2014-04-08 03:15 AM
thanks a lot . I m learning a lot from you all and yes clive have always been a support for me
Once again thanks But I wandered the code whics i have pasted above for stm32f407 and stm32f030 will be able to communicate with each othe . this is the right way or something else need to be done?2014-07-11 08:55 PM
Oh,my god...
Thanks for remind me seriously take GPIO-AF as seriously. I configure PA9 as USART1's TX!! (I was just begin with stm32,although previously I was done these things in stm8s,it's really difference!)