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
30 views

While loop for function call for enabling I2C interrupts seems to be behaving weirdly

Trying to understand why the while loop is behaving weirdly. HAL_MasterReceiveInterrupt() enables the control bits for I2C and ...
0
votes
1answer
36 views

Incorporating RTOS into a simple sensor interfacing project for learning purpose

I am trying to switch to embedded from a software test role, and been working on learning about STM32, and almost finishing up writing drivers for I2C which I used for interfacing with a sensor. I ...
-1
votes
1answer
19 views

Can we program and debug STM32F401C via SWD interface using STM32 Cube IDE and STM32CubeMX?

I am planning to use STM32F401C microcontroller for my project, so I am in the process of gaining knowledge on it. I am planning to use the SWD interface to program as well as debug the ...
0
votes
1answer
31 views

Getting a NACK after reading 1 byte from MCP9808 temperature sensor

I am implementing drivers for I2C interrupts for STM32F401RE and looks like the API for transferring the data seems to work. But for receiving, I see that I'm only able to receive one byte. I am ...
1
vote
1answer
31 views

How to recieve data over SPI as a master device?

Working on Serial data protocols using STM32 (bare metal coding, not using any HAL libraries). So far I've configured the board to act as master and send data to an IC and also configured two ...
1
vote
2answers
50 views

What is the use of NRST pin in STM32F401RCT6?

What is the use of the NRST pin in STM32F401RTC microcontroller. I am using the SWD interface to program and debug flash memory of the controller. I am finding NRST pins in both microcontroller as ...
1
vote
1answer
74 views

St link v2 and stm32f401rbt

Hi i am designing my stm32f401rbt6 board i have stlink v2 which is common and cheap : I used blue pill (stm32f103),programming is done with 3.3v,gnd,swclk and swdio.So can i do same process with ...
1
vote
2answers
57 views

Interfacing stm32 with MAX232

I am interfacing MAX232 with STM32F030k6. I have very recently found out that Max3232 would be a better choice, because it works with 3,3 volt. But I am eager to know if UART reciever pin of the ...
0
votes
1answer
52 views

power mosfet with stm32

I started this circuit with stm32. But it doesn't work properly. When I set zero to all four pins and I don't want any movement, the voltage of 3 volts is at the two ends of the motor again. Or if I ...
3
votes
0answers
42 views

Getting an ACK failure right away after writing slave address in interrupt mode for I2C [STM32F4]

I see that once slave address is written in the interrupt handler, I get an ACK Failure right away, but when I do the same thing with polling approach, I do get an ACK and goes on to read off the ...
0
votes
0answers
20 views

I2S DMA interrupt gets fired but no data is available

I'm trying to read the I2S stream between a Raspberry Pi and a Hifiberry DAC with a STM32G071 and was able to implement the I2S DMA with the associated interrupt (or at least I think so). But ...
0
votes
0answers
46 views

Capture GPIO pin values with STMA32 and DMA

I am trying to capture all GPIO_C port pin values at a time when PA0 pin goes low. I am using STM32F091RC micro-controller. But I cant figure out why ...
0
votes
0answers
31 views

STM32CUBEIDE stuck in Reset_Handler when attempting to debug

I'm having some trouble debugging my STM32. Since last weekend, I had to rebuild my Ubuntu 19.10 workstation from scratch, so all of my tools are newly installed and at whatever the latest version is ...
4
votes
1answer
8k views

How to understand a microcontroller's name?

I want to know how to get the information about a microcontroller from its name, like the STM32F407VG. I know that the F407VG has got some information about the STM32 discovery board, but not sure ...
0
votes
0answers
24 views

STM32 USB device is not recognized by PC

I have a Nucleo-F746ZG and an F429ZI board, both of the board can be recognized by PC as a USB device via ST-LINK USB port. However, due to project space limitation, I have to detach the ST-LINK and ...
1
vote
1answer
124 views

Strange noise at peaks of measured sine waves STM32F103

Please look at this picture: I'm using STM32F103, a popular Blue Pill module. What you can see in the picture are three signals, from bottom: green - AC voltage of 14V RMS, measured with step down ...
5
votes
1answer
97 views

Measuring pulse durations with microsecond precision or better

Problem I'll be receiving pulses and want to know the relative times of pulse start/end with microsecond precision (or better). Pulse characteristics: pulse frequency: probably 1Hz to 10Hz pulse ...
1
vote
1answer
65 views

Turning potentiometer changes other potentiometer's value(STM32)

I have finished building my DIY simulator pedals for PC hacking together a 2-pedal set and adding a third. Pressing the Gas pedal. All good Pressing the brake pedal.All good However when pressing ...
1
vote
0answers
24 views

STM32f103 NRF24L01 Communication Problem

I am trying to apply communication between two stm32f103c8t6 with NRF24L01 modules. And using uart with usb to ttl module to reach putty terminal. I am using KEIL and for generating code CUBEMX. Here ...
0
votes
1answer
54 views

CAN bus malfunction on STM32F3

I create applications for STM32 F303RE for communication with the instrument panel. I managed to connect everything but I have some problems. I'm not sure if it's due to bad code or good performance. ...
1
vote
1answer
47 views

NAK in CAN bus for STM32F3 uC

I have a problem with the NAK on the CAN bus. On STM32F303RE I wrote a code for communication via CAN bus with car dashboard (Instrument Panel Cluster). The communication works, I manage to receive ...
0
votes
1answer
38 views

STM32 external voltage monitor / watchdog - worth it?

I'm building a device that will have STM32F750, and now thinking about stability in case if power or software will misbehave. As per topic - is it worth it to have an external voltage monitor and ...
0
votes
0answers
44 views

UART communication between two STM32 boards

I am learning a bit of serial protocols using the STM32 Nucleo board(bare metal coding). I have managed to get it working with PC where I can send and receive messages and do actions on board using PC....
1
vote
0answers
36 views

STM32F4 DSP noise with inbuilt ADC and DAC

I'm trying to perform signal filtering with STM32F407VGT. I've set up the ADC and DAC to work synchronously, triggered by a timer at 42kHz, and using DMA. The idea is to process half of the buffer ...
1
vote
1answer
49 views

Checking interrupt flags for UART data receiving and transmitting on STM32

I'm trying to develop a UART receiver/transmitter for an academic project. For now i developed the UART continuous data receiving part and it works quite well. Here is the code: Interrupt file: ...
0
votes
0answers
18 views

stm32h753 rtc resets after power down (vbat is connected)

I am using a stm32h753 and stm32cubemx, and trying to run the RTC module on VBAT. To do this I have connected a battery to the MCU. RTC is connected to LSE. Next, I set the RTC in my code and then I ...
2
votes
0answers
51 views

CAN bus traffic is destroyed for unknown reason

I am a bit stuck with connecting several STM32F405 with BeagleBone black via CAN bus. Strange things happen when I connect 3 stm32 and 1 BB. I have checked that BB works perfectly with any ...
0
votes
0answers
17 views

ADC / DMA only triggers once before setting OVR high STM32F446

I am trying to poll a block of sensors and load the data into an array via the DMA but the ADC polls only the first pin and then stops polling and sets the overrun flag high. I have implemented all ...
0
votes
0answers
26 views

STM32F4 read protection cause MCU hang

I've faced a problem using read protection on STM32F412. When read protection enabled from Level 0 to Level 1 MCU hangs and does not recover after the reset with reset the pin, only after a power ...
0
votes
0answers
39 views

How to calibrate internal RTC of STM32 chip? RTC clock synchronisation or digital smooth calibration

Using a Stm32f078 controller, I want to achieve accuracy in RTC. How to implement the RTC synchronisation in code or digital smooth calibration? I don't want to use any external signal source.
0
votes
1answer
42 views

STM32F4 Independent Watchdog (IWDG) not triggering as expected

Im trying to understand how Independent watchdog really works and i wrote a piece of code that runs on STM32F411VE Eval board. I believe i have configured the Watchdog Timer correctly according to ...
0
votes
0answers
44 views

STM32CubeIDE issues with CMSIS-DSP library files

I have been trying to add the Library file libarm_cortexM4lf_math.a in the Eclipse based STM32CubeIDE as shown in the pictures below. But the linker is not able to find the library, and drops the ...
0
votes
1answer
55 views

How to design a circuit that the input signal type(positive or negative) can be selected via software configuration

Firstly, Hello to all, I am trying to design a circuit for automotive application that circuit will read positive and negative input signals in the same pin via selecting the type of input in the ...
0
votes
0answers
24 views

I have stm32f407vet and one joystick and need to read x and y values through same adc channel

I want to use only one channel adc1 and they have different modes in0,in1,in2,in3,.....I want to read X and Y values from PA0 and PA1 respectively using only adc1 and to store them in different ...
0
votes
1answer
36 views

Nokia5110 LCD user's manual

I am confused when searching for a user's manual for Nokia5110 LCD. I've found User manual ET LCD5110 with This has the same pins with different placement; therefore I don't know whether I have found ...
0
votes
0answers
33 views

Proteus gives unrecognized attribute 17 for stm32 Hello World in C

Here is my simple C program for the stm32, I tested it on QEMU, it flashes the led successfully. But when I try to load the main.elf file into the MCU on Proteus, I ...
0
votes
1answer
41 views

Generating the hardware delays using timers in STM32F2

I am new to this controller STM32F2xx. Here is my code, this code was given by my senior. It is working, but I don't understand how to calculate the prescaler and ARR value for 1ms delay. Can anyone ...
0
votes
0answers
16 views

vTaskPrioritySet needs extra TaskHandle_t to function

Im using STM32F429I-DISC1 and Keil uVision v5 Ive written a simple example to demonstrate task priority setting using handles however the code only functions if I first delcare an unused TaskHandle_t ...
0
votes
0answers
59 views

Why IBT_2 motor driver is more powerfull with Arduino then with Stm32

The question is why in DIY Force Feedback applications for PC racing simulators, the FFB is more powerfull with Arduino then with STM32. Can it be due to the diffrent logic level that goes from them. ...
0
votes
0answers
43 views

Suitable MOSFET for my application

I need to control 12 small 12V vacuum pumps with 3.3V coming from a STM32 microcontroller. Those vacuum pumps don't draw more than ~1.5A. My idea is to use MOSFETs but I'm having a hard time choosing. ...
1
vote
0answers
22 views

How to pick clock speeds for a CS4270 codec?

I'm in the process of designing a circuit which includes a Cirrus CS4270 codec and a STM32F405 running as a DSP. I'm trying to define my max usable settings, which would be running at Fs = 192kHz. I'...
0
votes
0answers
45 views

Connecting single MP1584 buck to a STM32, Stepper and DC motor drivers, 3 Servo motors [closed]

According to the requirements of an electronic system, I have connected two MP1584 bucks to a STM32F103C8T6, a DRV8825 stepper motor driver, two TB67H420FTG DC motor drivers, 3 SM-S4405S servo motors. ...
0
votes
0answers
36 views

Speed up OTA time for MCU

I'm trying to update the code on a STM32F407vgt06 mcu using OTA. Using python code, the new program is sent in packets of 128 bytes through MQTT and the bootloader on the mcu checks the crc and then ...
0
votes
0answers
20 views

STM32 ADC read temperature channel rarely between timer triggered conversions of regular channel

I am using a timer to trigger conversions of the ADC. The DMA writes the conversion results to a buffer of 512 uint16_t. When the buffer is full, an interrupt is triggered and I restart the conversion ...
0
votes
2answers
52 views

Implicit declaration is invalid warning for __set_BASEPRI() function in Keil

I'm trying to use a __set_BASEPRI() function in Keil to set up interrupts in STM32F407 but it doesn't work when I compile the code and the IDE shows warning "...
0
votes
2answers
102 views

How to drive DC motor with stm32?

I have a 6 volts DC motor and want to control it with stm32 and change the rotation direction. Previously, I designed an H-bridge, I used for the upper part IRF9630 and the lower part IRF630,I ...
0
votes
1answer
75 views

STM32 value optimized out when reading from ADC

I'm trying to read my ADC pin but i'm getting strange results. When my ADC input pin is connected to ground, the result from my ADC is definitely not zero. I know it's somewhere between 1000-2000. ...
0
votes
1answer
48 views

Connecting a parallel LCD using ST7789 with STM32H743VI

I have a STM32H743VI that I want to connect to a LCD display that uses ST7789 with parallel interface (8 or 16 bit), the LCD doesn't have the SPI signals so I have to use the parallel interface. I am ...
-3
votes
0answers
31 views

with STM32( nucleo-f413zh) i need to do modbusRTU communication ,IDE is KEIL and simulator is MODSIM32 [closed]

I am using STM32 (Nucleo-F413ZH).I need to do modbus RTU communication whether it is working over it or not.i have generic modbus library.my issue is that when i dump the code and look at the the ...
-1
votes
0answers
38 views

How to reset STM32F4 after DFU

I am working on a flight controller with a STM32F405 MCU. Outside of debugging, the firmware is updated with DFU over USB. However, once the DFU completes, the MCU stays in DFU mode. How can I get it ...

1
2 3 4 5
56