Questions tagged [mbed]

1

votes
1

answer
261

Views

How to read Adafruit GPS Data with STM32?

I'm using a STM32 Nucleo-F334R8 board and a Ultimate GPS Breakout V3 from Adafruit. What I'm trying to do is to read the GPS data with Putty on my computer using the serial communication. At the end I want to get the GPS data on my F334R8 board and then send it to a RaspberryPi 3 with the serial c...
Adrien Laliere
1

votes
0

answer
115

Views

How can i read my Buffer, AT command in TeraTerm for Mbed Aduino Nucleo and JSN270

I have a Question of my Nucleo. I am study about JSN270 for aduino and Nucleo, my system environment is Bottom : Nucleo (L053R8) Middle : JSN 270 Aduino shield v1.1 Top : JSN 270 And i used Teraterm (terminal). I can bright to LED and printing (ex : pc.printf ) but, i have manu problems about AT co...
윤성권
1

votes
0

answer
598

Views

STM32 MBED stop mode - timer not working after wakeup

I'm using MBED on STM32F437 MCU (my own target) and trying to properly reach STOP mode. This MCU doesn't have LPTIM (low power timer) so I'm trying to configure RTC (or WKUP pin PA0) to wakeup MCU a few seconds after STOP. So far so good. But there is problem after wakeup. MCU is running, serial pri...
Martin Borýsek
1

votes
0

answer
50

Views

HTTPS doesn`t work on ODIN-W2

I try to build HTTPS example on ODIN W2 with mbedOS and got the next problem: Connecting to os.mbed.com:443 Starting the TLS handshake... mbedtls_ssl_handshake() failed: -0x2700 (-9984): X509 - Certificate verification failed, e.g. CRL, CA or signature check failed Error flag sets in file x509_crt.c...
1

votes
0

answer
66

Views

Azure IOT Hub security token generation using mbed

We are connecting to the Azure IOT Hub with security credentials created with Device Explorer. However, since these credentials expire, our IOT devices need the capability to generate the credential periodically. Our device is running under mbed so we are trying to use the mbed libraries in C++ to...
bwh
1

votes
0

answer
87

Views

BLE gattServer.write()

I'm having an issue trying to update the value of a characteristic within a custom BLE service that's running on an MCU running mbedOS. I am attempting to update the value of this characteristic with a value passed by an apllication 'nRF Connect'. the value is received correctly, but e value of a ch...
Mirco Palese
1

votes
1

answer
51

Views

Very long compilation time on mbed-cli in eclipse

I need to use offline mbed-cli in Eclipse to have debugging capabilities. I installed package of mbed-cli software according to the instructions. When I try to compile the Blinky example, it takes few minutes to compile all available libraries when this compilation should take a few seconds. Plea...
sla_kr
1

votes
2

answer
41

Views

how mbed communicate with peripheral

Based on the answer in this question: How does cpu communicate with peripherals? I've already know modern CPUs usually use mechanism similar to DMA to communicate with peripheral, IO device, etc. Recently, I bought a board, FRDM-K66F. As its user guide said, this board CPU is based on ARM, as well a...
Jacky Huang
1

votes
0

answer
74

Views

Button not giving correct output

This is a code that I am using to display average temperature every 120s on a mbed device and show the previous average when the SW2 is pressed. When I press SW2 button more than once, it doesnt diplay the correct output. Which should be the previous average when pressed one time and average with an...
Eranda
1

votes
0

answer
29

Views

Format array content into a series of strings and output to .csv in C++?

I have been trying to figure out what the best way to do this would be, but haven't quite found an answer yet. I have a float array full of data collected from an inertial sensor and I would like to put it into the right format and output it to a CSV file. I'm using an mbed microcontroller with a lo...
user11271728
1

votes
1

answer
42

Views

Storing an array of chars in a queue?

I'm unable to quite search for what I want, as I am not sure how to address what I want to do, so I am just going to describe it. I think knowledge about mbed isn't really needed, since ill explain that part. I have an interrupt function in my mbed program, which executes everytime there is input fr...
Tryb Ghost
0

votes
0

answer
9

Views

Modbus RX packet causes an error after being sent. How to stop a “phantom” buffer input?

I am attempting to port a version of SimpleModbus from Arduino to Mbed. My Mbed device is acting as a slave and is connected to my PC via a MAX485 and a serial-USB converter. I am using ModbusPoll on my PC to simulate a master. The system works for one function request then goes into error. The mast...
Jacob Horgan
1

votes
1

answer
707

Views

XBee PRO S1 always gets response with API MODEM_STATUS_RESPONSE instead of nothing

My wiring is this: XBee is configured in API mode 1 and mbed (LPC1768) runs this code: Serial terminal(USBTX, USBRX); wait_ms(1000); while(!terminal.readable()) { wait_ms(10); } terminal.getc(); mbed_led1 = 1; while(1) { xbee.readPacketUntilAvailable(); terminal.puts('Packet available\r\n'); XBeeRes...
oddy
1

votes
2

answer
901

Views

Fast Artificial Neural Network Library On Embedded Platform

Since this is my first question after years of finding answers in this site, id like to say a big thanks to everyone. I want to use FANN in an embedded platform, and i am using UVision 4 to code in C. Since i am a C/C++ rookie, i cant figure out if i can / how i can use that library. When i try to s...
Bobisnotyouruncle
1

votes
2

answer
168

Views

Void Wrappers for Nonvoid Functions With An Argument

So, I have the following situation: I'm coding for the mbed online compliler, on a low-memory microcontroller. Real Time performance is very important, I want this to take less than a microsecond. 10 microseconds would be tolerable. I'm using their timeout library, which provides an API for calli...
ikrase
1

votes
2

answer
2.1k

Views

Configuring FreeRTOS with GCC (ARM)

I am new to both RTOSs and ARM Cortex MCUs. I need to use FreeRTOS + GCC + mbed.org's library with STM32L053 nucleo board. I have successfully created a toolchain with GCC+mbed+qt-creator, but I need to add FreeRTOS to this combination. I already got a project which uses FreeRTOS with the same targe...
K.H.A.J.A.S
1

votes
1

answer
158

Views

Flashing Freescale K64F Board with mbed bin file end up with fail.txt containing “INVALID BINARY NVIC”

I try to flash the IBM InternetOfThingsKit Freescale K64F board with a binary compiled at mbed.org. I set the platform to 'Ethernet IoT Starter Kit' and compiled the hello-world blinking LED example without any compiler errors. After I copied the bin file on the mbed flash drive I instantly found t...
Ansgar Schmidt
1

votes
1

answer
915

Views

Limit record size in OpenSSL

I need to implement TLS on an embedded device with an OpenSSL client running on a normal computer. The data transfers are limited to less than 1 kB at a time. I have been looking at mbedtls and it is possible to limit the record buffer to 2 kB to save memory, however the standard TLS record can be...
John
1

votes
1

answer
215

Views

Real time communication between azure cloud and arm-mbed device

I am trying to establish real time communication between azure cloud and device like arm mbed. mbed is a C/C++ client. The data is in cloud which is continuous and received by couple of web api. Based on few condition/data processing I need to send command to arm mbed device. Currently device is re...
Ankit Kumar
1

votes
1

answer
181

Views

Targeting an Xbee using AT Commands Mode

I am trying to get one Xbee to talk to another. I understand that I can use putc to broadcast to all Xbees on a network but I want to target one specifically. I know that I need to use the hardware address on the XBee to do this and by using something called AT Commands mode but I don't think I unde...
Haych
1

votes
1

answer
308

Views

mbed + platformio.org: advice?

I am attempting to get the most basic (blinky) code to run on a STM32F401 Nucleo board. Current status: RUNS: out-of-box blinky code (responds to pushbuttons) RUNS: mbed.org online-compile of simple blinky code (~13k bin, blinks as expected) FAIL: platformio-compiled bin is almost 30k and does not...
Malachi
1

votes
2

answer
175

Views

Alternative to blocking code

Attempting to use mbed OS scheduler for a small project. As mbed os is Asynchronous I need to avoid blocking code. However the library for my wireless receiver uses a blocking line of: while (!(wireless.isRxData())); Is there an alternative way to do this that won't block all the code until a messag...
UniqueName
1

votes
1

answer
424

Views

Send and receive data from mbed to android

I'm trying to create an mbed LPC1768 application which communicates with my phone (Huawei). I have already done an app which connects both with Bluetooth and it works! (I just can turn on/off mbed's led with my phone) But now I'm trying to send and receive data (for example, words) to mbed, for exa...
Leticia Jaén
1

votes
1

answer
353

Views

MBED Serial dropping data

I use MBED (online IDE & libraries) for my application with host board NUCLEO-411RE and 4D Systems touch display connected by full duplex serial communication. I am able to send data successfully from host to display without errors. However when sending data from display back to host I am losing dat...
Darmesh Nana
1

votes
1

answer
486

Views

Why is mbedTLS ECDSA signature dependend on hashing algorithm?

I am currently working on signing a hashed message using mbedTLS (formerly polarSSL) library. I am currently stuck with using the obvious function: int mbedtls_ecdsa_write_signature( mbedtls_ecdsa_context *ctx, mbedtls_md_type_t md_alg, const unsigned char *hash, size_t hlen, unsigned char *sig, siz...
ameeuw
1

votes
1

answer
201

Views

Unable to connect mbed lpc1768 with putty , com ports not showing

my Code : #include 'mbed.h' DigitalOut myLed(LED1); int main() { while(1) { printf('Hello World!\n'); myLed=1; wait(1); myLed=0; wait(1); } } The LED is blinking just fine , and I'm trying to connect my device to putty, and when I click on serial, it asks for serial line and I read it should be a CO...
Abibad Abdou
1

votes
1

answer
760

Views

How to stream data via BLE?

I am currently evaluating the board of Maxim Integrated MAXREFDES100#. As part of my thesis, I would like to examine whether there is the possibility of using BLE for data streaming. The supplied software is fully functional and can already transfer data. Of course, only smaller data packets over a...
E. Yagmahan
1

votes
1

answer
114

Views

Microbit Platformio development - 'PlatformIOLibBuilder' object has no attribute 'get_inc_dirs'

I am currently trying to play around with developing on a BBC microbit on c++ through the Platformio IDE on Atom. I have got the software working with other boards (various NUCLEO boards that I own), and the code itself for the mircobit is the simple 'Hello World' scroller that compiles fine on the...
falcoso
1

votes
1

answer
0

Views

How to define an interface/API which is used in multiple cpp files?

I get the following error: 'Symbol SBPTest multiply defined (by ../../build/typeFind.LPC1768.o and ../../build/main.LPC1768.o).' I have declared SBPTest in common.h like this: #ifndef COMMON_H_ #define COMMON_H_ extern RawSerial SBPTest(USBTX, USBRX); #endif Other files look like this... typeFind.h:...
Lukali
1

votes
1

answer
0

Views

Adafruit Fona 3g Library; How exactly does this work?

I am trying to send a packet to a server over 3g and TCP connection. Below is a link to the .cpp and .h file I have found: https://os.mbed.com/users/Nels885/code/Adafruit_FONA_3G/ More specifically, I am really confused on how TCPSend works under the Adafruit_FONA_3G class. I am trying to implement...
User38t3
1

votes
1

answer
0

Views

How to convert a vector of ints to a 2-digit hexadecimal and add sequentially to c string? [duplicate]

This question already has an answer here: Integer to hex string in C++ 16 answers I want to accept a uint8_t vector into a function, which every element is then converted to a 2-digit (all digits not used are 0) written hexadecimal stored in a string. I think I might be getting confused here... I f...
Tryb Ghost
1

votes
1

answer
1.5k

Views

C++ int or float to char array

I'm trying to convert a integer or a float to a char array, in a specific form (programming for mbed, a micro-controller). The integers should be 32-bit big-endian two's complement integer The floats should be 32-bit big-endian IEEE 754 floating point number Tried a few things: uint8_t *v; uint8_t v...
Jannes
1

votes
1

answer
345

Views

Using an RtosTimer inside a class

I'm trying to use an RtosTimer within a class but the mbed locks up. I think this is because I'm calling threadHelper each tick and its creating a new pointer whereas I actually want to call threadMethod each tick or call threadHeper each tick but use the same pointer. Can anyone show me how I shoul...
Joseph Roberts
1

votes
1

answer
0

Views

How to share a global object between threads?

I have created a class, which has many public functions, some which write data and some that only read data. It's required that I do this within 3 threads, I have no other option. I know if I accessed a shared resource just to read, then I don't have to protect, but I don't know if it is any differ...
Tryb Ghost
1

votes
1

answer
377

Views

Resolve missing module error for Yotta with STM32F401

I'm trying out development using mbed for the first time (mbed.org) using OS X. I'm using the ST Microelectronics STM32F401 Nucleo board and am trying to follow the 'Getting Started' guide. I'm following the instructions in 'Your First Application' http://docs.mbed.com/docs/getting-started-mbed-os/e...
Joel
1

votes
1

answer
1.3k

Views

How to add name and ID attributes to custom BLE characteristics C++

I am using this mbed workthrough, to create a custom GATT Service in C++. However, this code only creates characteristics with UUIDs: uint16_t customServiceUUID = 0xA000; uint16_t readCharUUID = 0xA001; uint16_t writeCharUUID = 0xA002 In my C# code on the smartphone connecting to my mbed...
George Edwards
1

votes
1

answer
851

Views

Using smart pointers on the mbed

Is there a way to use smart pointers on the mbed board, together with the mbed libraries? What compiler is needed?
Alex Brooks
1

votes
1

answer
598

Views

How to install mbed CLI on a Windows 10 system with Python 3.5?

I would like to install the ARM mbed CLI on my PC. I follow this tutorial from the official website: https://docs.mbed.com/docs/mbed-os-handbook/en/5.1/dev_tools/cli/ One of the prerequisites is having Python installed on the system. The tutorial mentions: Python - mbed CLI is a Python script, so yo...
K.Mulier
0

votes
0

answer
2

Views

STM32L0 Freeze on setting NVIC/GPIO

I'm working with an STM32L073RZ CPU running MbedOS 5.11.2. Eventually I aim to get this working in a very low-power mode (STOP mode) that will be awoken with either an RTC interrupt or an interrupt from a peripheral device on pin PA_0 (WAKEUP_PIN_1). At the moment I am simply attempting to setup PA_...
Adam Mitchell
1

votes
1

answer
1.3k

Views

What does the wait() function do?

Hi I started learning Java and am currently trying to learn C++. I have this piece of code and cannot workout what it does. I am assuming it makes the program wait for a certain period of time before it starts. But some further explanation would very useful. I have added comments to sections for whi...
user5647516

View additional questions