Questions tagged [mbed]

mbed is an operating system and hardware abstraction layer for microcontrollers, developed by ARM. A large number of development boards are supported.

Filter by
Sorted by
Tagged with
17
votes
7answers
12k views

What's the point of DMA in embedded CPU's?

I was doing a project recently with the mbed (LPC1768), using the DAC to output various waves. I read parts of the datasheet, and it talked about how it had DMA for a lot of the peripherals. This ...
9
votes
6answers
2k views

What makes a particular platform suitable or unsuitable for production use? [closed]

Let's assume that the cost of goods is an insignificant factor. If a company lacks a team to produce a custom board for a particular product, but has success with an off-the shelf development ...
7
votes
4answers
1k views

What's causing this power spike in STM32 low power mode

I'm using an STM32L073RZ on a bare board with just the CPU and decoupling caps. I'm powering the board straight from an Otii Arc and measuring current consumption. I'm running MbedOS 5.11.2. When I ...
6
votes
2answers
8k views

Using Nixie Tubes

With some (very) rusty electronics knowledge I thought I'd have a crack at getting some Nixie tubes to display using my microprocessor (an mbed). It seemed so simple, but the information I can find ...
4
votes
2answers
1k views

How to correctly configure deepsleep for STM32L0xx

I'm trying to configure my Nucleo Board with a STM32L073RZ in deepsleep mode to get the lowest power consumption. To do that I use the mbed librairies with the deepsleep() function (This function use ...
4
votes
1answer
966 views

Is 3 bytes a min to address a register in a 256K EEPROM?

I am really new to electronics and embeds and I am struggling with some probably basic notions. (I have a software background.) I have an EEPROM (24LC256) connected to an MBED microcontroller and I ...
4
votes
2answers
997 views

MCP 23018/23S18 for LED and Switch control

I'm working on a project that involves about 200 LEDs and about 120 Switches. I'd like to use several MCP23S18 DIP chips across 2-3 buses to control everything. I'm a CS guy and just want to make sure ...
4
votes
1answer
452 views

Debugging mbed os 5

I took a look at the mbed OS 5 and the corresponding mbed cli I created first programs and programmed them via the binary drag and drop to the flash disk provided by the programmer (Using the GCC_ARM ...
4
votes
0answers
343 views

Is mbed OS suitable for hard real time systems [closed]

I have been developing embedded stm applications bare metal along with ST Hal for a few years and would still consider my self a beginner as the process of learning in a bare metal environment can be ...
3
votes
4answers
1k views

What are these exposed copper rectangles for on the mbed NXP LPC1768?

Today I noticed some exposed copper rectangles on the bottom of an mbed NXP LPC1768 dev board. They don't look like they're meant for components. I think they may just be test points, but I'm curious ...
3
votes
3answers
3k views

Should I use MBED of ARM or native platform of microcontroller suppliers? [closed]

I got a STM32F429I-DISC1 development board from STMicoelectronics and I know MBED support it. So if I want to learn about ARM and develop a commercial product in the future, should I use MBED ...
3
votes
5answers
1k views

mbed as a programmer

For those of you that haven't heard of the mbed I'd highly recommend having a look at it for rapid prototyping! So, the mbed is a 100MHz microprocessor that appears as a usb mass storage device when ...
3
votes
3answers
6k views

Get internal temperature or voltage STM32L0

I'm trying to obtain the internal voltage and temperature of my STM32L073RZ with the mbed librairy (Intialize and read an internal channel with ADC). Currently I didn't know how to do that and all the ...
3
votes
3answers
5k views

How to bring a digital input pin to high state?

This sounds really very easy, but I'm afraid to try it because I don't want to fry my microcontroller. I'll use an Arduino for an example, but it should be the same for all microcontrollers. Anyway,...
3
votes
3answers
2k views

Stepper Motors (on mbed, not arduino)

There is some information on chiphacker about using an arduino to control stepper motors (I'm driving Bipolar, 4 wire, motors), however I'm finding it hard to know how to control a stepper motor using ...
3
votes
3answers
36k views

SIM900 Error on AT Command AT+SAPBR=1,1

I intend to send some information through GET method to a php page using the SIM900 module. I tried the following sequence of commands with success. ...
3
votes
3answers
476 views

DAC behaviour on reset / startup LPC1768

I am programming a mbed LPC1768 for a constant current discharger. I plan to use the DAC output on the LPC1768 for setting the current in my discharge circuit. edit: The trouble i am having is ...
3
votes
2answers
660 views

Increment value and display in C

as my primary thing with electronics is hardware, I am having some difficulties learning programming. Unfortunately, my college where I study offers no such course so for my project this year I ...
3
votes
1answer
1k views

How to obtain exactly the same state after deepsleep() mdbed function on a STM32L073RZ?

I try to configure my STM32 to obtain the lowest power consumption. For that I'm using deepsleep() function from mbed librairies. Before that I disable GPIO with this function ...
3
votes
1answer
2k views

Using MBED PWM for motor control

I have an mbed project with firmware that controls some PwmOut switches. All works fine firmware opens and closes switches as expected. I tested this with a LED (...
3
votes
1answer
9k views

Inverting the input and output of a UART

I'm talking to a sensor using RS232 and the UART of an mbed. However I've noticed that the bits sent to and from the sensor are the exact complement of what they should be. What my mbed sees as a 1, ...
3
votes
1answer
423 views

PN532 not responding using SPI when issuing antenna-related command

I've bought a PN532 v1.3 breakout board, to which I communicate in SPI. I can ask it its firmware number, to which it answers D5 03 32 01 06 07 (PN532 V1.6), which ...
3
votes
0answers
318 views

Wait make the STM32L073RZ freeze in stopmode

With my STM32 I'm trying to configure a deepSleep mode and use RTC to generate interruption (actually each 30 seconds). When my STM start, this one configure the RTC and directly go in Stop mode. ...
2
votes
2answers
1k views

Can I use mbed for STM32F103(C8T6)?

I have some experience with Arduino, but for one of the devices I want to use something with more power (RAM/CPU power). I already found out that some STM32F4 or STM32F7 models really with what I ...
2
votes
1answer
242 views

Mbed Cortex-m hardfault when sending data via TCP

I have a TCPSocket* object which holds a connection to a client. This object is passed to another object to send data back to the client: ...
2
votes
1answer
327 views

Can an mbed device be damaged by something drawing too much current?

The mbed has a pin which supplies 3.3V regulated current. I think it can supply up to 100mA. If this pin is used to power a device, and the device tries to draw 150mA, then what can happen? Is the ...
2
votes
2answers
126 views

Proportional Control Balance Beam

Bit of an unorthodox question I'm sure, but I'm making a balance beam (two rotors on either end of a see saw) with proportional control, and I can't seem to get it to balance at 0. The proportional ...
2
votes
2answers
2k views

How to read data from this sensor?

I am using the MLX90393 Magnetometer IC from Melexis. More specifically, I am using the breakout board by Sparkfun. I am still a beginner when it comes to programming, and this is my first time trying ...
2
votes
2answers
371 views

Mbed OS efficiency

I'm planning on using the mbed in a motion control project, where certain threads need to run at a specific, high frequency. Using the mbed library, I could use Ticket to calculate the time spent ...
2
votes
2answers
6k views

Using Visual Studio as IDE for mbed developement

I am aware that is has been looked at / done in the past, but I was wondering if there is anyone who has experience / understands how I could use Visual Studio 2015 Professional to develop mbed code ...
2
votes
1answer
1k views

I2C Scanner not working properly

First of all, please see my other question HERE as it is related (Any help with that is greatly appreciated too). If you read through my other question, you will know that I am attempting to ...
2
votes
2answers
367 views

Measure High Dc Voltages 0-150V using a STM32F446RE MCU

Does anyone have any suggestion on how to build a circuit that can convert high Dc voltages from 0-150 V to lower voltages so that I can use my MCU to read them and display them on my 16x2 LCD?. I ...
2
votes
2answers
404 views

Question about communication using a controller area network (CAN)

I am trying to make a test CAN loop on a breadboard and I want to try reading and writing to it using an mbed. I found an example circuit and some test code for reading and writing from a CAN loop ...
2
votes
2answers
404 views

How fast is mbed Digital Out

I need to output 8-bit integers via parallel (i.e. using 8 pins on the same port) at 1024hz. From what I can see, I have two options: 1) Write to each pin individually using DigitalOut. 2) Avoid the ...
2
votes
1answer
557 views

How to create Simple Web Server with Mbed and W5100 Ethernet Shield

I'm trying to develop a simple web server application with Nucleo f411re and w5100 Ethernet shield. My question is why the client.is_fin_received() function always returns 0. Why doesn't my web page ...
2
votes
1answer
365 views

MM5451 (LED Driver) basics - trouble lighting LEDs

I'm using an mbed micro controller to switch on all channels on the mm5451 LED driver. I have wired accordingly with 5v PSU, 1k resistor on pin 19 for brightness control (have varied this with no ...
2
votes
1answer
3k views

mbed vs Teensy 3 vs other options [closed]

I'm an electrical/electronic technician, I'm good with analog electrical stuff & electronics, but when it comes to microcontrollers, programming & uA, stuff start to sound Chinese to me (no ...
2
votes
1answer
7k views

How to read the device ID of a dataflash memory

I am trying to read the device ID of a serial flash memory by using the SPI connections on an mbed. In the datasheet for the serial flash memory W25Q80 there is this figure. The following is the code ...
1
vote
5answers
1k views

Does reset do the same thing as shutting off the power to this device and turning it back on?

I am trying to control a serial dataflash memory through an mbed. It is an AT45DB021B and the datasheet is here. It has a reset pin that I have wired to the mbed so that a software reset can be done. ...
1
vote
2answers
977 views

How to connect mbed to computer

How do I connect my mbed NXP LPC1768 to my computer. I have a USB cable and a breadboard. What else do I need? What connections do I need to make?
1
vote
1answer
472 views

How should I debug my mbed project?

I'm using an external power source to power an MBED module. I have the UART transfer and receive ports connected to a MAX232 level switcher in order to make the signals compatible with RS232. From ...
1
vote
3answers
119 views

Accessing structures concurrently modified by ISR

I have the the following situation: An STM32L476RG (ARM Cortex M4F @ 80MHz, 1MB Flash, 128kB RAM) parses some string data coming in over UART. The project uses mbed-os. The parsing of the data is done ...
1
vote
2answers
669 views

FRDM-kl25z Serial Buffer Issue

I'm sending data over Serial to a FRDM-kl25z via a printf statement on another uC; ...
1
vote
2answers
1k views

Are pull-down resistors included in the mbed USB ports?

For the mbed LPC 1768, I am trying to establish a USB connection with an external device (pins 31, 32, and 39 for D+, D-, and Vbus, respectively). According to USB in a NutShell: Connectors, a 15kΩ ...
1
vote
1answer
55 views

Does Interrupt interrupt a blocked read call

If you were to read() incoming socket data in an infinite while loop, would an interrupt with top priority still run its ISR if the read() call is blocked (i.e. no data in the buffer)?
1
vote
1answer
208 views

When would it become necessary to use an OS for an ARM MCU [duplicate]

I take it an ARM MCU can be run without an OS - at which point might it become necessary to install one? Can the mbed SDK run without the mbed-os or any other mbed for that matter?
1
vote
1answer
65 views

Calling a routine every x miliseconds

I'm working on a motion controller using the mbed platform. The idea is to calculate the theoretical position in the move every x milliseconds and then compare it to the actual position from the ...
1
vote
2answers
712 views

using mbed with gps

I am trying to program an mbed micro controller to work with a GlobalSat EM 406 GPS receiver and have got it outputting long and lat to a host computer using the information on: https://mbed.org/...
1
vote
1answer
286 views

2-Way communication down 1 Wire

I have 2 wireless modules connected to mbed micro-controllers by serial and they can communicate fine, however the data transfer is one direction at a time (like transmitting down 1 wire). I need to ...
1
vote
1answer
51 views

TLC59116 will not drive LEDs

Having the hardest time with this TLC59116 LED Driver IC from Texas Instruments. I have done a crazy amount of debugging and still cannot get it to drive a single LED. I have followed all the ...