Community-BL-IOT / pio-bl602-boufallo-arduino-test

A test for using PlatformIO with the new extension for building https://github.com/pine64/ArduinoCore-bouffalo
18 stars 0 forks source link

PlatformIO Linux (Ubuntu) upload issue #3

Open vin1953 opened 1 year ago

vin1953 commented 1 year ago

I read the closed post regarding uploading and believe this one is different.

I have tried the project on both Windows and Linux and Windows was fine. On Linux I ran into a problem where the DT-BL10 was not recognized at the start of downloading. I am not a Platform IO wiz, but I muddled through command line testing of the python flash loader module. I found that the first part at 500000 baud, was fine, but at 2000000 baud, the connection was not happy. I don't recall the exact error. After changing both to the same speed of 500000 baud, both the helper and the main flash file downloaded.I tried with both set to 2000000 baud and that did not work.

Based on looking at the python code, changing the upload_speed wouldn't do much.

I'm off to mess with the direct SDK, since it looks like the Arduino side is not getting much action.

maxgerhardt commented 1 year ago

Thanks for the info! We'll try and see if changing the default 2M baudrate can be made configurable and lowered.

The Arduino core is indeed not well developed, it's basically made for a reverse-engineering challenge on the SDK's WiFi stack to try and reimplement it in an open-source way (https://github.com/Community-BL-IOT/ArduinoCore-bouffalo, https://www.pine64.org/2020/10/28/nutcracker-challenge-blob-free-wifi-ble/). That has not happened yet to my knowledge. So the SDK is currently the best way to make full use of all features. However, in the PlatformIO integration, we're not using the latest SDK yet. Quite some time has passed since some effort was last put into this integration -- on the flip side, the usage it has gotten (when it was rather up-to-date) was also very, very small, so that was not too motivating.

vin1953 commented 1 year ago

Thanks for the response. I am only "playing with" the BL602 because I have one! It's not a go to target like the ESP32 devices. If nothing ever moves forward due to lack of interest, I can appreciate that. Arduino framework is OK for simple projects. I find it more of a crutch, I can be lazy and get something running quickly.