pine64 / arduinocore-bouffalo Goto Github PK
View Code? Open in Web Editor NEWBL602 Arduino Core for Arduino IDE
License: GNU Lesser General Public License v2.1
BL602 Arduino Core for Arduino IDE
License: GNU Lesser General Public License v2.1
Does this work with the Bl702 mcu?
I added https://nutcracker.pine64.org/arduino/package_bouffalo_index.json (Also tried index.json directly from github). But, the Arduino IDE throws me :
Some indexes could not be updated. Get "https://nutcracker.pine64.org/arduino/package_bouffalo_index.json": remote error: tls: internal error: https://nutcracker.pine64.org/arduino/package_bouffalo_index.json
In #4 I described the problems I had with uploading programs to the PineCone. I needed to add #!/usr/bin/python3
and convert the file encoding to be able to execute the python script bl602-flasher.py. But now I get the following error message when trying to upload code form the Arduino IDE:
Traceback (most recent call last):
File "/home/user/.arduino15/packages/bouffalo/tools/flasher/0.0.1/bl602-flasher.py", line 234, in <module>
main()
File "/home/user/.arduino15/packages/bouffalo/tools/flasher/0.0.1/bl602-flasher.py", line 216, in main
send_sync(ser)
File "/home/user/.arduino15/packages/bouffalo/tools/flasher/0.0.1/bl602-flasher.py", line 113, in send_sync
expect_ok(ser)
File "/home/user/.arduino15/packages/bouffalo/tools/flasher/0.0.1/bl602-flasher.py", line 56, in expect_ok
raise ValueError(binascii.hexlify(err))
ValueError: b'ffff'
Failed uploading: uploading error: exit status 1
Does anyone know how to modify the script to fix this error?
ENV: ubuntu 20.04, python3.8
I have a problem uploading my code. I already changed the permissions of the executable files, but now I'm getting the following errors:
/home/username/.arduino15/packages/bouffalo/tools/flasher/0.0.1/bl602-flasher.py: 1: from: not found
/home/username/.arduino15/packages/bouffalo/tools/flasher/0.0.1/bl602-flasher.py: 2: from: not found
import-im6.q16: unable to grab mouse `': File or directory not found @ error/xwindow.c/XSelectWindow/9184.
import-im6.q16: unable to grab mouse `': File or directory not found @ error/xwindow.c/XSelectWindow/9184.
import-im6.q16: unable to grab mouse `': File or directory not found @ error/xwindow.c/XSelectWindow/9184.
import-im6.q16: unable to grab mouse `': File or directory not found @ error/xwindow.c/XSelectWindow/9184.
: not foundn/.arduino15/packages/bouffalo/tools/flasher/0.0.1/bl602-flasher.py: 9:
import-im6.q16: unable to grab mouse `': File or directory not found @ error/xwindow.c/XSelectWindow/9184.
/home/username/.arduino15/packages/bouffalo/tools/flasher/0.0.1/bl602-flasher.py: 10: Syntax error: "(" unexpected
Compiling does work but when I try to upload the code the cursor changes to a crosshair, probably I have to select a window or something. Is there a way to fix this?
The binaries of the toolchain for Linux (riscv64-unknown-elf-linux-0.0.1.zip
) have bad permissions and require some modifications from the user. They don't have the executable bit.
These binaries are located in:
riscv64-unknown-elf/0.0.1/bin/
riscv64-unknown-elf/0.0.1/riscv64-unknown-elf/bin/
riscv64-unknown-elf/0.0.1/libexec/gcc/riscv64-unknown-elf/8.3.0/
Thanks to @9names for pointing me these paths.
As the purpose is, I think, to simplify things, it might be better to change the permissions in the downloaded archive.
I don't know if MacOS is also impacted, and I suppose that Windows isn't.
Compiling, linux debian, Arduino IDE 2.1.1
...
..
~/.arduino15/packages/bouffalo/tools/riscv64-unknown-elf/0.0.1/bin/riscv64-unknown-elf-g++: permission denied
solved
chmod +x ~/.arduino15/packages/bouffalo/tools/riscv64-unknown-elf/0.0.1/bin/*
https://github.com/pine64/ArduinoCore-bouffalo/blob/main/platform.txt#L21
duplicated:
-DCONF_USER_ENABLE_PSRAM
-DCFG_BLE_ENABLE
-DARCH_RISCV
-DFEATURE_WIFI_DISABLE=1
-DconfigUSE_TICKLESS_IDLE=0
Any file I try to compile fails with the error:
clang: error: unsupported option '--traditional-format'
exit status 1
I'm using version 0.0.1 of the Arduino core on a MacBook Pro, with Arduino IDE 1.8.13.
Can anyone suggest a solution?
Trying to upload the Blink.ino to the Pine64 BL602 EVB ver1.2 on my M1 Mac I get the following messages:
fork/exec /Users/stefan/Library/Arduino15/packages/bouffalo/tools/riscv64-unknown-elf/0.0.1/bin/riscv64-unknown-elf-g++: permission denied
Compilation error: fork/exec /Users/stefan/Library/Arduino15/packages/bouffalo/tools/riscv64-unknown-elf/0.0.1/bin/riscv64-unknown-elf-g++: permission denied
What to do??
Greetings Stefan
Compiling, linux debian, Arduino IDE 2.1.1
...
Detecting libraries used...
riscv64-unknown-elf-g++: error trying to exec 'cc1plus': execvp: No such file or directory
solved
chmod +x ~/.arduino15/packages/bouffalo/tools/riscv64-unknown-elf/0.0.1/libexec/gcc/riscv64-unknown-elf/8.3.0/cc1plus
When building in the arduino IDE on linux after manually fixing up #1 on my local machine.
Assembler messages:
Fatal error: invalid -march= option: `rv32imfc'
Compilation error: Error: 2 UNKNOWN: exit status 1
Compiling, linux debian, Arduino IDE 2.1.1
....
Assembler messages:
Fatal error: invalid -march= option: `rv32imfc'
exit status 1
Error compiling for board PINE64 PineCone.
solved
chmod +x ~/.arduino15/packages/bouffalo/tools/riscv64-unknown-elf/0.0.1/riscv64-unknown-elf/bin/*
I am curious if this project has been abandoned or if there is interest in expanding to include additional cores (bl808)?
I added https://nutcracker.pine64.org/arduino/package_bouffalo_index.json and did the install in board manager but the only board found is PINE64 Pincone could not find Ai-WB2-32S or anything with bouffalo or anything other than PINE64 Pincone
Example for WiFi and BLE?
~/.arduino15/packages/bouffalo/tools/flasher/0.0.1/bl602-flasher.py /dev/ttyUSB0 /tmp/arduino_build_973495/teste1.ino.bin
java.io.IOException: Cannot run program "/home/alberio/.arduino15/packages/bouffalo/tools/flasher/0.0.1/bl602-flasher.py": error=13, Permission denied
solved
in ~/.arduino15/packages/bouffalo/hardware/riscv/0.0.1/platform.txt
tools.flasher.upload.pattern="{runtime.tools.python3.path}/python3" -I "{path}/{cmd}" "{serial.port}" "{build.path}/{build.project_name}.bin"
added "{runtime.tools.python3.path}/python3" -I
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.