Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
55 views

Coding style in STM32 HAL code

While I was reading the STM32 HAL drivers for timers I found this macro: ...
0
votes
0answers
15 views

Changes in FLASH.c for Dual Memory in KEIL IDE for STM32L432 MCU

I am working on the FOTA project with STM32L432KB and need to make dual memory in it. I read about it from the PDF provided by the STM32 MCU application notes. I need to know that at which file I have ...
0
votes
1answer
30 views

Center-Aligned PWM when to trigger current measurement STM32F4

I try to implement the Center-Aligned PWM on an STM32F410 and the current measurement triggers from the PWM generation timer. I have some trouble in finding the right measurement point for my currents,...
0
votes
0answers
60 views

STML052K8U + DS3232: I2C not working

I have a problem, I use a microcontroller and RTC STM32L052K8U DS3232M and I can not connect via I2C with RTC, using the HAL library. From the watch constantly comes NACK. The wizard sends the correct ...
0
votes
1answer
71 views

Most elegant way to detect a button press and switch actions with STM32L4 MCU [closed]

I need to execute certain action depending upon the duration of a button press. This is what I want to achieve, when pressing for: 100 ms : Change brigtness 50 %. (those changing brightness ...
1
vote
0answers
13 views

OpenOCD debugger in Eclipse Neon 4.6.2 Error in final launch sequence

I have been struggling with OpenOCD debugger under Eclipse Neon 4.6.2. Whenever I run the debug configuration I receive below given error message I have been attempting to debug the STM32F417VGT6 MCU....
0
votes
0answers
23 views

Atollic STM32H7 + ST-LINK Error writing data to flash with math library

I am currently working on a STM32H743VIT6 chip (on a self-designed board), with the Atollic TrueStudio toolchain (ver. 9.0.0), using a ST-LINK debugger on a STM32F4-Discovery board (ST-LINK firmware ...
0
votes
0answers
23 views

STM32F429i LTDC + SDRAM Buffer Issue

I have been trying to learn the basics of STM32 LTDC peripheral to drive a 4.3" 480 x 272 LCD using STM32F429IG mcu. I am using the Open429i dev kit by Wavehshare (https://www.waveshare.com/core429i....
1
vote
1answer
55 views

Sync Pulse generator for Composite Video. (Stabilizing video)

I am trying to make a Composite Video Sync Pulse generator with the Help of a micro Controller STM32 , Short story. I have a wireless video source that is transmitted from a VTX So there is a PAL ...
-3
votes
2answers
75 views

THROUGH-HOLE PLATING problem [closed]

I'm making a stm32 board at home. How can I plate through holes low cost at home? Is there a low cost through hole plating kit?
1
vote
0answers
69 views

STM32F407 - how do I run one motor at a time? Why do they ignore delays..?

I'm a newbie. I'm using an STM32F407 discovery board, and I want to control 6 stepper motors using PWM, especially OPM(One Pulse Mode). Till now I've made 3 stepper motors work using Timer 8 (CH1, ...
-2
votes
2answers
87 views

What purpose is to place pins at bottom on STM32 discovery boards [on hold]

What is purpose to have pins (pin header) on STM32 development board places at bottom? Arduino and similar have pins at top so you see the top of board and connect external peripherals by connectors ...
0
votes
1answer
43 views

STM32 Logic level high and low thresholds

I am scratching my head to find what are the minimum voltage for registering a low digital signal and maximum voltage for registering a high digital signal when I configure GPIO pins of STM32 (I am ...
0
votes
0answers
17 views

stm32 nand readback error

I'm using a NUCLEO-L496ZG-P board together with a Samsung K9F1G08U0E nand module. At the moment i'm testing read write operations. For certain values what i read from page differs from what i've ...
0
votes
0answers
55 views

STM32 HAL SD CARD SDIO + DMA

I have a problem with SDIO + DMA. I wrote this part of code to SD CARD using FatFS : ...
2
votes
1answer
56 views

STM32 blackout while flash writing

I tried to detect a blackout on an stm32F405VGT6, which should write a counter inside the virtual EEPROM (Flash). It seems, that the writing process was not fast enough. Now, i cannot initalize the ...
1
vote
1answer
29 views

STM32: Difference between HAL_xxx_Init() and HAL_xxx_MspInit()

When using the HAL (Hardware Abstraction Library) for any of the STM32 micro controllers: For a given peripheral, why do you have to call an HAL_...init() , as well as a HAL..._MspInit() - why are ...
3
votes
1answer
72 views

Receiver issues on STM32H7 interrupt-based SPI

I want to configure a simple interrupt-based SPI slave transmitter/receiver on a STM32H7 MCU. Even though I have quite a bit experience with the older series of STM32 ARM MCUs, it seems that a lot of ...
0
votes
2answers
59 views

STM32 Anti-tamper pin deactivation

I am working on a project that uses the STM32 Cortex M3 LQFP48. There is a pin for Anti-tamper (PC13). I am not concerned with anti-tamper security as this is just a home project. How can I ...
0
votes
0answers
39 views

speed up USB VCP

How I can speed data transfer over USB VCP? I have h743zi-nucleo board. I have already set CDC_DATA_FS_MAX_PACKET_SIZE to 256. Is there any other room for making this thing faster? What can I do on PC ...
0
votes
0answers
22 views

stm32 cube mx vs matlab simulink

I am a begineer to stm32 it has been two months since I began using STM32 for prototype building. I am currently doing a project which involves DSP. Today I came across an application notes in stm32 ...
1
vote
1answer
61 views

Board support driver for custom board - API design - MCU resource configuration

I have got to implement a board support package for a custom board, and I would like to know your opinion about the different approaches of designing board support drivers. My custom board pupulates ...
0
votes
1answer
69 views

FIFO Buffer (Circular/ring buffer) for packet storage

I am developing a simple radio transmission network using B-L072Z-LRWAN1 boards. The network structure is formed by: One board acting as a gateway (where data is received). Multiple boards acting as ...
0
votes
0answers
73 views

STM32 issues getting the ADC to work

I am having some trouble while trying to get the ADC on a custom PCB with a STM32F042 to work. I am using CubeMX to generate all drivers/HAL/... and SW4STM32 to write and debug my code. I am setting ...
0
votes
0answers
57 views

stm32f103 - 16 bit mode SPI reading returns 0xFFFF

I am working with a sensor which communicates through SPI. I am trying to read MISO line, but it returns 0xFFFF. first I send 0xC000 on MOSI and the sensor places 0x0032 on MISO. I read MISO using ...
0
votes
0answers
30 views

HR911105A connector problem!

I have a stm32f407 microcontroller and I want to use ethernet with DP83848 physical layer. Finally I have HR911105A and when I pluged in and program the microcontroller, when I want to ping, it did ...
0
votes
1answer
45 views

BMC150 initialization does not work

I am trying to read ID register of BMC150 using SPI. I am using stm32f103 microcontroller. Serial clock line is OK and the data is sent properly over MOSI of microcontroller. But no response is sent ...
0
votes
1answer
117 views

How to make communication between microcontrollers

I want to make a project where it is necessary to communicate between several microcontrollers in the fastest way possible. For that matter I have 10 micro-controllers whose names will be 1 ... 10: ...
1
vote
0answers
48 views

driving WS2812B using DMA and timers

I am trying to port the octoWS2811 for STM32F103c8T6. This guy hubmartin has already done the heavy lifting and created a library using STM32 HAL. But the problem is that i am unable to get it to ...
1
vote
1answer
93 views

STM32 pulled up GPIO pins work stange after being connected to the ground

I use stm32_smart v2 development board and try make a cheap and reliable 7 bit input interface using 7 jumpers from GPIO to the ground. Internal pull up resistors are used. The first time I did not ...
0
votes
1answer
55 views

Stm32 RTC wakeup from standby

I am using an STM32L053C8 and I am trying to set up an RTC wakeup event, and while I am successful, I can only do it to a max time which is a couple of seconds. I need to put it in standby and wake up ...
1
vote
2answers
68 views

STM32F4 Adjust linker script to save memory for EEPROM emulation

I need to reserve FLASH for my the virutal EEPROM emulation on an STM32F405VGT6: https://www.mouser.ch/datasheet/2/389/stm32f405rg-956214.pdf The pages I need are in Sector 2 and Sector 3 of the ...
0
votes
0answers
25 views

STM32F405VGT6 PGPERR and PGSERR when write to Flash

I have some difficulties to use the emulated EEPROM library from STM32 for an STM32F4 microcontroller. I nearly always get a PGPERR and PGSERR back when I try to write to the flash. PGSERR seems to be ...
0
votes
2answers
88 views

Is this normal for a 12 bit Microcontroller ADC (STM32F303)?

I am using an STM32F303 with a 12bit ADC to read an output voltage using the ِADC itself.. as far as I know the Vref of the ADC is the same as the VDD of the device. Am I right? However, when feeding ...
0
votes
1answer
44 views

STM32 Virtual EEPROM Page Swap not working correctly

I try to save a look up table in the flash memory by using the virtual eeprom library from STM32. I chose a page size of 3kByte to save all the data and it works good until the page is full. Then, the ...
-1
votes
1answer
72 views

STM32F303 Microcontroller open drain GPIO, Can it reach / be pulled up to 5 Volts?

I hope you are all doing well... :). I'm working on a project with pulse width modulation however I need my logical high output to be 5V. However, as my Vdd is 3.3V, the output high level is ...
1
vote
1answer
30 views

SWD AHB-AP access gives ACK_FAULT

When attempting to debug a STM32L471RGT6 chip over SWD, I encounter an ACK_FAULT whenever sending an AP request to halt the core. I've implemented the following sequences which all work correctly, ...
0
votes
0answers
65 views

How do I need to configure USB_FS in STM32H7 to use it as virtual serial port?

I have h743zi-nucleo board and I'm trying to configure USB_FS to use it as COM port. What I do now: In cubeMX: What I do now: Initialize all peripheral in Default mode (this is the dialogue option) ...
4
votes
3answers
570 views

How to test for USB dropouts on STM32F?

I've got a devices that is really strange, it drops USB periodically. By periodically I mean on a weekly (or biweekly) basis. By dropping out I mean windows loses the handle to the driver. Dropouts a ...
2
votes
0answers
59 views

Driving WS2812b with STM32 and PWM strange behavior

First of all I want to say that I'm a complete beginner in circuit design but I really want to do one thing. I'b trying to drive WS2812b LED strip using STM32F103 chip. Since WS2812b use 5V and MCU ...
0
votes
1answer
51 views

STM32 Flash erase sector 0

I have an updatable project with stm32f407. Code produced by cubeMx. Updater code check new update from internet and if is avaliable write main program on 0x08020000(sector 5) and this updater code ...
1
vote
3answers
117 views

STM32F103 - Single pin shorted to VDD?

I have a custom STM32F103C8T6 board. Long story short, the MCU works fine, I can connect to it, program it, read sensors, toggle GPIO etc. The problem is that, one of the crucial pins seems to be ...
1
vote
1answer
166 views

Relation between Mbits/s and MHz

I am trying to communicate with an ADC via SPI. In the datasheet, It is mentioned, that: The performance of the ADC161S626 is ensured over temperature at clock rates of 1 MHz to 5 MHz – DNL +0.8 /...
0
votes
0answers
36 views

SD card won't communicate - STM32

I've implemented the low lever drivers of the fatfs. I tried to write some txt file to an SDHC card, but I can never initialize the card. MCU is STM32F103C8T6. I'm using CubeMX with HAL libraries and ...
0
votes
1answer
85 views

Calculate voltage of a 16-bit differential ADC that gives a two's complement value

I am working with a 16-bit differential ADC and I would like to know the difference between this latter and a single ended ADC especially: How to calculate voltage from the ADC value ? Is it like ...
0
votes
0answers
83 views

Decoding mp3 with Helix lib on Stm32f411

I'm sending mp3 self-contained frames from PC to my STM32f411(Discovery board) via FTDI, on microcontroller I decode frame and send decoded pcm data to external DAC codec(on a board) via I2S. I'm ...
1
vote
1answer
152 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. ...
0
votes
1answer
49 views

stm32f401 I2C does not send byte after repeated start

I am programming an I2C master on a STM32F401 nucleo board. I program it without HAL, just using registers. I am interfacing a peripheral, that has to be read like the following: Start Write ...
2
votes
2answers
273 views

Can one program an STM32H7 chip directly using an ST link/V2

I recently bought an STM32H7 chip, soldered onto a breakout board. I have been trying to program it using the ST-link/V2 using system workbench for STM32. I get the error: "Wrong device detected". The ...
0
votes
0answers
26 views

Do Adafruit libraries for BLE tasks sacrifice performance?

Does the Adafruit_BluefruitLE_nRF51 library (compatible with my arduino UNO) sacrifice BLE speed for functionality and compatibility with adafruit's other devices? In adafruit's BLE FAQ page they have ...