Questions tagged [stm32]

The STM32 is the third ARM family by STMicroelectronics. It follows their earlier STR9 family based on the ARM9E core, and STR7 family based on the ARM7TDMI core. The STM32 is based on the ARM Cortex-M family of cores.

Filter by
Sorted by
Tagged with
1
vote
1answer
401 views

Correct note frequency for STM32 based MIDI synth

I have been playing about with the EasyMXPro for STM32 dev. board from Microelektronica. I am trying to create a simple monophonic wavetable synth using the DAC, playable via. a MIDI keyboard, however,...
1
vote
1answer
4k views

Inverting interrupt edge (STM32 wake up pin)

A sleeping STM32 can be woken up by a rising edge on its wake up pin. But if the IC on the other end of the line only interrupts as falling edge, is it possible to invert it somehow ?
1
vote
1answer
643 views

Synchronize internal DAC to I2S on STM32F4

I have a CS4344 DAC connected to my STM32F407 outputting sound at a 44.1kHz rate with DMA and I2S and I would like to output and envelope signal through the internal DAC of the STM32F4, in sync with ...
1
vote
2answers
2k views

Weird oscilloscope readings with a digital signal (ws2812)

Pretty new to oscilloscopes. I'm trying to learn stm32, so one of the projects I'm working on is getting ws2812 LEDS working on stm32. It does work for most strips, however, there are few strips ...
1
vote
2answers
1k views

ST-Link connection suddenly stops responding

While I wanted to upload/debug a new HAL Eclipse System Workbench for STM32 project on my STM32F103 it showed the following message: ...
1
vote
1answer
979 views

USB data serial termination resistors. Need them for STM32F2 micro? If so, what wattage?

I'm a little confused. The STM32F2 datasheet says only this, vaguely stated in the features: HNP/SNP/IP inside (no need for any external resistor) Is that referring to the D+/D- termination ...
1
vote
1answer
2k views

STM32F103 strange behavior

I'm working with an STM32F103 device and am experiencing some strange behavior that I'm not so sure about where start with when it comes to debugging it. I previously asked a question regarding DMA ...
1
vote
1answer
1k views

TIM2 DMA configuration for stm32h7

My problem: I can't configure DMA to working properly on Input Capture event. Data doesn't transfered and error occurs. ...
1
vote
2answers
5k views

STM32 & ST-LINK - SWD connector not working

I am using an ST-LINK/V2 debugger (Firmware version V2.J27.S6, up-to-date) to program my STM32F407G discovery board. So far, I have been using USB to flash the MCU, using the STM32 ST-LINK Utility v4....
1
vote
3answers
462 views

The NUCLEO F411RE Works with float point?

I need a MCU to works with Wifi and Floating point for PID application. In the later I acquire a Wifi expansion board, but I wants know if the STM32 NUCLEO FR11RE works with a Floating Point. I don't ...
0
votes
1answer
120 views

CubeMX HAL Libraries state or stateless [closed]

I wonder if the STM32F4 CubeMX peripheral HAL libraries saves the internal state of the peripherals OR if they are stateless? I am concerned about this because I want to know the possibility and ...
0
votes
0answers
262 views

stm32 USB composite device

There is a need to implement on stm32 usb composite device. The problem is that all USB devices are the same, will not work in parallel (three smart card readers connected to one UART). That is, you ...
0
votes
1answer
1k views

My 2.2" TFT LCD doesn't work (ILI9225 driver)(STM32F1)

Today I was working on this TFT LCD and I don't know why it doesn't work. This LCD is a 2.2" TFT with ILI9225 LCD driver and is connected to my STM32F1. Here is the datasheet of LCD driver: http://...
0
votes
1answer
38 views

Is this circuit for Piezo Transducer and corresponding resistor values correct?

I want to drive this piezo transducer (https://www.mouser.com/datasheet/2/670/cpt-9019s-smt-1310960.pdf) at 3V and 4kHz with STM32F0 microcontroller. This is a follow-up to my previous question (Is ...
0
votes
1answer
552 views

Cannot read accelerometer values from MPU6050 Interfaced with STM32F303RE

I m working on a "self-balancing robot" with STM32F303RE.I m using STCubeMX to generate the MCU configuration code and then I added the main() to get the values from MPU6050 from the following code : ...
0
votes
0answers
68 views

USART6 STM32F746NG isn't working

I'm having trouble configuring the USART6 in my STM32F746NG. I am setting up the USART6 to enable UART comunication, using the code below to initiate it and also create an echo function. ...
0
votes
2answers
1k views

SPI Transfer with STM32F4 board gets stuck on SPI_WaitTX

I am new to the whole embedded hardware thing, and I am getting stuck when trying to connect my STM32F4 Discovery board to a Bosch BMX_055 IMU unit. Here is a snippet of the code I am trying to run: ...
0
votes
1answer
894 views

Using a Mosfet Gate driver to directly drive a small stepper motor?

I need to control some small, low current stepper motors from a 3V ARM micro controller. The motors typically require 5-12V at 400mA (30 ohm 41mH windings). What occurred to me is to use a Mosfet ...
0
votes
1answer
573 views

MPU9255 without lib on STM32

I have a code on Arduino to read the data from MPU9255 with no libraries, using it direct through I2C. I am trying to do the same on Keil uVision with Bluepill, just to learn how to use I2C with HAL ...
0
votes
0answers
160 views

Some questions about CAN transceivers

I bought different type of CAN transceivers: Two with an CJMCU2551 (left in the picture below). and four with TJA1050 (right in the picture below). CJMCU2551 (left) has pins: VCC, GND, CTX, CRX, CANH,...
0
votes
2answers
2k views

STM32F103RB ADC (pics included) strange values for temperature sensor (LM35)

I've connected one battery/2 batteries (GND and A0) and the measuremet displayed on the com26 port is ok. I've connected the LM35 (The LM35 has 1 celsius degree for 10mV measured value) on the VCC and ...
0
votes
1answer
3k views

Nucleo F401RE ADC sampling Time

I would like to know how many samples I have per second for the ADC and what is its maximum samples per second and can I achieve a sample per 1 µs? Clock : 84 Mhz The board is Nucleo F401RE Here ...
0
votes
1answer
767 views

stm32f373vb produces a short circuit after some time

I designed a custom board with stm32f373vb lqfp 100. I made the soldering from the 4-th attempt. It was easy, when you know the technique and have a microscope. Anyway I checked the pins with the ...
0
votes
2answers
265 views

Reliability of STM HAL driver For Safety Critical Application

I'm working on a project which must be used in an automotive application and act as a node into the multiplex CAN-BUS network. There are number of I/O that must be actuated and some of them had a ...
0
votes
2answers
692 views

Communication between two STMs over 2 meter with small latency

I want to send messages back and forth between two STM32s. Probably STM32F407VET6, but it would be nice if I can try already something for a simple one (STM32F103C8T6). My requirements: round trip ...
0
votes
1answer
1k views

Stop blinking LD1 on STM32F4 Discovery

I have a system I built using a ADS1263 32-bit ADC that is measuring tiny biopotentials without much amplification (for a variety of reasons not under discussion) -- one very low noise instrumentation ...
0
votes
2answers
334 views

STM32F7 46 G Discovery setting TIM2 to 1 second

I'm learning to programm on an STM32F7 46 G Discovery board using Eclipse as an IDE and STM32CubeMX. I'm trying to set a timer (currently TIM2) to one second without using an ISR. I'd like to get a ...
-1
votes
3answers
2k views

“Can not connect to target!” using STM32F0 discovery board as ST-Link [closed]

(first posting here so bear with!) Hi, I'm a very novice embedded programmer and have hit a wall trying to use an STM32 discovery board as an ST-Link programmer to an external STM32F051K8T. I know ...
-1
votes
1answer
150 views

Voice encryption over TRRS headphones

-- Edit 2 --- This question is different from Connect STM32 BLUEPILL to the TRRS connector on the computer But just in case for not falling into double posting I deleted that post. (This post hes ...