sipeed / longduino Goto Github PK
View Code? Open in Web Editor NEWLongduino is an Arduino port for gd32v mcu.
License: Other
Longduino is an Arduino port for gd32v mcu.
License: Other
Are you aware of this fork?
https://github.com/scpcom/Longduino/
They added useful classes and methods.
What about a merge?
Forgive me if this a stupid question but... What is the need/use for this libary? I ask because I see in the GD32V examples repo you see this with the Arduino Blink example:
#include <Arduino.h>
I'm wondering what is the difference in including Arduino.h vs Longduino?
I have just bought great nice-looking Sipeed Longan Nano - RISC-V GD32VF103CBT6 Development Board with Acrylic Case .
I have already installed Arduino IDE 1.8.16 on my Ubuntu MATE 18.04.6 LTS amd64 system; then I have added below URL to Boards Manager
http://bigbits.oss-cn-qingdao.aliyuncs.com/Arduino_for_GD32V/package_longduino_index.json
Then got error red message Tool gd32vflash is not available for your operating system.:
Please add support for very popular Ubuntu and other Linux-based systems.
I was able to get Longduino to work via the Arduino Board Manager:
All the above is available on my github page.
I am only able to test on a Nano Lite board using dfu-util.
Unfortunately, I do not know enough about PlatformIO to get the macOS version working under PlatformIO.
Comments are welcomed :-)
Please Add SPI.h and Wire.h support, Thanks!
Hi,
just in case someone is still working on this (would be great!)
I just read the code to understand why SPI does not work for me and found this:
It seems the prescale parameter is set by calculating it from clock freq / bus freq, then directly use that to call the framework init function.
But the framework init function seems to expect some 3-bit pattern which only allows distinct prescales of multiples of 2.
So, the SPI configuration is destroyed by this
I noticed that there has been some SPI support added to the Arduino framework. I've tried to use it and can't get it to work. I realize that its set up a little differently than the standard Arduino SPI scheme.. Even so I tried to get some SPI transfers working on SPI0 so I can drive the LCD without success. Can someone post a working Arduino framework example of GD32 Arduino SPI please?
Thanks!
I am hoping for at least the Serial class to be implemented?
Is there work happening on this?
I'm trying to add this to my arduino. I'm getting the following error:
Tool gd32vflash is not available for your operating system.
uname -a Linux ComputerName 5.2.11-arch1-1-ARCH #1 SMP PREEMPT Thu Aug 29 08:09:36 UTC 2019 x86_64 GNU/Linux
Arduino shows the following in the bottom error log:
Tool gd32vflash is not available for your operating system. java.lang.RuntimeException: java.lang.Exception: Tool gd32vflash is not available for your operating system. at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:175) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.Exception: Tool gd32vflash is not available for your operating system. at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:85) at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:172) ... 1 more Tool gd32vflash is not available for your operating system.
I'm going to try to install gd32vflash manually and see if that fixes it, but not every user would be willing to do that.
Let me know if you need any more information.
I try to create a new project using either the SDK or Arduino, and get the following error:
PlatformManager: Installing gd32v
Downloading...
Unpacking...
gd32v @ 1.1.0 has been successfully installed!
PackageManager: Installing toolchain-gd32v @ ~9.2.0
Error: Could not find a version that satisfies the requirement '~9.2.0' for your system 'darwin_x86_64'"
My setup:
wiring_digital.c
wiring_analog.c
wiring_pulse.c
wiring_shift.c
WInterrupts.c
Tone.cpp
WMath.cpp
HardwareSerial.cpp
I am trying to add Longduino (GD32V) support via Boards Manager
and get the following error:
Tool openocd is not available for your operating system.
java.lang.RuntimeException: java.lang.Exception: Tool openocd is not available for your operating system.
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:175)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.Exception: Tool openocd is not available for your operating system.
at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:89)
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:172)
... 1 more
My setup:
homebrew
I'm trying out the SPI library from the current master branch (as of commit e7e1d8a) with the Arduino RFID Library for MFRC522, and the firstcompilation error that comes up is that there is no SS
pin is defined.
Apparently each Arduino implementation should declare a SS
define that refers to the default pin to be used for the "Slave Select" signal. See https://www.arduino.cc/en/Reference/SPI.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.