Tiny Core Base > Raspberry Pi

Enable UART serial communications while mainainting wifi

<< < (2/4) > >>

Paul_123:

--- Quote from: Paul_123 on September 28, 2024, 11:48:03 AM ---Just looked at the startserialtty script.  It was never updated for the zero/pi4/cm4/pi5

should be able to just use.

--- Code: ---/sbin/getty -L serial0 115200 vt100 &

--- End code ---

Make sure you have read through this https://www.raspberrypi.com/documentation/computers/configuration.html#configure-uarts

--- End quote ---

you may need to reference ttyS0 instead of serial0.

eSPee:
Hi Paul,

Again thnx for helping. Next weekend I will check if this works ;)

Some other strange think i noticed, with the TMC2209 stepper driver connected to the Pi, the pi won't boot properly.
When i remove the cable from the driver to the pi's UART-Rx it does boot. The Pi is sufficiently powered with 1.5 amps so i don't think it is a powered.
Any ideas how to overcome this issue?

Paul_123:
Is the stepper 3.3 volts?    What powers the stepper?

eSPee:
Hi Paul,

The input voltage of the stepper is between 3 to 5.2 volt, so it can't go wrong ;)

Thank you for showing me how to get the serial console working. With this command:

--- Code: ---/sbin/getty -L ttyS0 115200 vt100 &
--- End code ---
I can login (username & psswd) from serial and type commands. that's great!


So now the USB to TTL adapter (FTD1232) is working, however i can't get the TMC2209 V4.0 communicating with the pi.
The command:

--- Code: ---$ ls -l /dev

--- End code ---
doens't show me any serial0 -> ttyS0 symlinks, is that right?



--- Code: ---dmesg | grep tty
--- End code ---
shows me:

--- Code: ---[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0 snd _bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 smsc95xx.macad dr=B8:27:EB:12:71:21 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  zswap.compressor=lz4 zswap.z                                        pool=z3fold console=tty1 root=/dev/ram0 rootwait quiet nortc loglevel=3 noembed
[    0.001125] printk: console [tty1] enabled
[    4.233192] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2

--- End code ---

Shouldn't the serial0 pop-up here as well?

Maybe my TMC2209 driver UART ports are fried...

Paul_123:
serial0 is an alias created by udev, the kernel only knows the real names.   However, while working on your issue, I noticed the serialx links were not getting created.  This is due to a udev rule issue.  I will fix it in the final 15.0 release.

Uart configuration is really confusing.  You have a Pi ZeroW.  The Primary PL011 UART is assigned to bluetooth, unless you have disabled bluetooth  (Add dtoverlay=disable-bt to your config.txt)

Please read the above linked document at Raspi.  Read the whole thing, noting Primary/secondary uarts, Mini vs PL011 uart, and all of the caviats and configuration options.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version