Timeline for Relation between baudrate in UART and clock speed
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 11, 2020 at 15:10 | history | edited | CommunityBot |
Commonmark migration
|
|
Apr 27, 2018 at 11:25 | comment | added | naggety | True. I just found it useful the first time I started with ST, and now I realize that it's just because I had the examples available to look at them. If the examples had been with registers config and a bit of simple code example HAL wouldn't be needed at all even for beginners. | |
Apr 27, 2018 at 11:10 | comment | added | 0___________ | HAL - How to make simple stuff complicated? USART and this barbarion library. One of the simplest peripherals. Looking for the "magic" solutions. 20 lines of the "bare register" code and you are done. | |
Apr 27, 2018 at 9:53 | comment | added | naggety | As a last try: once it happened to me that execution always stopped in a certain function, so I though it was because that function. It ended being the watchdog that was always being triggered at that function. Try to disable watchdog. If it's not that, try to test the electrical signals with an oscilloscope or logic analyzer to see what's going on. | |
Apr 27, 2018 at 9:41 | comment | added | Pryda | I updated the post with msp and it files. the IRQ_Handler exists too | |
Apr 27, 2018 at 9:35 | comment | added | naggety | Added another possible cause | |
Apr 27, 2018 at 9:34 | history | edited | naggety | CC BY-SA 3.0 |
added 327 characters in body
|
Apr 27, 2018 at 9:07 | comment | added | Pryda | Interrupts are enabled and I have this Systickclock function in my project. I tried another solution with HAL_UART_Receive_IT(). I enabled interrupts on RXNE and TC before the while. Still have the same problem | |
Apr 27, 2018 at 9:00 | comment | added | naggety | updated my answer | |
Apr 27, 2018 at 8:59 | history | edited | naggety | CC BY-SA 3.0 |
added 545 characters in body
|
Apr 27, 2018 at 8:32 | comment | added | Pryda | Well, The code source is fine, I debugged and I opened a UART terminal (Putty). I don't receive anything and when I write using PC, I used a watch on the RX buffer, no data has been received. Using the step by step debugging, It stops at the transmit function | |
Apr 27, 2018 at 8:27 | comment | added | naggety | You should specify what is not working. Is the program running OK or it stalls in any point? In what point? (use the debugger to see where it stop, you can add infinite loops instead of _Error_Handler). You can also use an oscilloscope to see if anything is being sent. Also, if what doesn't work is that you don't receive the response: may not be because of the delay? If the other device respond immediately, you are not waiting any RX message during the delay. | |
Apr 27, 2018 at 8:21 | comment | added | Pryda | I used this method and it doesn't work. I edited topic (I posted code source) | |
Apr 27, 2018 at 8:11 | vote | accept | Pryda | ||
Apr 27, 2018 at 8:20 | |||||
Apr 27, 2018 at 8:06 | history | answered | naggety | CC BY-SA 3.0 |