2024-01-14 03:52 PM
hello,
Im trying to send the data I received on USB port (succesfully) to the UART port
i tried sending data between 2 windows in Hercule, one is connected to the USB port, the other is connected to the UART port with the right configurations.
I provided the transmit and receive data in the code but it doesn't seem to work out.
2024-01-14 04:11 PM
Fascinating, but lacking actual detail
Would avoid using blocking UART functions, but rather buffer the data so you can feed out using IT / DMA independently of the USB interrupts/callbacks.
2024-01-14 10:29 PM
exactly what I did
2024-01-15 02:55 PM
As @Tesla DeLorean said: "but lacking actual detail"
You SAY that you did this, but you don't show HOW you did it. We can't help without more detail. Post your relevant code (click the "..." button in the format bar the use the "</>" code tag).
"doesn't seem to work out" - You need to be more specific. How does it not work. What do you see, and what don't you see? Can you read data from the USB? Send data out the UART? etc.
2024-01-22 03:32 AM - edited 2024-01-22 03:34 AM
@Lola_ wrote:exactly what I did
Again, lacking in any detail.
@Lola_ wrote:i tried sending data between 2 windows in Hercule
What debugging have you done to find where it's going wrong? You need to exercise your little grey cells ...
eg, from USB to UART:
Have you tested that the UART and USB parts of your code work separately?
eg,