Testing UART0

Started by vinifr, November 26, 2012, 09:00:27 PM

Previous topic - Next topic

vinifr

Is it not possible to use UART0 and sdcard same time?  :o

From what I saw the pin SDC0/UART0_TX is used in uSD, therefore if linux is in uSD the UART0 can not be used? :'(

Thomas

Your problem interests me a lot since I plan to use both. Did you found a solution ?

vinifr

#2
<hno> vinifm, A13 can not use UART and SD at the same time.
<hno> UART0
<vinifm> yes, i saw
<vinifm> :(
<hno> You can boot from SD and then use UART0 if you like.
<vinifm> but SDC0/UART0_TX is used in uSD, right?
<hno> Both TX & RX is shared with SD signals. You can't use both UART0 and SD concurrent, but can switch in software from one function to the other.


Now the question is how to configure [uart_para0] into script.fex:
uart_tx = port:PB19<2><1><default><default>
uart_rx = port:PB20<2><1><default><default>

I have not found this pins in the schematic, are they wired?

khb

If you search for uart0 in the A13-OLINUXINO manual you'll find
PF2/SDC0_CLK/UART0_TX at Pin 110    and
PF4/SDC0_D3/UART0_RX  at Pin 112

vinifr

Really in the schematic these pins are certain(PF2 and PF4), but in file scrit.fex show:

[uart_para0]
uart_used = 0
uart_port = 0
uart_type = 2
uart_tx = port:PB19<2><1><default><default>
uart_rx = port:PB20<2><1><default><default>

I could simply swap PB19,PB20 by PF2,PF4 and set uart_used=1, but this creates a conflict between [uart_para0] and [mmc0_para]:


[mmc0_para]
sdc_used = 1
sdc_clk = port:PF02<2><1><2><default>
sdc_d3 = port:PF04<2><1><2><default>


Must it resolve this conflict and how to "switch in software from one function to the other".