Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lilygo ttgo t-01-esp8266 d1 mini compatible does not work #17

Open
hanscees opened this issue Jan 6, 2023 · 1 comment
Open

lilygo ttgo t-01-esp8266 d1 mini compatible does not work #17

hanscees opened this issue Jan 6, 2023 · 1 comment

Comments

@hanscees
Copy link

hanscees commented Jan 6, 2023

Hi,
I am trying to work with lilygo ttgo t-01-esp8266 d1
see https://www.tinytronics.nl/shop/en/development-boards/microcontroller-boards/with-wi-fi/lilygo-ttgo-t-oi-esp8266-d1-mini-compatible?sort=p.price&order=ASC

I have made the ch343.ko driver by doing sudo make and sudo load
lsmod shows the driver fine

But when I plug in the board to usb nothing happens. Do I have the right driver? I am beginning to think not:(

the driver at http://www.wch-ic.com/downloads/CH341SER_LINUX_ZIP.html does not compile at all with several errors

'make -C /lib/modules/5.15.0-56-generic/build M=/home/hanscees/Downloads/ch341
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-56-generic'
CC [M] /home/hanscees/Downloads/ch341/ch34x.o
/home/hanscees/Downloads/ch341/ch34x.c: In function ‘ch34x_close’:
/home/hanscees/Downloads/ch341/ch34x.c:591:9: error: unknown type name ‘wait_queue_t’; did you mean ‘wait_event’?
591 | wait_queue_t wait;
'

I am using
5.15.0-56-generic
Description: Ubuntu 22.04.1 LTS

@shuyuan-liu
Copy link

The link you gave says the board uses a CH340K (the 10-pin chip near the USB connector), not a CH343. You shouldn't need to install anything for the CH340 as its driver ch341 (not the one from WCH) has been part of Linux since forever and works just fine.

I'd suggest that you first remove any ch343 code you've installed and reboot, check that all cables and connectors are OK just to be safe, and plug the board back in.

Do an lsusb in the terminal and see if there's the line 1a86:7523 QinHeng Electronics CH340 serial converter: If not, the chip isn't registering on USB at all and it's a hardware problem. If the line is there, check whether there's a /dev/ttyUSB0 (or some other number if you have another UART adapter plugged in): If yes then everything's fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants