SCP Hardware Questions
#10
(09-15-2020, 10:55 PM)admin Wrote: Well, I see a potential problem.  Did you cut the jumper at JB0, and add a jumper at JB1?

By default Rx and Tx are connected together and the routine that sends a byte falls into code that waits on the byte to be received after transmitted (echo'd), and there is a 50ms time out period that can go by if the byte is not received.  With Rx and Tx tied together the code just falls through and exists because the byte is instantly available.  So, if you are trying to use separate Rx and Tx lines then that would result in exactly what you are seeing.  It looks like I need to make another flag bit for handling whether the Rx and Tx are tied together or split.  I guess everyone so far that has been using the serial ports in their default half-duplex setup.

if you did not split the lines, then that would mean that you don't have the proper pull-up on the serial port line.

Yes, I have split Rx and Tx, because I just wanted to test few things (and I never used half duplex uart on stm32).

But it's working now.
I added echo on my serial port and now it takes just few seconds to transfer.
Looks like it does not need to echo the exact same dtata, I tried sending back zeros to see if I get any error, but it was the same.
Maybe I'll use half duplex...

Anyways, thanks for your help.
Reply


Messages In This Thread
SCP Hardware Questions - by merlinkv - 02-24-2019, 01:52 PM
RE: SCP Hardware Questions - by admin - 02-24-2019, 09:14 PM
RE: SCP Hardware Questions - by merlinkv - 02-25-2019, 01:43 AM
RE: SCP Hardware Questions - by admin - 02-25-2019, 08:21 AM
RE: SCP Hardware Questions - by Duboun - 09-15-2020, 10:28 AM
RE: SCP Hardware Questions - by admin - 09-15-2020, 01:35 PM
RE: SCP Hardware Questions - by Duboun - 09-15-2020, 02:39 PM
RE: SCP Hardware Questions - by admin - 09-15-2020, 10:05 PM
RE: SCP Hardware Questions - by admin - 09-15-2020, 10:55 PM
RE: SCP Hardware Questions - by Duboun - 09-16-2020, 01:32 AM
RE: SCP Hardware Questions - by admin - 09-16-2020, 10:16 AM



Users browsing this thread: 1 Guest(s)