GithubHelp home page GithubHelp logo

redbear / stm32-arduino Goto Github PK

View Code? Open in Web Editor NEW
55.0 55.0 41.0 52.67 MB

Use Arduino IDE to develop STM32 MCU (e.g. RedBear Duo) firmware.

C 74.89% C++ 22.98% Objective-C 1.99% Shell 0.09% Batchfile 0.01% CMake 0.03%

stm32-arduino's People

Contributors

cheong2k avatar peterfox avatar tedder avatar xuguohui 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

Watchers

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

stm32-arduino's Issues

iBeacon Demo - what UUID?

  1. As written, what UUID is the iBeacon demo using? I'd like to see if iOS can detect it
  2. How can we change the UUID / major / minor values that the device is broadcasting?

BLE_Central_Multi_Peripherals cannot be compiled

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.

MDNS in Particle Build does not feature `setService()`

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.

typo in method name

in spark_wiring_btstack.h should be void disconnect(uint16_t conn_handle); (double 'n')
not void disconect(uint16_t conn_handle);

Feature: Upload sketch over Cloud

Assume the Duo is in your office and you want to update the firmware remotely at home.

Steps:

  1. Arduino to compile sketch and outputs sketch.bin
  2. A script to connect the Particle cloud and send sketch.bin over the Internet
  3. Particle cloud gets the bin and update the Duo

LINUX

LINUX 64bits install gcc: sudo apt-get install lsb-core

Is it possible to run RedBear Duo as BLE controller as well as iBeacon

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.

SimpleWebServerWiFi Fail

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

How to reproduce

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

add ARDUINO_RedBear_Duo flag

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

Attempting to download C projects with releases 0.3.x and later result in hard fault error

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.

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.