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
0
votes
1answer
41 views

Connecting multiple encoders in to STM32 TIMx hardware counter (using channels 3+4)

I have a requirement to connect 3+ standard rotary encoders (A/B quadrature) into an STM32 - the STM32L072x is the current choice. While I could bit-bang it, it would be nice if I can just use the ...
0
votes
0answers
48 views

Stepper Motor sometimes working fine and other times not

I am experimenting with operating a Stepper Motor that is connected to a Magnetic Encoder. The Stepper Motor is also connected to a Motor Driver, which will be controlled by an STM32F4 microcontroller....
0
votes
2answers
83 views

Output compares triggering function not work on STM32?

I've been trying for 2 days now to get my Output Compare to trigger a function. I've been reading up on it, and there is a callback function that, from what I understand, is triggered when an output ...
1
vote
1answer
53 views

STM32 reading data from digimatic SPC and communication via I2C at the same time

I am working on an application running on STM32, which aims to read data from the digimatic spc protocol (mitutoyo device) and then send the data to the raspberry pi via the I2C bus. The Raspberry pi ...
0
votes
1answer
66 views

Why does 4 wire SPI read operation need me to read MISO line on every transmit operation?

I wish to read a SPI slave device. Here's what I thought the procedure would be like : CS_LOW SPI_Write(slave_address) SPI_Write(register) SPI_Write(0x00) //dummy byte data = SPI_Read() ...
1
vote
3answers
61 views

stm32h743 signed DFU updates

I want to implement signed software updates to my MCU, It is connected via USB and I am using the USB DFU to upload a firmware to it. I want that only signed firmware will be allowed to be uploaded to ...
0
votes
0answers
51 views

STM32: I2C works only sometimes with Interrupts

I'm working on a little project where I need to read the HMC 5983 Sensor with I2C from a STM32F103RB Board. When I tested the sensor with the Hal_I2C_Master_Transimt, everything worked fine. I could ...
2
votes
3answers
136 views

Can I connect multiple STM32 to single CAN transceiver?

TL;DR: This question is about saving unnecessary CAN transceivers by sharing one among 3-4 equal MCUs on a small, single board. Imaginary situation: A board with multiple, equal, CAN-capable STM32-...
1
vote
1answer
76 views

STM32F407 Clock Configuration Order

I have been taking a Udemy course on the STM32F407 and using the Discovery board to go along. However, clock configuration is not covered in the course. After some Googling and nose in the reference ...
0
votes
1answer
115 views

MicroSD with STM32 and SPI mode - pull-ups and EMI filters

In the context of using the STM32F103C8T6 microcontroller I wonder I am thinking about the most practical and relevant method of the microsd application in the device from the point of device security....
0
votes
2answers
68 views

STM32H757I - EVAL BOARD to learn Embedded Systems [closed]

I wanna dive into the matter and learn Embedded Systems. I am waiting for this board. I've read some blogs, earlier posts on this topic, watched some videos and I have a couple of questions: Does one ...
0
votes
0answers
66 views

STM32F401 failed the search for probes ensure that the usb drivers are installed

I have a stm32f401vc discovery card, I can't download and debug the code you can find the error in this picture when I connected the card to my pc here is what I found in Device manager I worked on ...
0
votes
1answer
35 views

Determine if phototransistor is in cutoff

I'm attempting to determine if the following phototransistor HOA1870-031 is in cutoff. The HOA1870-031 we have in stock have the cathode of the IR emitter tied to the emitter of the IR detector (...
0
votes
4answers
258 views

STM32F4 custom board design problem

I designed a PCB with STM32F411RE and a couple of sensors. Before and after mounting components on the PCB, I checked the Vcc and GND pins for short circuit and I did not see any problem. I am using ...
0
votes
0answers
31 views

Do I need to connect anything to LCD VGL and VGH pins?

I'm trying to drive a ER-TFT070-6 LCD using the built in controller in the STM32H7A3ZIT6. I'm in the process of hooking up the signals between the MCU and LCD, and I'm not sure what to do with the VGH ...
0
votes
0answers
45 views

Issues using printf and Serial in Serial Monitor of Platform.io Arduino with STM32

Has anyone else had issues with using printf and Serial together? If I do some printfs then a Serial.println() no subsequent printfs show in the serial monitor. What I discovered was that if I avoid ...
0
votes
0answers
37 views

Cannot launch GDB client

I am new to embedded coding outside of Arduino, so I need a lot of hand holding. I made a custom board with just a STM32 chip (STM32L082) and a LED. I am trying to debug it using GDB (I hear that's ...
0
votes
2answers
91 views

What is difference between STM32 timer channels with N suffix?

For instance in cubeIDE for board L432KC for TIM16 I can select PWM Generation CH2 and PWM Generation CH2N. What is the ...
0
votes
0answers
51 views

Different value of N Pulse signal with STM32 and PWM

Regarding my Post I put a counter in my interrupt, In the output I have a 1000Hz signal which it means I should have 1000 pulses in each second, but I get 100 pulses each second. what is my problem? ...
0
votes
1answer
40 views

STM32F107 Clock configuration and USART problem

My old program (USART section) worked with a 25Mhz external crystal perfectly. I have changed my external crystal to 8 Mhz and multiplied it 8 to have a 64Mhz SYSClock. My timers, PWM and other ...
6
votes
3answers
1k views

Memory To Memory DMA on STM32

According to STM32F407 reference manual page 313, memory to memory mode in DMA is a mode that doesn't need any triggering request from a peripheral and it will happen just after the stream enable bit ...
0
votes
1answer
100 views

Unable to toggle an LED with STM32 Blue Pill

I'm a beginner, and I'm using an STM32 Blue Pill board for the first time. I completed a basic tutorial on how to activate the PC13 pin (on-board LED), but now that I'm trying to get an external LED ...
0
votes
0answers
124 views

Driving DAC MCP4728 with STM32F0

I'm trying to interface MCP4728 with STM32F0. The commands are transmitted by controller and same are received successfully by DAC MCP4728. I2C transmit function also returns HAL_OK on I2C ...
0
votes
1answer
77 views

Enable Timer interrupt after generating N pulse

I need to enable a general timer interrupt after generating each pulse in PWM mode. I wrote this program. I will be grateful if you kindly let me know how to enable timer interrupt. This my SPL ...
0
votes
3answers
84 views

Trying to understand push-pull output mode and open-drain output mode in a MCU's GPIO pin

I have a MCU (STM32H7xx) whose GPIOs, when configured as output, can be configured either as open-drain or push-pull. Before seeing this, I though that open-drain meant hihg-Z, however I don't see how ...
0
votes
1answer
28 views

Strange A3941 motor driver behavior

I'm driving a 12V brushed DC motor using an A3941 full bridge mosfet driver. The setup is controlled using an STM32F407. Since the A3941's logic inputs need 5V, I'm using a MC74VHCT125A buffer between ...
0
votes
2answers
41 views

Can't flash big binaries using dfu-util/pydfu to STM32H743VIT6

I have a board that uses STM32H743VIT6 (same as OpenMV4) that I can't flash binaries bigger than (500-600KB) to it although it has 2MB of flash. Smaller binaries seems to be flashed OK, I am using the ...
0
votes
2answers
85 views

New STM32L433 pins pull high??? Damaging opamps

I have an STM32L433, fresh from RS components. I soldered it to my board. PA6 is connected to the output of an opamp - INA181A1. There are another 2 INA opamps on the board, connected to other pins. I ...
0
votes
0answers
58 views

Temperature sensor DS18B20 always reads 85

I'm using a temperature sensor DS18B20 with STM32F103 Bluepill, but this sensor always gives me 85°C which is the power-on reset value of the temperature register. I'm so confused because it worked as ...
0
votes
2answers
67 views

Stm32 minimum setup no crystal

I'm trying to run my first circuit with a stm32 microcontroller. For debug reasons I soldered a minimum setup. -No external crystal -Only capacitors I connect SWD Debug: -NRST -SWDIO -SWCLK -Power 3....
0
votes
0answers
29 views

Problems with STM32F746G-Discovery using another display

I encountered a problem during the configuration of a STM32F746G-DISCO Board for the use with another display. Initial situation: I unsoldered the connection between the STM32F7 Board and the default ...
0
votes
1answer
37 views

PWM edges issue on a STM32F0 micro

I have a STM32F051R8 (STM32F0 discovery board) I am trying to use to generate a PWM using a timer and change the pulse width at runtime. My code is: ...
0
votes
1answer
87 views

ARM CMSIS Matrix conversion to a uint16_t array

I'm working on the STM32L476RG and I'm looking to perform some matrix operations on the controller, using C and CMSIS-DSP for ARM. I have 2 uint16_t arrays which I will be converting to matrices and ...
0
votes
1answer
99 views

STM32F429 SPI pins die out after working for some time

I am working with SPI on STM32F429 to write data on MX25V1006F flash memory. I am not using cubeMX library. My problem is that it works for a while and then suddenly it doesn't work. I have replaced ...
0
votes
0answers
31 views

STM32G4x1 ADC Interrupt/flag when a certain value is encountered?

I am brand new with the STM32 and MCU in general. I am reading from an ADC on a continuous mode with the DMA access to memory. I would like to have some sort of "flag" for when a certain ADC ...
0
votes
2answers
114 views

why does the Stm32f103c8t6 Board need an ST-Link V2?

Well I am starting a course on embedded systems on udemy and it seems I need an M3 or M4 ARM cortex MCU so I can follow on the projects. The course itself recommend the Discovery board, but I was ...
0
votes
0answers
59 views

STM32H7 PWM with DMA not working properly

I'm using the PWM mode within the TIM15_CH1 hardware to create a varying pulse width modulation to run the ws2812B (LED Light strip). Current setup right now is that I have a buffer of pre-calcuated ...
1
vote
3answers
265 views

Send Data With Usart STM32

I have to send data using the usart2 in my nucleo64 stm32f446re board. The type of data I have to send is float but until now I always send uint8_t using this code; ...
0
votes
1answer
23 views

STM32G4x1 Changing polling rate of ADC

I am brand new with MCU and ADCs and would like to build my own oscilloscope. Right now I can capture signals at full speed (7.2 Msps) with the continuous setting and the DMA writes it directly to ...
0
votes
3answers
87 views

How To Save A Matrix In Flash Memory In STM32

i'm new in stm32 and in embedded world in general. I'm using a nucleo64 f446re and I want to save a matrix in the flash memory. Can I use CONST to do this?
0
votes
1answer
56 views

stm32f103: a timer triggering DMA to update another timer's CCR using libopencm3

I'm playing with the blue pill. Here I run TIM2 and enable the DMA on its update event, according to Table 78 of RM0008, the DMA channel I should use is channel 2 on DMA1. Then I want the DMA to ...
0
votes
1answer
89 views

Generate N pulse with a fix frequency STM32f107

I need to know how to generate N pulse with STM32f107 without any external sampling. Could you provide me any good reference? Thanks
0
votes
0answers
81 views

16 bit analog reference voltage design for stm32 chips

I am trying to make custom 2 layer PCB using stm32 microcontrollers for my flight simulator rig. My intention is to use magnetoresistive sensors in the joystick to get 14 or 16 bit signals and ...
0
votes
0answers
27 views

USART DMA misses the input string sequence

I configure my DMA in Normal mode. Here is my code: ...
0
votes
2answers
83 views

STM32 UART send broken frames

I have a NUCLEO-F303RE board and try to send some data by one-wire UART with 57600 baudrate. But frames are sent broken (see images below): How must to be: What I get: I've tried to use different ...
0
votes
1answer
65 views

why does FLASH_ErasePage reset my STM32F103C8?

Here is my program to write with EEPROM emulation in my stm32f103 flash memory. ...
0
votes
0answers
47 views

Wiring JTAG correctly

I'm a bit confused how to correctly wire JTAG input and output. I have my ST-Link and my STM32 microcontroller. Which of the configurations is correct? Pinout St Link || STM32 TDI-----------------&...
0
votes
0answers
34 views

Trying to comunicate my nucleo-F411 with a NOKIA5110 display using SPI and DMA

I did successfully sent data to the display in my main function. Working code. ...
0
votes
1answer
213 views

STM32 Blue Pill connected with both USB and SWD at the same time?

I would like to write some code for the STM32 Blue Pill to use the USB as a serial link. Because I use an ST-Link debugger to program the board, I will need to connect the following: Programming: ...
0
votes
1answer
168 views

Trying to program an STM32 device with ST-LINK_CLI.exe

I have a project developed using STM32IDE, all is well and I want to develop a test script to program the devices in bulk, using the STLINK/V2. To do this I want to invoke ST0LINK_CLI.exe I can ...

1
3 4
5
6 7
68