Open HabonRoof opened 4 years ago
OK, I resolve the issue by myself.
The problem is in the platform/ini file.
This board need to choose the board "sipeed-longan-nano-lite" instead of "sipeed-longan-nano".
And need to change the platform as the development platform.
So the platform.ini file need to modify like below:
[env:develpoment] platform = https://github.com/sipeed/platform-gd32v.git //Here change the platform from URL framework = gd32vf103-sdk board = sipeed-longan-nano-lite //And here should be download the nano-lite board settings monitor_speed = 115200 upload_protocol = dfu
We haven't sold this board yet, we tested it with C8T6 instead of CBT6, I'm not sure you are using our board!
Hi,thanks for your reply. I'm sure here I have your prototype from china manufacture, the chip is C8T6 indeed. When I use the platform = sipeed-longan-nano, it can upload,the terminal will say [SUCCESS] , but LED and GPIO will not work,I change the platform = https://github.com/sipeed/platform-gd32v.git, and LED blink. Maybe is that another issue?
If you are using C8T6, selecting sipeed-longan-nano is normal, then you are using CBT6 instead of C8T6, because the startup file used by sipeed-longan-nano is GD32VF103CBT6
Hi everybody, I recently purchased some LILYGO® TTGO T-Display-GD32 boards and now I'm trying to make them work. I also used the "Arduino Blink" example mentioned above, and my OS is Windows 7 64 bit and I'm using VS Code with PlatformIO (Core 5.01 - Home 3.3.0). After some unsuccesful trials I came across this topic, and tried to apply the configuration suggested by HabonRoof, but the compilation failed saying that the include file "Arduino.h" can't be found. So I changed back the configuration setting the framework = arduino and the compilation went fine.
Then I tried to upload the code to the device with PIO "one click" feature, but the dfu-util gave me the following error:
Cannot open DFU device 28e9:0189 No DFU capable USB device available
I specify that I have correctly installed the GD32 DFU driver, and when I put the board in programming mode the device appears in the device management window as "GD32 Device in DFU mode".
I also tried to use the GD32 MCU DFU Tool, which "sees" correctly the board and reports:
Flash 128 KB VID 0x28E9 PID 0x0189 Part No. GD32VF103CBT6
After succesfully downloading to the device the file "firmware.bin" created by the compilation, the LED blinking confirms that the program has been injected into the device and is working OK. So the only problem now is to get the code upload working in PIO/VScode.
All this occurs with the following configuration set in platformio.ini:
[env:sipeed-longan-nano] platform = gd32v framework = arduino board = sipeed-longan-nano monitor_speed = 115200 upload_protocol = dfu
Changing env and board to sipeed-longan-nano-lite doesn't help.
Hi, @baldax, I was facing your problem, at July, too.
And I found that PIO can choose the firmware version of GD32V platform that you want to use.
Using platform=gd32v@1.1.0
or you can see the PIO guide here
And the GD32V platform stable release is here
Hope this can help you,btw, after I tried and tired of IDE, I use the original RISCV GNU tool chain to build the whole project and upload the executable file as you did, using dfu software.
Hi @HabonRoof, many thanks for noticing me; I'll try to adopt your suggestions.
Please help to find drivers for this LILYGO® TTGO T-Display-GD32 board, how to install it on Windows 10 ? I plug it in (USB) and nothing appears. No com port appears. No reaction except power supply... How to work with it, load sketches etc? Where to DL correct drivers and tools? Is there any tutorials there? Im disappointed, this module looks useless now... unlike the similar TTGO display with working UART interface...
You have to install a driver which emulates a COM port through USB; you can find a suitable one here: Silicon Labs - USB to UART drivers https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers Once installed the driver, connect the TTGO to the PC and run devmgmt.msc (hold down the windows key and then press R; in the window that pops up type devmgmt.msc and click OK); a window appears with the list of windows devices, in it you should see a group named COM/Serial Ports or the like; expand that group and you should see a COM# corresponding to the newly installed driver; you have to set the COM port in Arduino IDE or whatever IDE you want to that port. This for allowing you to program the TTGO; about how to program it, there are a lot of tutorials on the internet (I found this one for example: Youtube tutorial https://www.youtube.com/watch?v=UE1mtlsxfKM), I suggest to start with the simpler ones. Hope this helps and have fun with IOT development! Maurizio
Il giorno lun 21 giu 2021 alle ore 21:18 Ivan @.***> ha scritto:
Please help to find drivers for this LILYGO® TTGO T-Display-GD32 board, how to install it on Windows 10 ? I plug it in (USB) and nothing appears. No com port appears. No reaction except power supply... How to work with it, load sketches etc? Where to DL correct drivers and tools? Is there any tutorials there? Im disappointed, this module looks useless now... unlike the similar TTGO display with working UART interface...
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGO-T-DisplayGD32/issues/2#issuecomment-865283000, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA46WTVRUPN3X4QKDTTPMEDTT6GBPANCNFSM4KBR5PCQ .
Thanks, but its absolutely about another TTGO module. I have several ESP32 TTGO T-displays on CP2104 (in the tutorial you mentioned), they are working fine through UART/USB, and they can easily be detected by windows on plug-in. My request was about ANOTHER lilygo module, based on GD32 following answer received from their support team: "GD32 and ESP32 have different working modes,GD32 no Port generation, plz check GitHub,Readme,have operating step: https://github.com/Xinyuan-LilyGO/LilyGO-T-DisplayGD32 http://longan.sipeed.com/en/get_started/pio.html "
I discovered that there is another module, it cant be detected as com-port device, but somehow ppl work with it by installing GD32VF103_usbfs_driver I installed Visual studio, tried to compile blink sketch, and error about missing such driver appeared. So, still don`t know where to get it, and how to install. And somebody talked about necessity to connect some pin to 3.3 v just to set this module to programmable mode (maybe in this case it will appear as a device in VS or in Windows? dont know... I already hate these modules because of non-standard sketch loading procedure... https://aliexpress.ru/item/4000598356310.html
Sorry for questions (looks stupid, but i never worked with GD-32 or STM) - but I suspect that there is a hardware wiring trick there. For example, standard ESP32 can be flashed several ways: 1) Standard USB-com port 2) TX/RX pins by TTL converter (connected to USB port) 3) by air, using wifi. Maybe, if this GD32 module doesn`t support direct connection USB-USB, there are some special pins (like TX/RX)? if so, than where to get wiring scheme? Or maybe special programmer needed (like TTL converter)? I found several notes about GD-link programmer (http://gd32mcu.com/en/download/0?kw=GD32VF1 ). Somehow I installed driver, so now need to know how to connect pins to programmer or to USB.... Im really noob in GD32...
Sorry Ivan, I don't read carefully your question; yes, I remember I faced the GD32V programming some months ago, and I was able to upload a .hex file produced with VSCode/PlatformIO to that device; I used a tool from GigaDevice (downloads link http://www.gd32mcu.com/en/download/7 and this https://www.gigadevice.com/products/microcontrollers/gd32/ is the homepage of GigaDevice website) called "GD32 MCU Dfu tool.exe" and it seems to me that before run it I had to install the DFU driver (GD32DfuDrivers.exe). Now I'm unable to reproduce the whole process, but at the time I did it. For certain uploading the code to the device was performed outside from VSCode; I looked for a way to load the code from inside VSCode but I didn't find a solution. Kind regards
Il giorno mar 22 giu 2021 alle ore 22:37 Ivan @.***> ha scritto:
Sorry for questions (looks stupid, but i never worked with GD-32 or STM) - but I suspect that there is a hardware wiring trick there. For example, standard ESP32 can be flashed several ways: 1) Standard USB-com port 2) TX/RX pins by TTL converter (connected to USB port) 3) by air, using wifi. Maybe, if this GD32 module doesn`t support direct connection USB-USB, there are some special pins (like TX/RX)? if so, than where to get wiring scheme? Or maybe special programmer needed (like TTL converter)? I found several notes about GD-link programmer ( http://gd32mcu.com/en/download/0?kw=GD32VF1 ). Somehow I installed driver, so now need to know how to connect pins to programmer or to USB.... Im really noob in GD32...
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGO-T-DisplayGD32/issues/2#issuecomment-866316185, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA46WTUMMI4AXCGMIY3YP7DTUDX7JANCNFSM4KBR5PCQ .
OS: Debian10 buster Env: Visual studio Code w/ PlatformIO(Home v3.0.1 Core v4.1.0)
I follow the tutorial in this link:http://longan.sipeed.com/en/get_started/pio.html and I download example code "Arduino Blink", Build it, use dfu-mode to upload the code, and it success. I check out the schematic, I think Red LED on T-Display should blink but it doesn't.
Other then that, I download your code in this repository, as the same, I can upload, but it still doesn't work.
I connect T-Display via USB-C port, Is there any setting need to be done?
Here is my platformio.ini file:
[env:sipeed-longan-nano] platform = gd32v framework = arduino board = sipeed-longan-nano monitor_speed = 115200 upload_protocol = dfu