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
0answers
7 views

STM32F746G-Disc code examining QSPI flash data transfer consecutively fail/pass by resetting MCU

Programming STM32F746 MCU with below code result change after each time resetting MCU by it's botton or under debug session: ...
1
vote
3answers
106 views

How to increase STM32 Timer (encoder mode) counter value?

I am developing mobile robot. Hear i required to read quadrature encoder.So i am using stm32F401 using 16bit timer(encoder mode) to read the count.After 65535 count goes to 0. My question is how to ...
1
vote
1answer
25 views

Can I download my code from Keil uVision5 or STM32CubeIDE to the STM32F103C6T6 board via FTDI?

Can I download my code from Keil uVision5 or STM32CubeIDE to the STM32F103C6T6 board via FTDI? If yes, then how should I do it? I can't find anything that helps online. If there is no method to do so ...
1
vote
0answers
23 views

Debug and View Registers

I would like to view and analyze the registers in STM32 Embedded Cards(For Ex. STM32F407DISK) in STM32CubeIDE. As far as I know from the user manual and my own experience in CubeIDE, I did see my ...
2
votes
1answer
80 views

Potentiometer ADC noise varies based on position of wiper?

I have a potentiometer setup as a voltage divider like so, where the wiper of the potentiometer gets fed into my MCUs ADC Pin: When I measure the noise of the incoming ADC signal, I get different ...
1
vote
0answers
25 views

STM32CubeIDE : flip pinout not available

I'm using STM32CubeIDE to programm and and configure my STM32 microcontrolers. Right now, I'm designing a PCB with a STM32 on the bottom side. It would make things easier to me if in the pinout ...
1
vote
2answers
75 views

MCU GPIOs internal pull-ups with external voltage divider

I am designing a board based on STM32F7 with a dozen of Digital inputs that need to be 12V tolerant. On the first design, I was using a voltage divider to have the right logical high detection when ...
1
vote
0answers
11 views

How to initialize STM32F401 DMA SPI Slave with an empty FIFO Tx? (Or how to flush it?)

I am using the DMA SPI as slave on a STM32F401. I use: DMA SPI SlaveHAL_SPI_TransmitReceive_DMA(&hspi2, pTxData, pRxData, len}; When I do this a len amount of ...
1
vote
1answer
29 views

Connect the 60 pins male CN6 connector of a STM32 Eval board to a wrapping board

I need to connect some of the pins on the CN6 connector of a STM32H7 Eval board to my own peripheral. I know that this 60 pins male connector is frequently used in the STM32 ecosystem but I have no ...
3
votes
1answer
57 views

STM32 UART Blocking Receiver Not Putting Data In Array, Overrun Flag

STM32F746 Disco, UART1 connected to ST-Link, Win 10, STM32CubeIDE, C, no HAL no other libraries other than CMSIS register definitions. Putty on Windows side to send and receive UART messages to/from ...
1
vote
1answer
50 views

MPU6050 losing orientation

I've been playing around with an MPU6050 (GY-521 board) with a Nucleo L476RG. I think I'm reading the gyroscope correctly, but it seems like the values are only changed when the sensor is moving, and ...
1
vote
1answer
43 views

Can run LTDC by circular buffer for easy graph drawing on STM32F7

In stm32f746G-Discovery, I want to draw moving graph like drawing ADC output on real time. Is it possible to make start address of LTDC buffer shifting in every single new ADC data to having graph ...
3
votes
0answers
63 views

Why won't DS3231 Real Time Clock continue ticking when powered only from VBAT?

I've got a custom STM32 board that uses a DS3231 RTC for date/time stuff. When the board is fully powered I can communicate with the DS3231 over i2c and write and read the time/date. Once the power is ...
1
vote
1answer
20 views

STM32F7 Two Timer Channels Share One DMA Channel

I am trying to write a driver that sends DShot commands to an ESC. I am using an STM32F722 MCU. The DShot protocol is similar to addressable LEDs where 1/3 duty cycle represents a 0 and a 2/3 duty ...
5
votes
2answers
184 views

Choosing register value for NTC with voltage divider

I need some help to choose resistor for voltage divider circuit to read temperature using NTC Thermistor. I'm planning to use STM32 with his 12bit ADC. The NTC I'm using has the following properties: ...
0
votes
1answer
35 views

Understanding shutdown mode in STM32L47

I am using an STM32L476 for my application and want to use shutdown mode to conserve the battery life of the device. I was going through the reference manual and found the following: Shutdown mode: ...
1
vote
1answer
49 views

stm32f7 QSPI (QUADSPI) in indirect mode can't read/write on NOR flash memory

I'm using STM32F746G-Discovery included Micron NOR flash memory n25q128a. In CUBE example we can see this (ReadWrite_IT, Automatic polling): ...
1
vote
1answer
59 views

HAL_I2C_Master_Transmit_DMA sends only one byte

i am having an issue using STM32G4 with I2C DMS and FreeRTOS. I have used the library https://github.com/firebull/STM32-LCD-HD44780-I2C for a long time with STM32F4 and free RTOS and it works ...
1
vote
1answer
93 views

Why does the blue pill STM32 use two oscillators?

I'm designing a PCB and I was looking at the schematic of the blue pill STM32 board to integrate it, and found that there are two crystals on the schematic? Why is this? Also, there is only one on the ...
8
votes
1answer
111 views

Writing bytes to internal flash memory blocks all interrupts on the STM32L0 despite moving the vector table and ISR functions to RAM

The Context I have a embedded system running on an STM32L053 processor that needs to process STM32 hardware timer interrupts regularly and cannot be disabled. These top-priority interrupts cannot be ...
0
votes
0answers
29 views

Cannot generate PWM signal from STM32F40RE

I am trying to generate some PWM signal from STM32F40RE. I configured cube MX as follow: I then set the clock to 72MHz for APB2 where TIM1 is linked with I connected a logic anlyser on PA8 hoping to ...
1
vote
1answer
59 views

Shared storage between microcontroller and Embedded Linux system

I'm working on a project in which I have to solve this problem. I'm not sure if it's unique, but it's certainly not one I've seen before so I thought it'd be interested to get some input from people ...
0
votes
0answers
37 views

STM32 - two-way bus gpio configuring

I need to connect stm32 to a two-way bus. Then I have to read/set bus state (it doesn't matter - using interrupts or not) to get/transmit some pieces of data from the bus. This is a custom bus (8-12 ...
0
votes
0answers
51 views

No sound from I2S codec

I have a STM32F411R Nucleo board and I'm trying to connect it to a CS4245 audio codec to play audio but I can't get any sound out of it. The connections are: Nucleo CS4245 PB10 (I2S3 MCLK) 40 (MCLK2)...
0
votes
2answers
110 views

Communication to parallel (not cascade) 74hc595 over common bus lines

PFA the hardware design. I am trying to send data to parallel (not cascade) 74hc595 over common bus lines from CD4094B. I am sending 16 bits to place first 8 bits in 74hc595(1) and second bits in ...
4
votes
3answers
510 views

What is the meaning of the keyword "__weak" in this callback function in HAL GPIO function?

I have started learning STM32 programming in HAL and I am confused about what this function exactly does: ...
-1
votes
0answers
32 views

Sample and hold amplifier to hold data from pixel array and to pass it to STM32 ADC

For some time I am trying to read the analog values of a pixel array directly by the STM32L4 ADC. There is a significant noise in the readings. I moved to 4 layer PCBs, lower ADC speed, longer ...
1
vote
0answers
19 views

STM32 - SBSFU start at different flash address

I have some trouble with the SBSFU (secure boot and secure firmware update) on a STM32F7. To start with, the STM32F722RE I'm using has 512kByte of flash and the following sectors: Now the problem I ...
2
votes
1answer
50 views

STM32 bootloader break at address issue

I am writing a small application to start a bootloader that checks simple conditions and then jumps to the application memory. The application seems to crash and I am unable to figure out the reason ...
0
votes
1answer
34 views

Does the MCP4725 support clock stretching? Does DMA need clock stretching in STM32F7?

I'm trying to send data to an MCP4725 through DMA in STM32f746ng but I can't. I'm thinking maybe DMA requires clock stretching and the MCP4725 does not support it? (I couldn't find anything about ...
1
vote
1answer
61 views

STM32 custom board debug

I am developing my own board for a basic UART communication to start with and I am unable to flash the microcontroller. I am using STM32F405RT6 and the STLink V3 debugger to program it I have tried to ...
1
vote
2answers
90 views

Building a flight controller

I am new to electrical engineering and am having a very hard time trying to build my own flight controller. I think I have the basic idea as I am going off someone else's schematic. I am using easyEDA ...
3
votes
6answers
528 views

STM32 uC - Allow only specific UUIDs to flash the firmware to

I have developed some code on a STM32F7 uC which I would like to protect to be used by third parties without my consent. The thing is, if I give a company a .hex file, they can flash as much units ...
1
vote
3answers
72 views

explanation schematics stm32

Can somebody explain to me the followings symbols in this schematic? "≫" . See pins 2(BLE_TEST8), 3 (BLE_TEST9), 4/7 (BLE_INT) "⌒NC". See pins connected to USART2_TX/RX "⌒0R&...
1
vote
1answer
65 views

Read MPU6050 over I2C with STM32 nucleo board

I am working with a NUCLEO-F401RE board and I want to connect the accelerometer sensor MPU6050 (on a GY-521 module). The device can be connected to the board over I2C. I connected the 3.3V of the ...
2
votes
1answer
68 views

Best practices for low power consumption (battery operated) I2C pullups

I'm working on a battery powered device and am trying to extend battery life by using a lot of interrupt and timer driven code on the microcontroller (keeping it sleeping most of the time) and putting ...
1
vote
1answer
46 views

STM32 HAL SPI communication issue

I have two STM32F407VET6 boards and I want to use one as master and second as slave and connect them with SPI. I connected the master's SCK to the slave's ...
0
votes
1answer
52 views

STM32G030: more smaller and simpler library for software development than HAL/LL/libopencm3/tinygo?

I'm quite a fan of the STM32G030x6/x8 "line" since it is small and fits most of (my) needs as a more modern replacement to the Arduino platform built ...
2
votes
1answer
54 views

stm32f051 - Config Timer14 to Interrupt only by counter overflow, not by counter initialization

I'm new to the world of embedded and I'm implementing a short, long and two-click on a button logic in my project on a stm32f051 I'm having a problem with the timer interrupt, I want it to generate ...
1
vote
0answers
99 views

Print float value over UART with stm32

I am working with an STM32, more specifically an STM32F401RE - I am trying to send over UART some float value by using the printf command. When I execute the code, ...
1
vote
1answer
84 views

STM32F103: Custom bootloader weird behaviour with stack pointer

So, I am trying to use this USB mass storage bootloader for the STM32F103C8 (64kB flash): https://github.com/sfyip/STM32F103_MSD_BOOTLOADER To compile .hex files for it, I've already set the flash ...
2
votes
3answers
156 views

STM32F7: use more than 16 external interrupts

I'm currently designing a circuit based on a STM32F722ze (datasheet, reference manual). As far as I understand from section 3.11 of datasheet and 10 from reference manual, for each "external ...
1
vote
1answer
49 views

Clock source of an STM32G030K6T6

I am currently designing a GPS tracker and have decided to go with an STM, choosing just STM32G030K6T6 (datasheet). I currently have the following pinout configured: My question is, since there is no ...
1
vote
1answer
38 views

STM32 Low power series microcontroller or STM32WL series with integrated LoRA? (IoT Device)

I'm starting a design of IoT device. Trouble that I have is deciding which setup to use. I would like to someone with more experience can point me to right direction. With everything that is happening ...
0
votes
2answers
74 views

USB pull-up in STM32F103 (D+)

I've got pretty quick question as a beginner in STM32 MCUs. I design my own PCB board for STM32F103C8T6 uC with a couple sensors (connecting via SPI and I2C). I want to include also an USB connector ...
2
votes
4answers
75 views

STM32F7: need of a crystal? Which resonator?

I'm currently designing a PCB based on a STM32 micro-controller (more precisely a STM32F722ZE). The question is : do I need a high speed clock (or is the internal good enough)? If so, what crystal and ...
0
votes
1answer
30 views

How decide which pin right for interrupts?

I would like to ask about I2C sensor's interrupt pins connection to STM32F. I use ADXL345 Ggyro sensor. I would like to connect sensor to STM32F446RE (64 LQFP). But I do not know what I need to know ...
0
votes
0answers
32 views

Get zeros when read flash STM32F405

G'evening! I'm working with a board on STM32F405RTG6 (unfortunately, I can't post a photo of the board). When I try st-flash read filename.bin 0x08000000 0x000FFFFF ...
1
vote
2answers
100 views

Can't debug UART communication properly from GPS to STM32

I'm trying to debug my NEO7M GPS-tracker with STM32H7. NEO chip has UART interface so I set up UART and start coding (Keil v5). It's clear but not for me. What's going on here: NEO7M is transmitting ...
1
vote
2answers
57 views

SD card socket just need to wire with pull-up resistors?

I have a question about Micro SD card and STM32F446RE wiring issues. I saw this schematic from ST forum. I would like to ask, when I wiring STM32F446RE with SD card socket (I mean connection part), ...

1
2 3 4 5
73