We use cookies to provide our visitors with an optimal site experience. View our privacy notice and cookie notice to learn more about how we use cookies and how to manage your settings. By proceeding on our website you consent to the use of cookies.
I have followed the instructions to run the ubuntu on stm32mpu-dk2 board , and it works fine.
I want to enable the uart in it so that I can interface external serial device to it.
I followed this instructions :
and after re-building(tools/rebuild.sh) the device tree and flashing
( Copy Kernel Device Tree Binaries
on the sd card , I can see ttySTM1 up.But i am not able to do cat on /dev/ttySTM1( not getting any data)
I suspect the below logs which is somehow preventing the uart configuration.
[ 1.955250] stm32-usart 4000f000.serial: IRQ index 1 not found
[ 1.956534] stm32-usart 40010000.serial: IRQ index 1 not found
[ 1.980712] stm32mp157-pinctrl soc:pin-controller@50002000: pin PI10 already requested by 4000f000.serial; cannot claim for 5a001000.display-controller
[ 1.992969] stm32mp157-pinctrl soc:pin-controller@50002000: pin-138 (5a001000.display-controller) status -22
[ 2.002963] stm32mp157-pinctrl soc:pin-controller@50002000: could not request pin 138 (PI10) from group PI10 on device soc:pin-controller@50002000
[ 2.016140] stm32-display 5a001000.display-controller: Error applying setting, reverse things back
[ 2.065532] stm32_rtc 5c004000.rtc: IRQ index 1 not found
[ 28.071953] edt_ft5x06 0-0038: touchscreen probe failed
This seems to be some issue in the display driver.I have removed the LCD panel already and operating operating on minicom.
Can you please tell whats wrong here and how to avoid this conflict?
fyi : cat /dev/ttyS1 works fine on raspberry PI(on Raspberry PI ttyS1 is formed)
You have pins tied to both the LCD and Serial, this will make neither work… Remove the pinmux defines from the lcd section and make sure they are only in the serial node…
while on Raspberry PI
I get non zero rows and columns
speed 9600 baud; rows 24; columns 80; line = 0; intr = AC; quit = ^ ; erase = ^?; kill => (ignore the special charcaters, I google translated the image due to lack of internet)
Also I noticed on RPI it shows tty device where as on stm32mpu it shows a dialout device
I modified and used the attached device tree configuration(very dirty ) , I have some success in reading the data , but it came only once , then it never. I am not sure if it is a fluke.
please have a look.(cat /dev/ttySTMx ) x = 1 , is able to read data continuously
below are my logs :
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 113536
[ 0.220867] pinctrl core: initialized pinctrl subsystem
[ 1.695559] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOA bank added
[ 1.696024] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOB bank added
[ 1.696396] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOC bank added
[ 1.696760] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOD bank added
[ 1.697114] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOE bank added
[ 1.697458] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOF bank added
[ 1.697793] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOG bank added
[ 1.698149] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOH bank added
[ 1.698518] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOI bank added
[ 1.698804] stm32mp157-pinctrl soc:pin-controller@50002000: Pinctrl STM32 initialized
[ 1.699748] stm32mp157-pinctrl soc:pin-controller-z@54004000: GPIOZ bank added
[ 1.699779] stm32mp157-pinctrl soc:pin-controller-z@54004000: Pinctrl STM32 initialized
[ 3.673539] asoc-audio-graph-card sound: cs42l51-hifi <-> 4400b004.audio-controller mapping ok
[ 3.681631] asoc-audio-graph-card sound: cs42l51-hifi <-> 4400b024.audio-controller mapping ok
[ 3.689624] asoc-audio-graph-card sound: i2s-hifi <-> 4000b000.audio-controller mapping ok
root@stm32mp1:~#
root@stm32mp1:~# dmesg | grep serial
[ 1.703053] 4000e000.serial: ttySTM3 at MMIO 0x4000e000 (irq = 53, base_baud = 4000000) is a stm32-usart
[ 1.703373] serial serial0: tty port ttySTM3 registered
[ 1.705057] 4000f000.serial: ttySTM1 at MMIO 0x4000f000 (irq = 54, base_baud = 4000000) is a stm32-usart
[ 1.707133] stm32-usart 40010000.serial: interrupt mode for rx (no dma)
[ 1.707158] stm32-usart 40010000.serial: interrupt mode for tx (no dma)
[ 1.707194] 40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 55, base_baud = 4000000) is a stm32-usart
[ 7.427900] systemd[1]: Created slice system-serial\x2dgetty.slice.