Questions tagged [mbed]

Use this tag for questions involving Arm Mbed open-source embedded operating system and IoT platform that is used with a large variety of Arm Cortex-M microcontrollers. When using this tag you must also identify the specific device being used as well as the development environment that you are using since Mbed can be used with a number of different IDEs.

From os.mbed.com:

Mbed OS is the leading open-source RTOS for the Internet of Things, speeding up the creation and deployment of IoT devices based on Arm processors.

With Mbed OS, you can develop IoT software in C++ with our free online IDE, generate optimized code with Arm C/C++ Compiler and run it on hundreds of hardware platforms.

The Mbed OS stack includes TLS, networking, storage and drivers, and is enhanced by thousands of code examples and libraries.

For some examples of products using Mbed, see Use Cases and Case Studies of IoT products which show a number of examples of different applications of microcontrollers and sensors to solve business problems in agriculture and manufacturing and other industry segments using Mbed.

Arm has this description of Mbed on their web site, https://www.arm.com/products/iot/mbed-os:

Arm Mbed OS is a free, open-source embedded operating system that includes all the necessary features to facilitate the development of IoT connected products, including standards-based security and connectivity stacks, an RTOS kernel, middleware for storage and networking, and remote device management. It is developed by Arm and our partners to tackle the challenges of creating and deploying IoT devices based on Arm Cortex-M microcontrollers.

The source is available on GitHub at https://github.com/ARMmbed/mbed-os

The licensing is described as:

The software is provided under the Apache-2.0 license. Contributions to this project are accepted under the same license. Please see contributing.md for more information.

This project contains code from other projects. The original license text is included in those source files. They must comply with our license guide. Folders containing files under different permissive license than Apache 2.0 are listed in the LICENSE file.

409 questions
8
votes
2 answers

How to write/read to FLASH on STM32F4, Cortex M4

I want to write a variable, for example an integer with the number 5 to the FLASH and then after the power goes away and the device is turned on again read it. I already know that in order to write something I first need to erase the page and then…
Alex M.
  • 301
  • 2
  • 4
  • 11
7
votes
1 answer

Communicating with an USB device over “USB Virtual Serial Port” using C#?

I recently plugged in an USB embedded device(mbed lpc1768) using a normal USB cable to a Windows 7 desktop. According to the docs that came with the program running on the device it communicates with the host(desktop) over a USB Virtual Serial…
Karlth
  • 3,156
  • 2
  • 23
  • 28
5
votes
2 answers

Can't import com.android.future.usb.*

I'm following the steps to use ADK to control mbed via the Android Studio however their mbed adkport code (Scroll down to adkport hyperlink) requires these imports import com.android.future.usb.UsbAccessory; import…
Iancovici
  • 4,946
  • 6
  • 33
  • 54
4
votes
3 answers

Embedded-friendly command parser in C++

My use case is generating and parsing AT commands I'm looking for something similar to Boost.Spirit or https://github.com/ColinH/PEGTL , but friendly to an embedded environment (mbed OS) and doesn't need to be quite as powerful as the…
Malachi
  • 2,022
  • 2
  • 24
  • 35
4
votes
1 answer

How does decryption work in mbedtls?

I wrote the following simple encryption-decryption program using mbedtls library. Encryption works fine (checked against http://aes.online-domain-tools.com/). However, when decrypting back I get incorrect result (output2 and input are different). Am…
Sergey
  • 1,078
  • 2
  • 11
  • 27
3
votes
5 answers

How to pass on 'char* data' when the data is stored as vector of uint8_t?

I have a class defined like this: class sco { private: public: vector data; sco(vector data); ~sco(); }; Where the constructor is: sco::sco(vector data) { this->data = data; } I then have a…
Tryb Ghost
  • 379
  • 1
  • 11
3
votes
1 answer

Path to GCC_ARM (mbed_settings.py)

I've just started to use mbed API, and every time I'm trying to compile my project this happen P.S. I'm on arch Linux usage: make.py [-h] [-m MCU] [-t TOOLCHAIN] [--color] [--cflags CFLAGS] [--asmflags ASMFLAGS] [--ldflags LDFLAGS]…
MathieuAuclair
  • 934
  • 7
  • 29
3
votes
2 answers

Hello World MQTT program in mbed

Was just testing a simple hello world mqtt program on my mbed board and I keep getting this error:   Error: Cannot open source input file "fsl_enet.h": No such file or directory in…
Xanzy
  • 33
  • 4
3
votes
2 answers

How to slow the tempo down for different frequencies on a mbed device using C++

Hi I am trying to using different sound frequencies on an mbed application shield to create a tone from a song. Although I have gotten all the frequencies I cannot seem to slow the tempo down, as it just cycles through all of the frequencies really…
user5647516
  • 547
  • 1
  • 5
  • 15
3
votes
1 answer

ECDHE-PSK mbedTLS example?

I'm trying to figure out how to use mbedTLS (formerly PolarSSL) to perform ECDHE-PSK encryption between two peers. Unfortunately, there isn't any article/documentation whatsoever on APIs that I need to use?
tunafish24
  • 1,819
  • 4
  • 23
  • 37
2
votes
0 answers

Unstable behavior of Mbed 5 and Python 3 over Serial

I have created a Python 3 sketch to try and upload the current NTP time to STM32L476RG Nucleo. The sketch is as follows: import serial import glob import sys import time from socket import AF_INET, SOCK_DGRAM import socket import struct def…
2
votes
1 answer

uTensor model output does not equal to expected output

I'm currently working on a project where uTensor is required. uTensor seems to work correctly, however I ran into an issue which I (apparently) cannot fix myself. Problem definition I've created a simple python script which generates and saves a…
2
votes
1 answer

Proper implementation for mbed TLS AES-CTR?

I'm using this library: https://tls.mbed.org/download with an Espressif ESP32. The goal is to encrypt some data using AES-CTR then decrypt the cypher-text back to the original plain-text. I am getting incorrect result after I've decrypted. Since…
2
votes
0 answers

Halting of a program the second time around a loop

I am trying to use an mbed LPC1768 to interface with a uCAM-III camera module. This requires following a specific transfer of bytes between the mbed and the camera to sync correctly. The datasheet specifies that this can take up to 60 times to…
2
votes
2 answers

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…
1
2 3
27 28