redbear / stm32-arduino Goto Github PK
View Code? Open in Web Editor NEWUse Arduino IDE to develop STM32 MCU (e.g. RedBear Duo) firmware.
Use Arduino IDE to develop STM32 MCU (e.g. RedBear Duo) firmware.
The current version on github cannot be compiled (no problems with the included on the board support package), this is the output error:
In file included
from c:\users\jaime\onedrive\documentos\arduino\libraries\arduinojson\include\arduinojson\jsonbuffer.hpp:14:0,
from c:\users\jaime\onedrive\documentos\arduino\libraries\arduinojson\include\ArduinoJson/Internals/BlockJsonBuffer.hpp:10,
from c:\users\jaime\onedrive\documentos\arduino\libraries\arduinojson\include\ArduinoJson/DynamicJsonBuffer.hpp:10,
from c:\users\jaime\onedrive\documentos\arduino\libraries\arduinojson\include\arduinojson.h:8,
from C:\Users\jaime\OneDrive\Documentos\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:14,
from C:\Users\jaime\Downloads\RedbearDuo\Test\BLE_Central_Multi_Peripherals\BLE_Central_Multi_Peripherals.ino:9:
c:\users\jaime\onedrive\documentos\arduino\libraries\arduinojson\include\arduinojson\Arduino/String.hpp:17:21: fatal error: WString.h: No such file or directory
#include < WString.h >
compilation terminated.
exit status 1
Error compiling.
Fail to upload sketches on some PCs.
When using Particle Build to flash this sample to the Duo, you'll get a "file not found" message for #include "MDNS.h"
.
For Particle Build you'd need to import the MDNS
library and the include statement would then be #include "MDNS/MDNS.h"
But then you'll get another error message "'class MDNS' has no member called 'setService'
".
Changing this to addService(...)
the sketch builds.
in spark_wiring_btstack.h should be void disconnect(uint16_t conn_handle); (double 'n')
not void disconect(uint16_t conn_handle);
avrdude: error: programmer did not respond to command: write block
Duo firmware 0.2.1 beta 2
Arduino IDE 1.6.7
Duo Board Package 0.2.1
Mac OSX 10.11.2
Assume the Duo is in your office and you want to update the firmware remotely at home.
Steps:
In case of the Duo has been write protected, please unlock it before uploading a sketch.
We need a compiled .bin file with Arduino IDE export function (currently it is .hex).
LINUX 64bits install gcc: sudo apt-get install lsb-core
I'm wondering if it is possible to use RedBear Duo as BLE controller as well as iBeacon at the same time ? What I want to achieve is to listen to the broadcast signal as soon as the device is within ibeacon range.
Further connect to redbear Duo only if user is willing to perform some actions with Duo.
Please guide.
When I was playing around with Duo and this example, I came across a nasty bug.
I let the root page show on the Nexus 5 and that worked just fine, then I've used LG G3 instead of Nexus 5 and the Duo's begun blinking red. According to Photon docs the LED indicated 'Hard fault'.
I've cought the communication with Wireshark and here are the particular http requests. Possibly change the host ip address in them accordingly. The Duo runs 0.2.2 fw.
The working request: nc -i 1 10.1.2.205 80 < Nexus_5
The non-working request: nc -i 1 10.1.2.205 80 < LG_G3
Hi,
I want to add ARDUINO_RedBear_Duo define flag when compile on Arduno IDE.
STM32-Arduino/arduino/platform.txt
compiler.device.define=-DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=88 -DPLATFORM_NAME=duo -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD058 -DUSBD_PID_CDC=0xC058
to
compiler.device.define=-DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=88 -DPLATFORM_NAME=duo -DARDUINO_RedBear_Duo -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD058 -DUSBD_PID_CDC=0xC058
When before pre-compile, ARDUINO_RedBear_Duo defined is added, but that flag is removed when compile.
I want to use this ARDUINO_RedBear_Duo flag for my MQTT library, please add this define to platform.txt if okay.
thank you.
Hirotaka
Board package v0.2.3.
Unable to upload sketch on Linux system.
After upgrading tools to the 0.3.x firmware release and later, attempts to program a project containing a C file results in a hard fault blinking red LED error condition as described by Particle Docs.
After review of changes since the 0.2.x platform releases, I noticed the platform.txt compile settings for c files were removed in 1452193.
Reverting the configuration to the values used before this commit and adding -mthumb as was done with the C++ flags as shown in this commit resolves this issue.
The issue can be demonstrated and fix can be tested with a small change to pull in a C file within the Blink.ino example project. See this branch and example project Blink_C for an example. Building/downloading this project with the platform.txt file on the master tree results in a hard fault condition. Modifying the platform.txt file at C:\Users\Username\AppData\Local\Arduino15\packages\RedBear\hardware\STM32F2\0.3.1\platform.txt as shown in this commit resolves the issue. Tested with Arduino 1.8.5 on Windows.
Arduino IDE has a burn bootloader menu item, is it possible to click it then then call dfu-util to burn the duo system firmware (i.e. sys-part1 and 2)?
do you have release date?
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.