I send a char string to com port using sym32f4( with 3 pins only: GND VCC TX) and listen using ''hercules'' program finded on the net. I get weird characters, took a screanshot and uploaded as attachment. Can anyone help me, thnks.
If not the PLL/HSE settings (EVAL boards use 25 MHz, DISCO boards use 8 MHz), then look at how you're connecting the USART, it uses CMOS levels, not RS232 levels. Review timing issues using a scope.
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
First thanks for the response. I have no system_config.c file, i made the first change in stm32f4xx.h from 25 to 8 but it didnt worked. I use stm32f4 discvory board send from PA2 (TX).
Mr Clive here is the code. Values come i monitor in watch1 but cannot send in corect way. I have no scope by the way :( What tests should i do ? Thanks.
can you make buffer yourself, fill it by hand, and send it ?
sometimes sprintf can do some fun stuff also why you don't have system_config.c file, do you made your own file for setting up registers, pll and so on ? if no, just add that file from discovery projects that can be downloaded from st.com one fun fact, sometimes changing optimization helps,
also why you don't have system_config.c file, do you made your own file for setting up registers, pll and so on ? if no, just add that file from discovery projects that can be downloaded from st.com
system_stm32f4xx.c ?
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
I tested USART_SendData(UART4, 0x49); // Send 'I' but i got [.
I used default libraries for stm32f4 but there is no system_config.c instead there is system_stm32f4xx.c file. Whatever i changed the PLL_M =8 and HSE= 8Mhz but it didnt worked :(
....
I got '[' instead of 'I'. Dont know why. Is your example codes for stm32f4 Discv. Board ? If so can you share full code with config or just system_stm32f4xx file. So i can work with true config. Thanks.