I think the approach in there would be using interrupts. STM32 has some APIs that generate an interrupt once the last character is entered. You will have to look for APIs related to that and try them out. Thanks
It helps me a lot, thank you, sir! And may I ask you some questions? 1. Currently I am studying to program the STM32F405R6T6, so does it have the same code as stm32f446re? 2. Beside the serial UART, I want to add 2 CAN protocols to the stm32, and I want to program to transmit the data from UART to stm32 to CAN1 to CAN2 and the opposite way, and I'm struggling for how to transmit the data from stm32 to CAN1, may you provide me some clues? Thank you!
Hey I am glad it was helpful. I will try to answer your question the best I can. 1) If the controller is the same then it will mostly be the same. Although the API remains the same the things that change are pinouts, frequency of operation, memory map and other peripherals. 2) I have never worked with CAN so I am not sure how it works and what you need to make it work. Sorry I am not very helpful with this question due to lack of my experience. Hope this helps. Thank you 🙂
Hey, you mention that the callback is called only when the buffer (7 characters) is filled. But is there a way to call it when the newline is received, so that I can receive strings of different length? Thank youu :)
Yea I think that is possible. There will be a check that says when a new line character is received. I am not sure what needs to be done. You will have to check the APIs and see what works the best for you and how you can use it for your special application. Thanks
Bro i am using stm32nucleo-h563zi i choose 10bit resolution with 12.5 cycle sampling as ( 16 cycle not not showing) when i am running code my adc values stucking between two values ( 15-16) only ....
This video is about UART. I am not sure I understand your question and it seems it is more focused on ADC. I would suggest you watch my other ADV video for more clarity. Thanks
Will setting a GPIO on an Alternative Function Mode. Pins here can be used as in or out or for usart or for timers in same time?? For exemple l make GPio_pin=pin0|pin1 Can l take pin0 to send date via usart and pin1 as a digital output? Or all pins should have the same behaviour.
@@Chia_seeds all pins should have the same behaviour. If u want switch between AF and An for exemple just make 2 différents functions for each config. Then call each one when u need it
@@helmi2376I know what you mean. I know the principle. But when I practiced, I always didn't know how to start. I'm getting started very shallowly. I don't have an oscilloscope at hand either. Do you need an oscilloscope for this?I
Yes it can work. Please check the voltage levels for both the boards. If one works on 3.3v, you will need a level shifter. Also the ground for both the boards have to be shorted.
just a remember you are a king brother i finally solve my problem!! Hope you get a great job!!
Thank you so much for your kind words. I am glad it worked out for you and I was able to help you.
Thanks 😊
Helped a lot, thanks
That's great to hear. Glad it was helpful for you. Thanks
Following your method, while transmitting the terminal shows the sent message twice (Hi Everyone). Why is that?
I am not sure, you might want to check all your settings. Thanks
1:43 How you can choose "Crystal ceramic resonator". Even in your picture from 0:17 it doesn't exist? You didn't should choose "Bypass clock source"?
I am not sure if I understand your question correctly. I would suggest you to watch the video once again to see any step you might have missed. Thanks
In this video explained very well but my dout is while receiving i dont know the data length i want to receive unknown data length howto achive ?
I think the approach in there would be using interrupts. STM32 has some APIs that generate an interrupt once the last character is entered. You will have to look for APIs related to that and try them out.
Thanks
It helps me a lot, thank you, sir!
And may I ask you some questions?
1. Currently I am studying to program the STM32F405R6T6, so does it have the same code as stm32f446re?
2. Beside the serial UART, I want to add 2 CAN protocols to the stm32, and I want to program to transmit the data from UART to stm32 to CAN1 to CAN2 and the opposite way, and I'm struggling for how to transmit the data from stm32 to CAN1, may you provide me some clues?
Thank you!
Hey I am glad it was helpful. I will try to answer your question the best I can.
1) If the controller is the same then it will mostly be the same. Although the API remains the same the things that change are pinouts, frequency of operation, memory map and other peripherals.
2) I have never worked with CAN so I am not sure how it works and what you need to make it work. Sorry I am not very helpful with this question due to lack of my experience.
Hope this helps. Thank you 🙂
Is that problem solved ? Some times it misses few char, I also tried , what's the solution for this?
Hey, you mention that the callback is called only when the buffer (7 characters) is filled. But is there a way to call it when the newline is received, so that I can receive strings of different length? Thank youu :)
Yea I think that is possible. There will be a check that says when a new line character is received. I am not sure what needs to be done. You will have to check the APIs and see what works the best for you and how you can use it for your special application. Thanks
This video says published 1 month ago, so use stm32cubemx separately, why not directly use stm32cubeide?
Appreciate your point here. I am just more comfortable with stm32cubexm and keil ide. I do plan to use stm32cubeide in future. Thanks
Hi. I want to read 50bytes of data from one uart1 and send that same bytes to uart3. Can you please explain in 3types. Dma polling IT
I will try to do so once I am done with all the queues I have planned.
Thanks
Bro i am using stm32nucleo-h563zi i choose 10bit resolution with 12.5 cycle sampling as ( 16 cycle not not showing) when i am running code my adc values stucking between two values ( 15-16) only ....
This video is about UART. I am not sure I understand your question and it seems it is more focused on ADC. I would suggest you watch my other ADV video for more clarity. Thanks
Will setting a GPIO on an Alternative Function Mode.
Pins here can be used as in or out or for usart or for timers in same time??
For exemple l make GPio_pin=pin0|pin1
Can l take pin0 to send date via usart and pin1 as a digital output?
Or all pins should have the same behaviour.
me too ! I am looking for using IO simulates UART serial communication!
Did you find it?
@@Chia_seeds all pins should have the same behaviour.
If u want switch between AF and An for exemple just make 2 différents functions for each config.
Then call each one when u need it
@@helmi2376I know what you mean. I know the principle. But when I practiced, I always didn't know how to start. I'm getting started very shallowly. I don't have an oscilloscope at hand either. Do you need an oscilloscope for this?I
@@Chia_seeds bro l'm a Software Devoloper, not skilled in embelded systhems
Would this work to communicate between an STM32 and Raspberry Pi 4 via Uart?
Yes it can work. Please check the voltage levels for both the boards. If one works on 3.3v, you will need a level shifter. Also the ground for both the boards have to be shorted.