Questions tagged [stm32]

The STM32 is a family of Microcontrollers using ARM Cortex processors by STMicroelectronics. There are multiple familys with different features and power: High Performance, Mainstream, Ultra-low-power and Wireless.

Filter by
Sorted by
Tagged with
-3 votes
0 answers
35 views

How do i send multiple changing values via I2c?

I have a project where I need to send multiple values to a slave board and that slave board prints those values to an I2c 16x2 LCD. I am new to I2c and I don't really understand it! I, unfortunately, ...
user avatar
1 vote
0 answers
55 views

Can BACNET Server/Client be developed using ARDUINO

I am new to the BACNET Stack. I want to develop an embedded controller work as a BACNET client device which can access objects and properties from BACNET devices and control an AHU system. I would ...
user avatar
  • 11
1 vote
0 answers
32 views

Flight controller board Reprogram

Recently in my scrap yard visits, more and more I find cheap quad-copters and remote controllers of all kind. I have built up quite a collection of boards and spare parts to create my own army of ...
user avatar
  • 11
1 vote
0 answers
43 views

Could not find AHT? Check wiring! How do i connect an AM2315C - Encased I2C Temperature/Humidity Sensor to a STM32F103C8T6?

am a little new at this so i sincirely need your help. So I have a temperature & humidity sensor i got from http://www.aosong.com/en/products-70.html which is probably based on the AM2315C - ...
user avatar
1 vote
1 answer
130 views

Serial Monitor in Arduino works, but other Serial Terminal work only one way

I have a Arduino code working on a Adafruit Feather STM32F405 Express, and as long as I test it with Arduino serial Monitor, everything works perfect. As I want to use a serial terminal (a C# ...
user avatar
1 vote
0 answers
72 views

UDP packet loss and very high ping time

Scenario I'm writing a code for Nucleo-144 F429ZI. It receives UDP packets (actually OSC bundles) and send back an answer when the command is completed. Issues It work fine most of the time. But there ...
user avatar
  • 287
1 vote
0 answers
26 views

STM32 "blue pill" st-flash error

I am trying to flash STM32 "blue pill" using arduino IDE as mentioned in the link https://www.onetransistor.eu/2017/11/stm32-bluepill-arduino-ide.html#no-bootloader Basically using MX linux ...
user avatar
1 vote
0 answers
33 views

Unable to import the libraries correctly [duplicate]

I am trying to use the Arduino IDE 1.8.15 to program my Arduino. When I download the following code along with the libraries from the same link: https://github.com/SolidGeek/VescUart and using the ...
user avatar
  • 79
1 vote
0 answers
20 views

Prevent timeout while exchange data between two stm32

I am trying to exchange data (str data) between two STM32 throughout Lora connectivity. Both STM32 has a lora module and the connection between them is working fine. Based on two functions: ...
user avatar
0 votes
1 answer
221 views

My Arduino don't show port but is working

I have some problem with Arduino uno and asked here, so I have tried to work by my STM32F103C8 as alternative board, and solved my problem by this question: Arduino Port Not detected and can not run ...
user avatar
0 votes
1 answer
1k views

STM32f4 Warning: The core is locked up

I built a custom board that uses a STM32F411CEU6. My problem is that tried to upload a simple blink sketch (I'm using Arduino IDE with STM32 libraries) and I get the error: ST-LINK SN : ...
user avatar
  • 201
0 votes
1 answer
103 views

How to switch HC-05 from DATA mode to AT mode?

I am asking how to enter from the data mode to the AT command mode without restarting and disconnecting any power supply. In other words, I am trying to make a driver to handle HC-05 module and now I ...
user avatar
1 vote
0 answers
77 views

AT+IPSCAN HC-05 Command

I have a HC-05 module, directly connected to an STM32 via UART interface and connected simultaneously to a mobile application in order to exchange real time data. I am trying to reduce the power ...
user avatar
1 vote
0 answers
80 views

Receiving DMX512 on STM32F103C8

tl;dr: trying to receive DMX512 (via a RS485 module) on a STM32 and not going well. I am trying to modify the firmware of a commercial lighting fixture with a STM32F103C8 clone as it's MCU. It ...
user avatar
1 vote
1 answer
130 views

Stm32 Blue Pill Internal reference voltage Arduino IDE

I want to use the internal reference voltage (1.2V) of stm32f103 blue pill using Arduino IDE. I searched the whole internet but couldn't find anything. I need help with this. Thanks.
user avatar
  • 11
1 vote
0 answers
62 views

NRF24L01+PA+LNA communication problem

I'm trying to communicate between two NRF24L01+PA+LNA modules. I know that NRF24L01+PA+LNA modules are consuming a lot of power and here is my 3.3V power circuit. The LM317 datasheet says it can ...
user avatar
  • 111
1 vote
0 answers
69 views

SIM phone DTMF Signal Frequency Problem

Is there a DTMF signal detection method in the smartphone [SIM] call?ex) keypad value or signal value [not frequency signal] If you press the keypad button while you're on the phone with two iPhones, ...
user avatar
  • 11
1 vote
1 answer
217 views

Timer STM32 #error This code is designed to run on STM32F/L/H/G/WB/MP1 platform! Please check your Tools->Board setting

I have installed the library of TimerInterrupt_Generic for ArduinoSTM32 module via Arduino IDE, so i have tried to test the example of library as you can see below: and i have gotten this error: ...
user avatar
2 votes
2 answers
486 views

Am I at the limit of UART transmission time?

I'm currently using an STM32F103C8 (With an arduino core) to read 4 sensors at 1kHz, then send that data via UART (at 115200 baud) to another device. Each sensor returns a float, I also include an ...
user avatar
1 vote
0 answers
27 views

RFMesh (NRF24) for STM32F1

I wanted to know the RFMesh library available for Arduino Uno can be used for STM32F1? Will it work? Or they have seperate set of library for STM32
user avatar
  • 73
2 votes
1 answer
171 views

Connect SDRAM to STM32

Well, first of all hello to everything and thanks for reading my question. I am designing a board with STM32F730R8T6 MCU, and I want to connect MT48LC16M16A2P-6A to it which is 4MB SDRAM chip. The ...
user avatar
2 votes
3 answers
784 views

How to use ADC interrupt on STM32 blue pill

I'm currently using the STM32F1xx boards from http://dan.drown.org/stm32duino/package_STM32duino_index.json To program my blue pill but I can’t find how to write the interrupt for the ADC. I’ve set ...
user avatar
2 votes
1 answer
112 views

problems with Blue Pill (stm32f103c8t6) direct register manipulation

I'm trying to access registers but I keep getting the "was not declared in this scope" error message. I'm currently using the STM32F1xx boards from http://dan.drown.org/stm32duino/...
user avatar
2 votes
0 answers
193 views

SG 90 servos randomly spinning

I started one project where i need 4 servos to control 4 grabbers jaws. i use STM32F103C8T6 with arduino IDE for programming it. The motor TZT Micro Servo 9g SG 90. First, I was playing with stepper ...
user avatar
2 votes
1 answer
557 views

How to extract the binary from STM32 MCU

I have an already programmed STM32MCU. But I don't have the source code. I understand it is difficult to get the source code from the IC. I have heard some people can get the binary file from the IC ...
user avatar
1 vote
0 answers
105 views

Problems connecting nodemcu esp8266 on my laptop

I have a new laptop and didn't run any development boards on it except some Arduino boards. But now, I have only nodemcu esp8266 and maple mini boards and trying to connect them but I get error ...
user avatar
  • 283
1 vote
1 answer
3k views

STM32 ST LINK not working on Linux

I have a STM32 that I programm in Windows, I connected them like this: https://electronics.stackexchange.com/questions/515810/ftdi-and-st-link-devices-together-to-stm32 Now, I moved to Linux (Ubuntu ...
user avatar
  • 11
1 vote
0 answers
122 views

Problem with using SD and Adafruit_SSD1306 libraries at the same time

I am searched over the internet and found out a few similar questions, but non of them were helpfull, so I decided to open a new quetion. I tried both SD and Adafruit_SSD1306 libraries and they both ...
user avatar
  • 51
1 vote
1 answer
2k views

pinout for stm32duino with bluepill

I am running the blinking LED program with stm32duino, and an STM32. By trial and error, and a bit of debugging, I have worked out the following: pin C13 blinks as well as the built in LED (except ...
user avatar
1 vote
1 answer
570 views

Problem with STM32 and SDFat lib on other SPI port

I am using STM32F103C8 and I am triing to compile a code with SDFat library. The problem is I need to use the second channel of the SPI1 (pins PB5,PB4,PB3, PA15): I found out that is possible to use ...
user avatar
  • 51
1 vote
0 answers
164 views

Problem with Adafruit_SSD1306 library in .h fie

I have a project which includes OLED display, so I decided to use Adafruit_SSD1306 library. But I have problem with compiling code, which uses this library, in another .h file. When I use this library ...
user avatar
  • 51
1 vote
0 answers
605 views

STM32F103 (Blue Pill) with stm32duino + BME280 + SSD1306 strange behavior

I'm going crazy trying to understand some strange reads from BME280 sensor. With this code: #include <SPI.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <...
user avatar
  • 111
0 votes
2 answers
645 views

STM32 and SDFat - Can't create file in directory in SD

I'm using the SdFat.h library on a STM32 and I can successfully create a file in the root directory using SD.open("test.txt", FILE_WRITE); but my code fails to create SD.open("DATA/data_test.txt", ...
user avatar
1 vote
0 answers
311 views

Uploading arduino code to race drone flight controller

I am working on VTOL aircraft and currently I am looking for some good board as flight controller (FC). I could made it by myself, but it requests lot of time. I was thinking about one of fpv drone FC ...
user avatar
  • 51
1 vote
0 answers
375 views

STM32duino Can bus library

I couldn't find any library for can bus for STM32duino (Maple Mini) on arduino or even on STMcubeIDE I found one library on github but it doesn't compile it has a lot of error (its a fork of the ...
user avatar
  • 121
0 votes
0 answers
819 views

Stm32 Blue Pill Internal ADC Voltage Reference Configuration

I am programming an STM32F103C8T6 Board in Arduino IDE. I want to change the value of the internal Voltage Reference for the ADC. How can I achieve this in Arduino ide?
user avatar
0 votes
1 answer
159 views

delayMicroseconds not working on STM32F103C8T6

Due to the fake STM32F103C8T6 module in the market, the delayMicroseconds function is working qucker than expected, when I expect a delay of 1000 us , I get a delay of 500 us. Is there a better method,...
user avatar
0 votes
2 answers
137 views

Where to find the attribution name for a certain board?

I'm working on lcd128x64 spi library. And was working with my Arduino Atmega328p chip. Now I want to run the code with my maple mini board too. So I have to specify the name on the pins for each chip ...
user avatar
  • 283
0 votes
1 answer
118 views

Function pointers that call one function

I'm reading a library file timer.h for STM core library that I just installed in Arduino hardware folder. Of course, there has to be a lot of questions for me as a beginner about many approaches/...
user avatar
  • 283
0 votes
0 answers
37 views

Why does this scope-based timer not work as intended?

I wrote the following scope-based timer to help me profile my code and improve its efficency, but in testing I found that it reports durations far shorter than it should: class CodeTimer { public: ...
user avatar
  • 103
1 vote
0 answers
238 views

Using Arduino Sensors with STM32 based NUCLEO boards

Right now I'm programming an Arduino Uno Rev3, I'm using a Sensor Shield v5 (image at the bottom) to be able to have several Ultrasonic sensors and Servos. Right now I'm thinking about getting a ...
user avatar
  • 11
0 votes
1 answer
447 views

How to create a USB CDC device. (I'm using stm32f103c8 black pill board) and I want to read the data through USB in my raspberry pi as a serial port

How to create a USB CDC device. (I'm using stm32f103c8 black pill board) and I want to read the data through USB in my raspberry pi as a serial port. I am using a black pill to read RFID-rf522 to ...
user avatar
1 vote
0 answers
58 views

STM32Ethernet UDP misses some packets

Using STM32Duino on Nucleo F429ZI: #include <LwIP.h> #include <STM32Ethernet.h> #define UDP_TX_PACKET_MAX_SIZE 512 #include <EthernetUdp.h> IPAddress remoteIP; unsigned int ...
user avatar
  • 287
2 votes
1 answer
2k views

programming STM32 with arduino IDE issues

I'm currently trying to program an STM32 with arduino, but along the way, i encountered some issues with pin modes. To be more specific, programming certain pins to certain modes. Some pins have ...
user avatar