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
0 votes
0 answers
13 views

Unable to interface XBEE with m3pi

I have a m3 pi pololu bot (lpc1768 controller) with a mbed slot. I want to send data from a XBEE S1 connected to my PC to the bot (through another XBEE mounted on it). To achieve this, I've a python ...
user avatar
0 votes
0 answers
38 views

Arduino Mbed bootloader on nrf52840

I use a PCB that I designed on which is mounted the E73-2G4M08S1C from Ebyte (nrf52840). I flashed the Arduino Mbed bootloader with SWD and a J-Link (J-Flash) probe with no problem. My computer then ...
user avatar
1 vote
0 answers
42 views

Using CAN bus on a NucleoH743 with Mbed

CAN bus is not working on my project. We are using a Nucleoh743 (STM32h743) programming it with mbed (Mbed OS 6.13) I have made sure the bus is properly made, with the correct termination resistors, ...
user avatar
0 votes
0 answers
41 views

I2C Communication for Mbed Program between Two NUCLEO-WB55RG Boards Fail

Really hope if there is someone have a quick look and give out a solution as soon as possible as the project is going to due very soon. Through the following code, I can allow sender board sending ...
user avatar
  • 23
1 vote
1 answer
236 views

Why does my ADC -> TIM -> DMA driver work for a bit, then freeze up, then continue working again?

This is difficult to describe, but basically my DMA ADC stream will give me correct readings for lets say 10 seconds, then gets "locked up" / outputs static values that do not change (when ...
user avatar
  • 413
0 votes
1 answer
85 views

Current calculation dependant on Mbed PWM voltage

I'm looking at this question in a design exercise. By simple calculation the voltage is 9V, the impedance of the heater is 3ohms. So the current through R is 3A? OR Do I need to take into account the ...
user avatar
0 votes
1 answer
94 views

How to recharge a bootstrap capacitor on an H-bridge with each transistor controlled with a pwm GPIO?

I have built an H-bridge using bootstrap. Each MOSFET is controlled by a PWM output of my µc. Let's say my motor turns clockwise. I set H1 and L2 to a duty cycle α = 0.9, then to recharge H1's cap I ...
user avatar
0 votes
1 answer
59 views

Is there a way to reduce the size of an mbed-os project? [closed]

Every time I create a new mbed-os project, (mbed new ...) I end up with a 1GB folder. This seems a tad bit excessive. How can I reuse the mbed-os folder so that ...
user avatar
  • 275
0 votes
1 answer
55 views

Steppers will hold position and vibrate when sent xSTP instructions but won't move at all

Edit: setting the Wait time to 0.1 causes it to make music, yay? I've managed to get the steppers to react to xSTP with this code: ...
user avatar
-1 votes
1 answer
76 views

Help with an Mbed LCP1768 assignment

Could someone help me out and see if my code is correct please and thank you. ...
user avatar
1 vote
1 answer
93 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 ...
user avatar
  • 413
1 vote
0 answers
395 views

Why would an STM32 not execute its program after upload?

I am attempting to breadboard an STM32F401 using a 64-pin breakout board. I am able to both connect and upload my program successfully (via ST-LINK V2 SWD pins), but once uploaded, the program seizes ...
user avatar
  • 413
1 vote
3 answers
157 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 ...
user avatar
1 vote
0 answers
141 views

Huge spikes and sudden offset in accelerometer data (FRDM-K64F & ADXL357)

I'm working with vibration analysis on electric motors (AC). I have a mBed FRDM-K64F with a EVAL-ADXL357 connected to it - mounted onto a motor. The device samples from the FIFO 4000 times per second,...
user avatar
0 votes
1 answer
121 views

Problems with mbed LPC1768 double precision

I have a motion profile generator which calculates a position 1000/sec. During the decelerating portion of the move, the following calculation is used: ...
user avatar
  • 591
2 votes
1 answer
310 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: ...
user avatar
  • 591
-1 votes
2 answers
96 views

Interrupting process in another thread [closed]

Will an interrupt defined in one thread interrupt any process in other threads? If not, how can this be done? Specifically, I’m using mbed OS and timer interrupts (ticker).
user avatar
  • 591
0 votes
0 answers
246 views

mbed EventQueue call

I'm trying to make an EventQueue call inside a method attached to a Ticker. The EventQueue, and context thread is declared within the class which holds the method in question. A simplified example: <...
user avatar
  • 591
1 vote
2 answers
340 views

mbed SPI in Ticker function

I've been trying to use spi.write() in a Ticker function, but the following error is thrown out onto the serial line: ...
user avatar
  • 591
1 vote
0 answers
684 views

STM32L0 GPIO EXTI interrupt not triggering

I'm working with an STM32L073RZ on a custom board. The board is in STOP mode and I have a pin (PB_5) configured as a rising edge interrupt. I'm using ARM Mbed OS 5.12.0 but primarily working with the ...
user avatar
  • 285
0 votes
1 answer
741 views

What can be the cause for the servo to jitter continuously while powered?

I'm using an HS-785HB servo (https://www.robotshop.com/media/files/pdf/hs-785hb.pdf) for my project. I'm working on the Mbed platform and it uses C++. The servo library I use is Servo.h and I'm ...
user avatar
1 vote
1 answer
737 views

STM32L0 Hangs on writing EEPROM

I've got an STM32L073RZ and I'm attempting to write a 4 byte value to the internal 6 KB EEPROM. I'm running MbedOS 5.11.4 but attempting to use the HAL for this. Here's the code: ...
user avatar
  • 285
0 votes
1 answer
384 views

Using SysTick_Handler in mbed LPC1768 project

I'm trying to use SysTick_Handler in a project which uses the mbed libraries and RTOS, however on compilation, the following error is returned: ...
user avatar
  • 591
0 votes
0 answers
114 views

No connection between host PC and mbed via Ethernet

...
user avatar
  • 591
2 votes
2 answers
137 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 ...
user avatar
  • 39
1 vote
1 answer
718 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 ...
user avatar
  • 591
7 votes
4 answers
2k 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 ...
user avatar
  • 285
1 vote
1 answer
61 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)?
user avatar
  • 591
0 votes
0 answers
110 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 ...
user avatar
  • 591
4 votes
0 answers
438 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 ...
user avatar
0 votes
1 answer
352 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 ...
user avatar
  • 45
1 vote
4 answers
233 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 ...
user avatar
  • 189
0 votes
0 answers
48 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 ...
user avatar
  • 591
2 votes
1 answer
2k 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 ...
user avatar
  • 482
0 votes
0 answers
76 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 ...
user avatar
  • 285
0 votes
1 answer
80 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 ...
user avatar
  • 591
2 votes
2 answers
3k 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 ...
user avatar
  • 482
3 votes
4 answers
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 ...
user avatar
  • 1,188
0 votes
0 answers
71 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. ...
user avatar
1 vote
0 answers
667 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 ...
user avatar
  • 285
0 votes
0 answers
73 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. ...
user avatar
  • 591
0 votes
1 answer
46 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, ...
user avatar
0 votes
2 answers
242 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: ...
user avatar
  • 591
2 votes
2 answers
431 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 ...
user avatar
  • 591
1 vote
2 answers
116 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 ...
user avatar
0 votes
1 answer
603 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=...
user avatar
  • 591
0 votes
0 answers
70 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/): ...
user avatar
  • 591
0 votes
0 answers
145 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 ...
user avatar
  • 591
2 votes
2 answers
450 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 ...
user avatar
  • 591
0 votes
1 answer
703 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 ...
user avatar
  • 3