Code Monkey home page Code Monkey logo

longduino's People

Contributors

bitsk avatar kenjutsugh avatar ldream avatar lynnl4 avatar ottojo avatar reinforce-ii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

longduino's Issues

Cannot open DFU device 28e9:0189

你好,

我是使用的 Longan Nano,芯片是 GD32VF103RB, FLASH 128KB,RAM 32KB,但是使用 Arduino IDE 的时候显示 Flash 是 64KB。

image

请问 Longduino 现在默认芯片是 GD32VF103R8 吗?所以 DFU 模式下载也会报错,不过我 board 选择 GD32VF103 EVAL 也会报错。但是我使用 GigaDevice DFU Tool 和 ISP Tool 都能正常下载。

Usage of this library...

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?

Ubuntu and other Linux-based are not supported

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.:

gd32v-tools-not-found

Please add support for very popular Ubuntu and other Linux-based systems.

macOS Support

I was able to get Longduino to work via the Arduino Board Manager:

  1. I made a package index JSON file
  2. I reference the sifive May 2019 Tools Release gcc Toolchain and OpenOCD for macOS (Other versions also work, but the 8.2.0 version generates the correct code in relation with delay(). With the other versions, delay() is extremely slow)
  3. I include an macOS version of dfu-util and associated tools
  4. I modified platform.txt to reference the macOS specific tools (gcc and dfu-util)
  5. I also added support for the Nano Lite board which I have.

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 :-)

SPI prescaling wrong?

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

SPI support?

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!

Tool gd32vflash is not available for your operating system.

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.

[macOS][PlatformIO]Could not find a version that satisfies the requirement '~9.2.0' for your system 'darwin_x86_64'"

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:

  • macOS 10.13.6 (17G8037)
  • PlatformIO 4.1.0rc9
  • Atom 1.41.0
  • Platform GigaDevice GD32V : gd32v @ 1.1.0 framework-gd32vf103-sdk @ 1.0.0

TODO list

Arduino core

wiring_digital.c

wiring_analog.c

wiring_pulse.c

wiring_shift.c

WInterrupts.c

Tone.cpp

  • tone
  • noTone

WMath.cpp

HardwareSerial.cpp

  • Class HardwareSerial

Libraries

  • Wire
  • SPI @ReinForce-II
  • LCD (Graphics library, need SPI)
  • SD (need SPI)
  • Ticker
  • I2S
  • ...

[macOS] Tool openocd is not available for your operating system.

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:

  • macOS 10.13.6 (17G8037)
  • Arduino 1.8.10
  • Open On-Chip Debugger 0.10.0+dev-00399-g09076d10 (2018-04-12-15:51) installed via homebrew

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.