Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
2answers
52 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 ...
0
votes
1answer
28 views

mbed OS 5 TCP Socket

I have a few question regarding mbed OS 5's new TCP API: Some background: I will have multiple mbeds linked via Ethernet to a PC. The PC, whose IP address is fixed and known by each mbed, initiates ...
7
votes
4answers
850 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 ...
1
vote
1answer
46 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)?
0
votes
0answers
16 views

Programming mbed LPC1768 via ISP

I'd like to experiment programming the mbed's LPC1768 dev board (https://os.mbed.com/platforms/mbed-LPC1768/) using ISP with FlashMagic. Is this possible without requiring physical modification of ...
3
votes
0answers
72 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 ...
0
votes
1answer
31 views

Stm32L4 microcontroller doesn't wakeup from shutdown

I'm using Mbed coding on STM32L432KC nucleo board. I'm copying the code from the STM32 cube code examples to put my MCU in shutdown. See here. The code compiles fine. I just added an LED blink inside ...
1
vote
4answers
120 views

How to connect these two resistors like on the schematic?

I am trying to connect CAN to the LPC1768, like here Expect that I don't understand the picture or the meaning of "you need two 120 ohm terminating resistors at either end of the bus". Does it mean ...
0
votes
0answers
29 views

Timer interrupt priority over TCPSocket Callbacks

I have a Timer Interrupt Routine which runs periodically (1000/sec). I plan on using mbed's TCPSocket to receive incoming messages. For obvious reasons, this should not block. It is essential that ...
2
votes
1answer
220 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 ...
0
votes
0answers
33 views

BLE Nano I2C on P0_10

I have a project where an nRF51822 (BLE Nano v1.5) is an I2C master and communicates with an Atmega328. I have communication working over I2C just fine using various pins. However, when attempting to ...
0
votes
1answer
29 views

Interrupt during packet transfer

I'm using the mbed TCP/IP Socket library to receive incoming messages via ethernet. Currently, the incoming data is read in an infinite while(1) loop (i.e. as fast as possible). I will also be ...
2
votes
2answers
537 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 ...
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 ...
0
votes
0answers
35 views

How do I configure system clock while using MBED IDE?

Just starting to use STM32 boards with web-based MBED IDE. This IDE don't have anything like Project configuration menu like other IDEs do. So I can not understand how do I configure system clock. ...
1
vote
0answers
77 views

Can the idle state of MOSI cause issues?

I have an issue when communicating with an ADC over SPI. If I imitate the SPI protocol via bitbanging then I have no issues with communication; however, if I use the SPI hardware (I've tried Arduino ...
0
votes
0answers
52 views

SPI DAC not changing from initial value

I've written a test program which outputs 255 to the TLV5606 DAC via SPI, all which works as expected. I then tried extending the program to update the value to 512, after a 5 second delay. ...
0
votes
1answer
40 views

What is the procedure for going from discovery board to a deployable solution? [closed]

Just to clarify with some context: This voice based keyword detection requires an mbed discovery board; and I am sure some min flash size. Even for a hobby project, i.e. personal home automation, ...
0
votes
2answers
192 views

Communicating with an SPI DAC

I'm trying to interface the TLV5606 with an mbed via SPI. The connections I've made are as follows: Note: mbed is powered from same 5V supply. I modified the mbed SPI helloworld prorgam: ...
1
vote
2answers
165 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 ...
1
vote
2answers
61 views

Can I use this switch with pull-up inputs?

I'm currently using the mbed Application Shield on an Arduino-type board. I want to use the centre button as an input for interrupts but the internal pull-up resistors are causing me problems. While ...
0
votes
1answer
170 views

Hooking up incremental encoder to mbed

I've spent the last hour trying to get an incremental encoder working with an mbed module. Keyes KY-040 Rotary Encoder https://www.amazon.co.uk/gp/product/B079H3C98M/ref=oh_aui_detailpage_o06_s00?ie=...
0
votes
0answers
67 views

Varying performance of mbed, depending on Power Supply

I've written a very basic program (without the mbed library) to turn on all LEDs on an mbed board (https://os.mbed.com/platforms/mbed-LPC1768/): ...
0
votes
0answers
104 views

mbed Alternative to FreeRTOS's vTaskDelayUntil()

FreeRTOS's vTaskDelayUntil() function causes a thread/task to unblock at an absolute time, therefore ensuring that threads are "awakened" in consistent time intervals. Does the mbed platform offer ...
2
votes
2answers
206 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 ...
0
votes
1answer
323 views

STM32F7 programming problems

I am trying to program an STM32F7 series MCU on a custom PCB (migrating over from a nucleo dev board) but I am having trouble connecting to the MCU. Using STM32CubeProgrammer (the new programming ...
0
votes
1answer
150 views

How do Free-RTOS and mbed OS handle ethernet?

Do Free-RTOS and mbed OS poll for incoming data to be received (or use interrupts?)? If so, is there a risk that data to be received while the processor is handling another task (e.g. running a ...
0
votes
1answer
78 views

Is mbed RTOS suitable for commercial motion control solutions

Is the mbed RTOS suitable for commercial motion control applications? Is it advisable to separate the actual motion controller from the network handler, etc (i.e. motion controller in separate MCU)? ...
-1
votes
1answer
59 views

Choosing a networking protocol [closed]

I need several mbeds to communicate with a host PC, which will issue commands to individual mbeds. What would be a suitable networking protocol to achieve this? Bear in mind, an internet connection is ...
2
votes
2answers
108 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 ...
3
votes
3answers
281 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 ...
0
votes
2answers
209 views

24v Emergency Stop Input

What's a good way to read a 24v emergency stop signal with an mbed? The 24v signal is connected to an E-stop contactor which disconnects power to a motor when the 24v is interrupted (i.e. when e-stop ...
-3
votes
1answer
186 views

Trying to find documentation on UNV-SIM7100C-EVB MINI-V1.11

As the title states, I have the UNV-SIM7100C-EVB MINI-V1.11 connected to my Nucleo-F401re board and am trying to get GPS working. Can anyone help? EDIT: I'm looking for the one bought from here: ...
0
votes
2answers
58 views

Two sensors to one ADC pin

I'm working on a project using the MBED 1768, where I would like to connect two different externally powered sensors to one ADC pin on the microcontroller. Since they are externally powered, I need a ...
1
vote
1answer
133 views

mbed Socket Thread

I need to establish an ethernet connection between a host and mbed, where the host can send commands to the mbed (e.g. move forward, move backwards, stop, etc). As there is no telling when these ...
0
votes
1answer
720 views

I2C Communication between Arduino Uno and mbed

I have an Arduino Uno and mbed sharing the same USB power supply/ground. When connecting the two to allow I2C, I would have assumed I'd need to attach the Arduino's SDA pin (PC4) to the mbeds SDA pin,...
2
votes
3answers
653 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
2answers
253 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 ...
1
vote
1answer
92 views

Are there any ways to improve this ISR - STM32F401RE?

I am currently coding a flight controller from scratch and am currently working on the module to decode the incoming PPM signal. Keeping in mind that this is an ISR, I've limited its functionality ...
1
vote
0answers
115 views

Implementing nrf51822 timer example mbed

I am using the PCA10001 eval board and I have been able to get things up and running using the mbed platform but now I am implementing a timer based interrupt for that I was using a ticker. But ...
2
votes
2answers
855 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 ...
-1
votes
1answer
135 views

Mbed LPC1768 Too Slow for Virtual Methods [closed]

I've written an OOP program which calculates the position of an object following a Trapezoidal motion trajectory - accelerate up to max speed, coast until decel point, decelerate to target position. ...
0
votes
1answer
263 views

PG2 GPIO output on Nucleo-F767ZI doesn't function

I have made a board on which I plug the Nucleo-F767ZI microcontroller board. There is one GPIO pin that I cannot get to function as a digital output: PG2. This is ...
3
votes
0answers
264 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. ...
1
vote
1answer
386 views

Configure Serial with registers on STM32l073RZ

I'm trying to configure the Serial of my STM32L073RZ with registers to send datas on the PA_9 pin. Currently I have this script ...
1
vote
2answers
621 views

Periodic waking up from deep sleep

what are the main used ways of how to handle deep sleep of some microcontroller (atmega or a cortex m0/m0+) with waking up periodically? Right now, I'm building a Sigfox GPS tracker that should send ...
0
votes
1answer
832 views

Change internal voltage reference on an STM32L0

I'm using a Nucleo board with an STM32L073RZ. With an "AnalogIn" object on PA_0, I measure the voltage of a TMP36 (temperature sensor), but the accuracy is not great at low temperature. I want to ...
0
votes
2answers
241 views

I2C Connection Mbed

I2C Comms I'm trying to connect an I2C 16x2 display (PCF8574T) to a nucleo-L476RG Connections Code i'm trying to run Output of printf RUN 0x0 ACK 0x1 ACK 0x2 ACK 0x3 ACK 0x4 ACK 0x5 ACK 0x6 ACK ...
2
votes
3answers
3k 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 ...
0
votes
0answers
87 views

STM32L073RZ freeze because of an InterruptIn

I have a problem, I use an InterruptIn in a class to generate interruption when a button is pressed. In this class I just have constructor, destructor and callback for the rise and the fall. When I ...