Coder Social home page Coder Social logo

bouffalolab / arduino-bouffalo Goto Github PK

View Code? Open in Web Editor NEW
20.0 10.0 0.0 314.12 MB

Arduino core for the BouffaloLab chips

License: Apache License 2.0

Python 0.51% C 51.56% C++ 37.10% Shell 0.08% XC 0.05% Roff 9.93% Batchfile 0.01% CMake 0.59% Makefile 0.15% HTML 0.01% Perl 0.01%
arduino bouffalolab bouffalosdk

arduino-bouffalo's People

Contributors

bouffalolabshou avatar czhang-cpu1 avatar edwin-zzp avatar jhwujhwu avatar ji572134068 avatar qqwang-dev avatar strongwong avatar

Stargazers

 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

arduino-bouffalo's Issues

Sipeed M0S Dock?

Hello,

First of all, thank you so much for making efforts to include Arduino environment for BL616.

Now to the real issue...
I'm having some problems with getting Arduino code to run on my M0S Dock. Not sure if I somehow fried the board or it's something with the code or I am missing some important step I was supposed to do before trying to install Arduino on it. I could use some insight...

Code I'm trying to run:

int ledPin = 27; // or 28  
void setup() {
  Serial.begin(2000000);
  pinMode(ledPin, OUTPUT);
}
void loop() {
  Serial.println("Hello world!");
  digitalWrite(ledPin, HIGH);
  delay(1000);
  digitalWrite(ledPin, LOW);
  delay(1000);
}

Based on the log file I tried everything seems ok but I am not getting any reactions on the onboard led or in serial monitor.

Sketch uses 201576 bytes (4%) of program storage space. Maximum is 4190208 bytes.
Global variables use 18464 bytes (9%) of dynamic memory, leaving 178144 bytes for local variables. Maximum is 196608 bytes.
[10:56:00.936] - Serial port is COM5
[10:56:00.936] - ==================================================
[10:56:00.939] - Program Start
[10:56:00.939] - ========= eflash loader cmd arguments =========
[10:56:00.940] - serial port is COM5
[10:56:00.940] - chiptype: bl616
[10:56:00.940] - cpu_reset=False
[10:56:00.954] - com speed: 2000000
[10:56:00.955] - ========= Interface is uart =========
[10:56:00.955] - Bootrom load
[10:56:00.955] - ========= get_boot_info =========
[10:56:00.955] - ========= image get bootinfo =========
[10:56:01.229] - tx rx and power off, press the machine!
[10:56:01.230] - cutoff time is 0.05
[10:56:01.291] - power on tx and rx
[10:56:02.282] - reset cnt: 0, reset hold: 0.05, shake hand delay: 0.1
[10:56:02.282] - clean buf
[10:56:02.284] - send sync
[10:56:02.499] - ack is b'4f4b'
[10:56:02.500] - shake hand success
[10:56:03.009] - data read is b'01001606000001002792800157ad35cf0eb415000f758010'
[10:56:03.009] - ========= ChipID: b40ecf35ad57 =========
[10:56:03.009] - Get bootinfo time cost(ms): 2054.232177734375
[10:56:03.009] - change bdrate: 2000000
[10:56:03.009] - Clock PLL set
[10:56:03.009] - Set clock time cost(ms): 0.0
[10:56:03.133] - Read mac addr
[10:56:03.133] - MACADDR: b40ecf35ad57
[10:56:03.133] - flash set para
[10:56:03.133] - get flash pin cfg from bootinfo: 0x02
[10:56:03.133] - set flash cfg: 1014102
[10:56:03.133] - Set flash config
[10:56:03.134] - Set para time cost(ms): 1.00048828125
[10:56:03.134] - ========= flash read jedec ID =========
[10:56:03.135] - Read flash jedec ID
[10:56:03.135] - readdata:
[10:56:03.135] - b'c8601600'
[10:56:03.135] - Finished
[10:56:03.135] - flash config Not found,use default
[10:56:03.135] - jedec_id:c86016
[10:56:03.135] - capacity_id:22
[10:56:03.135] - capacity:4.0M
[10:56:03.135] - get flash size: 0x00400000
[10:56:03.135] - Program operation
[10:56:03.135] - Dealing Index 0
[10:56:03.135] - ========= programming C:\Users\REDACTED\AppData\Local\Temp\arduino\sketches\1C6A901E8F35DC54ADA3225EA387E0FF\sketch_nov19a.ino.bin to 0x0
[10:56:03.135] - flash para file: C:\Users\REDACTED\AppData\Local\Arduino15\packages\bouffalolab\tools\bflb_flash_tools\1.0.7\chips/bl616/efuse_bootheader/flash_para.bin
[10:56:03.135] - Set flash config
[10:56:03.137] - Set para time cost(ms): 2.00048828125
[10:56:03.137] - ========= flash load =========
[10:56:03.137] - ========= flash erase =========
[10:56:03.137] - Erase flash  from 0x0 to 0x34fcf
[10:56:03.677] - Erase time cost(ms): 540.217529296875
[10:56:03.722] - decompress flash load 121716
[10:56:03.747] - Load 2048/121716 {"progress":1}
[10:56:03.763] - Load 4096/121716 {"progress":3}
[10:56:03.772] - Load 6144/121716 {"progress":5}
[10:56:03.788] - Load 8192/121716 {"progress":6}
[10:56:03.803] - Load 10240/121716 {"progress":8}
[10:56:03.819] - Load 12288/121716 {"progress":10}
[10:56:03.834] - Load 14336/121716 {"progress":11}
[10:56:03.850] - Load 16384/121716 {"progress":13}
[10:56:03.858] - Load 18432/121716 {"progress":15}
[10:56:03.874] - Load 20480/121716 {"progress":16}
[10:56:03.889] - Load 22528/121716 {"progress":18}
[10:56:03.898] - Load 24576/121716 {"progress":20}
[10:56:03.914] - Load 26624/121716 {"progress":21}
[10:56:03.929] - Load 28672/121716 {"progress":23}
[10:56:03.945] - Load 30720/121716 {"progress":25}
[10:56:03.961] - Load 32768/121716 {"progress":26}
[10:56:03.976] - Load 34816/121716 {"progress":28}
[10:56:03.993] - Load 36864/121716 {"progress":30}
[10:56:04.008] - Load 38912/121716 {"progress":31}
[10:56:04.024] - Load 40960/121716 {"progress":33}
[10:56:04.040] - Load 43008/121716 {"progress":35}
[10:56:04.055] - Load 45056/121716 {"progress":37}
[10:56:04.064] - Load 47104/121716 {"progress":38}
[10:56:04.080] - Load 49152/121716 {"progress":40}
[10:56:04.095] - Load 51200/121716 {"progress":42}
[10:56:04.111] - Load 53248/121716 {"progress":43}
[10:56:04.127] - Load 55296/121716 {"progress":45}
[10:56:04.136] - Load 57344/121716 {"progress":47}
[10:56:04.151] - Load 59392/121716 {"progress":48}
[10:56:04.167] - Load 61440/121716 {"progress":50}
[10:56:04.182] - Load 63488/121716 {"progress":52}
[10:56:04.198] - Load 65536/121716 {"progress":53}
[10:56:04.207] - Load 67584/121716 {"progress":55}
[10:56:04.222] - Load 69632/121716 {"progress":57}
[10:56:04.238] - Load 71680/121716 {"progress":58}
[10:56:04.254] - Load 73728/121716 {"progress":60}
[10:56:04.269] - Load 75776/121716 {"progress":62}
[10:56:04.278] - Load 77824/121716 {"progress":63}
[10:56:04.294] - Load 79872/121716 {"progress":65}
[10:56:04.310] - Load 81920/121716 {"progress":67}
[10:56:04.326] - Load 83968/121716 {"progress":68}
[10:56:04.341] - Load 86016/121716 {"progress":70}
[10:56:04.350] - Load 88064/121716 {"progress":72}
[10:56:04.365] - Load 90112/121716 {"progress":74}
[10:56:04.380] - Load 92160/121716 {"progress":75}
[10:56:04.389] - Load 94208/121716 {"progress":77}
[10:56:04.404] - Load 96256/121716 {"progress":79}
[10:56:04.420] - Load 98304/121716 {"progress":80}
[10:56:04.436] - Load 100352/121716 {"progress":82}
[10:56:04.444] - Load 102400/121716 {"progress":84}
[10:56:04.460] - Load 104448/121716 {"progress":85}
[10:56:04.476] - Load 106496/121716 {"progress":87}
[10:56:04.491] - Load 108544/121716 {"progress":89}
[10:56:04.508] - Load 110592/121716 {"progress":90}
[10:56:04.532] - Load 112640/121716 {"progress":92}
[10:56:04.550] - Load 114688/121716 {"progress":94}
[10:56:04.573] - Load 116736/121716 {"progress":95}
[10:56:04.589] - Load 118784/121716 {"progress":97}
[10:56:04.605] - Load 120832/121716 {"progress":99}
[10:56:04.616] - Load 121716/121716 {"progress":100}
[10:56:04.616] - Load 121716/121716 {"progress":100}
[10:56:04.616] - Write check
[10:56:04.618] - Flash load time cost(ms): 938.994140625
[10:56:04.618] - Finished
[10:56:04.618] - Sha caled by host: 5e7f09b66a1266ba515fedef1f3e55307857e2e5956ddb4370a084827ef5ff29
[10:56:04.618] - xip mode Verify
[10:56:04.798] - Read Sha256/217040
[10:56:04.798] - Flash xip readsha time cost(ms): 179.3662109375
[10:56:04.798] - Finished
[10:56:04.798] - Sha caled by dev: 5e7f09b66a1266ba515fedef1f3e55307857e2e5956ddb4370a084827ef5ff29
[10:56:04.799] - Verify success
[10:56:04.800] - Program Finished
[10:56:04.800] - All time cost(ms): 3860.84912109375
[10:56:04.912] - close interface
[10:56:04.912] - [All Success]

Ai-M61-32s dev kit issues

Hi,

Thank you for your support for Bouffalo MCUs in Arduino IDE

I got this dev kit from AiThinker. I get the Done Uploading message when uploading any sketch, but the board isn't doing anything.

I have the latest version of your package. The PC sees the board. But not a simple Blink blinks the LED. This is the serial output:

Sketch uses 201304 bytes (4%) of program storage space. Maximum is 4190208 bytes.
Global variables use 18464 bytes (9%) of dynamic memory, leaving 178144 bytes for local variables. Maximum is 196608 bytes.
[10:06:05.120] - Serial port is COM5
[10:06:05.120] - ==================================================
ConfigParser Error: [Errno 13] Permission denied: 'C:\Program Files (x86)\Arduino\config.ini'
[10:06:05.121] - Program Start
[10:06:05.121] - ========= eflash loader cmd arguments =========
[10:06:05.123] - serial port is COM5
[10:06:05.123] - chiptype: bl616
[10:06:05.123] - cpu_reset=False
[10:06:05.137] - com speed: 2000000
[10:06:05.137] - ========= Interface is uart =========
[10:06:05.137] - Bootrom load
[10:06:05.137] - ========= get_boot_info =========
[10:06:05.137] - ========= image get bootinfo =========
[10:06:05.415] - tx rx and power off, press the machine!
[10:06:05.415] - cutoff time is 0.05
[10:06:05.479] - power on tx and rx
[10:06:06.469] - reset cnt: 0, reset hold: 0.05, shake hand delay: 0.1
[10:06:06.469] - clean buf
[10:06:06.470] - send sync
[10:06:06.699] - ack is b'4f4b'
[10:06:06.700] - shake hand success
[10:06:07.212] - data read is b'010016060000010027128901db002bcf0eb499000f758010'
[10:06:07.212] - ========= ChipID: b40ecf2b00db =========
[10:06:07.212] - Get bootinfo time cost(ms): 2074.920654296875
[10:06:07.212] - change bdrate: 2000000
[10:06:07.212] - Clock PLL set
[10:06:07.214] - Set clock time cost(ms): 2.004638671875
[10:06:07.347] - Read mac addr
[10:06:07.349] - MACADDR: b40ecf2b00db
[10:06:07.350] - flash set para
[10:06:07.350] - get flash pin cfg from bootinfo: 0x24
[10:06:07.350] - set flash cfg: 1014124
[10:06:07.350] - Set flash config
[10:06:07.353] - Set para time cost(ms): 2.970947265625
[10:06:07.353] - ========= flash read jedec ID =========
[10:06:07.356] - Read flash jedec ID
[10:06:07.356] - readdata:
[10:06:07.356] - b'5e401700'
[10:06:07.356] - Finished
[10:06:07.358] - flash config Not found,use default
[10:06:07.358] - jedec_id:5e4017
[10:06:07.358] - capacity_id:23
[10:06:07.358] - capacity:8.0M
[10:06:07.358] - get flash size: 0x00800000
[10:06:07.358] - Program operation
[10:06:07.359] - Warning: No input file to program to flash
[10:06:07.359] - All time cost(ms): 2238.60205078125
[10:06:07.473] - close interface
[10:06:07.473] - [All Success]


int led = 29; //cold LED is on IO29, tried RGB also
void setup() {
  pinMode(led, OUTPUT);
}
void loop() {
  digitalWrite(led, HIGH);
  delay(1000);
  digitalWrite(led, LOW);
  delay(1000);
}

Any help would be appreciated.

Regards

Support for Apple Silicon

It looks like this board support cannot be installed on Apple Silicon.

Fails with error:

Downloading packages
Failed to install platform: 'bouffalolab:bouffalolab:1.0.5'.
Error: 13 INTERNAL: Error downloading tool bouffalolab:[email protected]: no versions available for the current OS, try contacting <...>@bouffalolab.com

Any chance of getting Apple Silicon support for the toolchain and supporting tools?
It almost might be possible to coax the underlying x86 compatibility to run existing binary tools, too ...

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.