Xinyuan-LilyGO / LilyGO-T-DisplayGD32

LilyGo GD32
37 stars 19 forks source link

Board not recognised Ubuntu #5

Open arcbtc opened 4 years ago

arcbtc commented 4 years ago

INITIAL PROBLEM

Trying to run on Ubuntu 20.04, via platformio/VScode, and the board isn't recognised by the USB port. If I lsusb my system detects something, but it has no name and platformio can not upload to it:

Bus 001 Device 027: ID 28e9:0189  #THIS IS THE BOARD
Bus 001 Device 018: ID 18f8:0f99 [Maxxter] Optical gaming mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

All my other boards are able to be detected I have noticed your documentation is very windows-centric, could you include a tutorial/guidance for running on a Linux machine The blink project builds fine, but it will not upload, and I have done the BOOT>RST>BOOT combination to enter download mode This is too hard, I feel you may lose users

UPDATE

So following some advice here https://bananatronics.org/first-steps-with-the-longan-nano-risc-v-board/ I installed dfu-util

sudo apt install dfu-util

Now I get:

dfu-util: Cannot open DFU device 28e9:0189 #THIS IS THE BOARD
dfu-util: No DFU capable USB device available
*** [upload] Error 74
================================================================================ [FAILED] Took 0.56 
seconds ================================================================================
The terminal process terminated with exit code: 1

So at least platformio is trying to connect to the board

UPDATE

Seems like I need to add a blacklist exception somewhere, going on this example, but where, and what?!

https://github.com/redbear/Duo/blob/master/docs/dfu-util_installation_guide.md#linux

image

UPDATE

So Linux platformio users need to generate the blacklist file, which will add exceptions for GD32V, shown here: https://docs.platformio.org/en/latest/faq.html#platformio-udev-rules I still cant get the sketch to upload though :(

UPDATE IT WORKS!

A system restart did it. I also found I had to BOOT>RST>BOOT immediately before uploading, and I only got it working by cloning this repo, instead of the blink example referenced in get started I would highly recommend adding to your docs:

For Linux platformio users a blacklist file needs to be created https://docs.platformio.org/en/latest/faq.html#platformio-udev-rules