444 questions
0
votes
1
answer
68
views
Mbed OS Studio Debugger (pyOCD) errors out writing wrong firmware address
I am getting the error :WARNING:builder:Chip erase used when flash address 0x8020000 is not the same as flash start 0x8000000 when trying to load a debug target on a STM32H743VITx device. Which is ...
1
vote
0
answers
74
views
Unexpected Behavior When Using Optional Arguments in Function
I'm experiencing an issue with sending AT commands through a serial port in my code. The problem is that when I send the following commands:
while (true) {
thread_sleep_for(5000);
...
2
votes
0
answers
150
views
How should USB MIDI packets be formatted?
I have an LPC1768 microcontroller based device that I want to talk over USB3.0 to my laptop. The microcontroller end is USB-C (and has the proper pulldowns), and laptop end is USB-A. The packets I'm ...
0
votes
1
answer
35
views
Is there a way to make these printf() statements execute only on the rising edge of a button press?
I'm using the mbed OS with a Nucleo G071RB to send data about a button press event. My issue is that the data is either being send continuously while the button is pressed, or on the press and release ...
1
vote
1
answer
100
views
Coupling between the time() C function and the underlying hardware
This is more a general question. How is the coupling done between the time() c-function and the underlying hardware? Suppose that you compile for a microcontroller not containing any RTC, what value ...
0
votes
1
answer
341
views
STM32 fails to generate PWM using some timers
I have an arduino Giga (STM32H7), and I'm trying to generate PWM's. I succeeded using alternate function AF9 of PA7 (digital pin 5), which uses TIM14_CH1. Now, using the exact same code (as far as I ...
1
vote
0
answers
86
views
RX interrupt using mBed OS Serial throwing Mutex error at runtime
Running mBed OS on a B-L475E-IOT01A1 board but currently not using any threads or Mutexs. I borrowed an example test script to isolate the bit of code not working, shown below. This just reads and ...
0
votes
0
answers
324
views
Building ADS1299 driver for Portenta H7 using Arduino SPI library
ADS1299 Dev Board from TI I try to connect to an Arduino Portenta H7. Library for Portenta H7 with ADS1299. Raspberry Pi Pico library for ADS1299 I am using as reference. Driver for Raspberry Pi Pico ...
0
votes
1
answer
332
views
I2C Lidar Change Address
I have a problem to change the address of my lidar sensor. Its default address is 0x62 in 7 bits, but as the microcontroller only takes 8-bits so, the address is now 0xC4. Here is the code that I ...
0
votes
1
answer
34
views
mbed drivers for a NUCLEO_WB55RG board
When creating an mbed application, is it possible to see the code that is used for the specific device?
E.g., for the NUCLEO_WB55RG I would like to see the ST drivers that are used.
I took a look in ...
1
vote
1
answer
228
views
Reading Potentiometer value via Nucleo-board F070RB
I am trying to read the voltage output from my potentiometer connected to Pin PA_5 of my Nucleo Board (https://os.mbed.com/platforms/ST-Nucleo-F072RB/).
The AnalogIn emits a float number.
Here is my ...
1
vote
1
answer
87
views
How can I override #define OS_ISR_FIFO_QUEUE in my application
in the Mbed OS System there is a library called RTX_Config.h . I need to change the value of this define in the lib.
#ifndef OS_ISR_FIFO_QUEUE
#define OS_ISR_FIFO_QUEUE 16
#endif
could ...
0
votes
1
answer
263
views
mbed os: using timer
I am using the board STM32F446RE to run [this project][1]. I am trying to set up and use timer 10 to count. The main.c file is below.
#include "radio.h"
#include <cstdio>
#if defined(...
-1
votes
1
answer
153
views
Pass pointer of a non static member function to another non static member object
NOTE: In this context, the term "ISR" is not really addressing ISR vectors. There are a lot of tricks in the drivers. One of them is handling with the interrupts generated by the radio ...
1
vote
1
answer
384
views
Why doesn't my Iridium 9603 respond to simple AT commands?
I have an Iridium 9603 connected to an MCU which works with the Mbed operating system.
It is connected through an RS-232 serial port.
The code is the following.
int main(){
UARTSerial ...
0
votes
1
answer
1k
views
How to convert an unsigned char to string
I am working with the Mbed TLS Library on an ESP32 board and a function i am using takes only unsigned char and also gives unsigned char as the output
mbedtls_aes_setkey_enc( &aes, key, 256 );
...
0
votes
1
answer
405
views
SD Card Reader issues with mbed OS 5/6
My coworker and I are having a rough time trying to get a Sparkfun SD card breakout board to function.
We got the SDBlockDevice example code to 'function', but upon runtime it would ruin the FAT32 ...
1
vote
2
answers
621
views
How to read/write data via BLE in Mbed OS 6?
I have an Android smartphone and a Discovery L475VG IoT development board. I am trying send/receive data (both directions) via BLE. I have consulted a good bit of documentation (although much of it is ...
0
votes
1
answer
765
views
SPI Extra Clock Cycle over communication between STM32 Nucleo L432KC and MAX31865 ADC
The setup that I'm working with is a Nucleo L432KC connected to 8 different MAX31865 ADCs to get temperature readings from RTDs (resistive thermal devices). Each of the 8 chip selects is connected to ...
0
votes
0
answers
116
views
I can not connect my Mbed Simulator to my TTN end device, I am using docker
I am trying to connect my Mbed Simulator to my applications end device on The Things Network. I am using the LoRaWaN simulator and entered the correct EUI's applicable.
Proof of EUI id applied
When I ...
0
votes
1
answer
492
views
Can't set the application port to run LoRaWAN certification tests
I'm trying to run LoRaWAN 1.0.4 certification tests on my mDot using LCTT Pre-testing Tool.
I use the latest Dot-AT-Firmware and libmDot v4.0.1.
Looking at the source code (line 918), I added ...
0
votes
0
answers
99
views
How to distribute fw modules without sharing source
I have two versions of my firmware. One is minimal, that does nothing and developed only for booting hw, and an integrated full version of the same firmware. Basically the minimal one is a cropped ...
1
vote
2
answers
502
views
GDB using STM32 on Mbed: "virtual memory exhausted"
I am trying to debug an application using GDB on the Mbed Windows 10 operation system. However, after a few steps, GDB always fails with the error:
/mnt/workspace/workspace/GCC-10-pipeline/jenkins-...
0
votes
1
answer
69
views
ARM, how the content of the specified section name is not overwritten?
I am working on a fw written in C++ with mbed-os for a STM32F4 series MCU. There is a portion of code that should be executed only at the first boot. To achieve this goal, the developer uses a memory ...
0
votes
1
answer
414
views
L6218E: Undefined symbol IoTHubMessage_IsSecurityMessage
I am trying to connect azure via LTE with the Ublox module C030-R412m. I'm programming it through Mbed Studio, and I haven't even managed to compile the azure iot hub libraries.
I am trying to compile ...