SAMA5d3 Serial Error

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

randolfrobson
Posts: 3
Joined: Mon Jun 10, 2019 7:44 am

SAMA5d3 Serial Error

Fri Jun 14, 2019 7:37 am

Hi,
i am working on sama5d3-xplained board.
the problem i am facing now is that my uart0 is not working .
The same uart was working on previous kernel(kernel version - 3.15)
the rest of the peripherals are all working just fine in the new kernel also.
i recently updated the kernel version to 4.14. and then i stumble upon this issue.
the uart i am using is uart 0.
the pins are PD16,PD17,PD18.

i have updated only the kernel image,
the rootfs,dtb,bootstatrap,uboot all remain the same.

please feel free to ask for more details.
i didn't want to vaguely put every information i find in the kernel.
wanted to keep this query as simple as possible.
blue_z
Location: USA
Posts: 1943
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAMA5d3 Serial Error

Mon Jun 17, 2019 10:25 pm

randolfrobson wrote: the problem i am facing now is that my uart0 is not working .
"Not working" is your conclusion, and does not describe the symptoms.

randolfrobson wrote: i have updated only the kernel image,
the rootfs,dtb,bootstatrap,uboot all remain the same.
You cannot mix'n'match binaries.
The kernel image and dtb need to be built from the same source.

Regards
randolfrobson
Posts: 3
Joined: Mon Jun 10, 2019 7:44 am

Re: SAMA5d3 Serial Error

Tue Jun 18, 2019 11:59 am

Hi,
Sorry for the inconvenience.

i am using two uarts in my application.
these two uarts are communicating with another device via rs485 .
the uart's are uart0 and uart1

uart-0 Pins are PD16,PD17,PD18.
uart-1 Pins are PB27,PB28,PB29.

uart-1 works fine with the new kernel
but uart-0 is not working.
i have connected it to the rs485 device and its not communicating.

also sorry for not specifically mentioning that dtb and kernel are build from
same source files.
then edited the dtb to match the same as that previous dtb file.
blue_z
Location: USA
Posts: 1943
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAMA5d3 Serial Error

Thu Jun 20, 2019 1:57 am

randolfrobson wrote: the uart's are uart0 and uart1

uart-0 Pins are PD16,PD17,PD18.
uart-1 Pins are PB27,PB28,PB29.
You better check the SoC datasheet.
Those are not the pins assigned to UART0 nor UART1.

randolfrobson wrote: but uart-0 is not working.
i have connected it to the rs485 device and its not communicating.
"Not communicating" is not an improvement over "not working".

Regards
randolfrobson
Posts: 3
Joined: Mon Jun 10, 2019 7:44 am

Re: SAMA5d3 Serial Error

Fri Jun 21, 2019 1:47 pm

Hi,
Sorry for mentioning it as uart,
its USART0.

Below i am giving the details of the dts file i am using.
We are using USART-0 for this application.

below i am listing the dts file data for usart0 and serial@f001c000.

usart0 {

usart0-0 {
atmel,pins = <0x3 0x11 0x1 0x0 0x3 0x12 0x1 0x1>;
phandle = <0x17>;
};

usart0_rts_cts-0 {
atmel,pins = <0x3 0xf 0x1 0x0 0x3 0x10 0x1 0x0>;
phandle = <0xb9>;
};
};


serial@f001c000 {

compatible = "atmel,at91sam9260-usart";
reg = <0xf001c000 0x100>;
interrupts = <0xc 0x4 0x5>;
dmas = <0x2 0x2 0x3 0x2 0x2 0x204>;
dma-names = "tx", "rx";
pinctrl-names = "default";
pinctrl-0 = <0x17 0xb9>;
clocks = <0x18>;
clock-names = "usart";
status = "okay";
phandle = <0x89>;
};
nferre
Site Admin
Posts: 204
Joined: Wed Feb 14, 2007 11:17 am

Re: SAMA5d3 Serial Error

Tue Jun 25, 2019 3:08 pm

Hi,

I would advice to post the kernel boot log at least: it usually has crucial information.

Regards,
Nicolas

Return to “LINUX”

Who is online

Users browsing this forum: Google [Bot] and 1 guest