The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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

STM32 ADC & HAL - EOC selection for polling continiously

I will ask my question via linking some other question asked by someone. S/he got his/her answer on how to solve, but I am more interested on WHY? Thanks in advance. Link to the question: STM32 ADC ...
1
vote
1answer
52 views

Logic high preventing sleep mode STM32?

I have a fairly simple question that I can't find the answer to in the datasheet or reference manual for an STM32L073RZ. Put simply: is there a mechanism within the processor that prevents entering ...
2
votes
1answer
53 views

STM32F411VE Custom bootloader USB de-Init issue causing Jump to app fail

I'm developing a custom a bootloader on STM32F411VE MCU which must download a .bin file from USB key and flash it into the application sectors of flash memory. Following the examples provided with ...
2
votes
3answers
422 views

Serial communication between STM32F4 and PC -USART-

The question I will ask now is not about how to solve something, I am currently able to make the connection as it will be mentioned below, but my problem is I really did not understand WHY ? Thanks in ...
1
vote
1answer
180 views

Put saved data in flash of STM32 at the end of all other sections

I want to emulate EEPROM over flash of STM32F103. Is there a way to use all free flash instead of the only page? How can I initialize starting point of my EEPROM emulation so that it would be after ...
3
votes
2answers
78 views

CAN bus TX failing in a strange way

I have been trying to pass CAN frames between two different CAN busses using two different CAN channels on a STM32F746 MCU. The system always fails and freezes up in TX when it is supposed to be ...
0
votes
1answer
45 views

Where does STM32CubeMX generate AF GPIO initialization?

i was wondering where does CubeMX (when you export it to an IDE such as Atollic) generate GPIO initialization for alternate functions such as Timer capture pins, UART pin ect. (we are talking about ...
0
votes
2answers
72 views

Custom bootloader passing control to application code in STM32

I am trying to understand that if for STM32F405 MCU a custom bootloader is used on the MCU then each of the two projects for the custom bootloader and the application code will have their own 'startup....
0
votes
1answer
66 views

STM32CubeMX not showing the resolution in ADC

I am trying to use ADC in stm32f103 micro-controller. I use STM32CubeMX to configure the ADC. Based on the videos I gave seen on YouTube, I must be able to configure the resolution of the ADC (8, 12 ...
0
votes
0answers
59 views

Error executing Application from BootLoader in STM32L475 (IoT Board)

The bootloader should jump to the Application after some verification. For now lets assume it straightaway jumps there. I am working on B-L475E-IOT01A2 device, which uses ARM M4 Cortex. I am using ...
0
votes
2answers
149 views

STM32F4 host powering USB device using VBUS

I am trying to design an STM32F411 USB host. I will be connecting it to a USB MIDI device. The USB MIDI device I am using is AKAI Professional MPK Mini MKII which only has 1 USB port both for power ...
1
vote
2answers
100 views

Which flash sector to write into?

I need to save working configuration of my embedded application to the flash memory. I am using STM32f746 uController. According to the datasheet. There is 8 sectors on the main block of the flash ...
0
votes
2answers
76 views

How to upgrade StdPeriph drivers for STM32F103 project [closed]

I have an old project which is built on using "StdPeriph drivers" for STM32F103 MCU and Keil environment. It uses various drivers for gpio, adc, can, dac, dma, i2c, spi, tim, uart etc. As these ...
1
vote
0answers
62 views

Battery Monitoring IC communication via SPI

I am trying to use Max14921(Battery monitoring system) to measure voltages of 16 cells of a battery pack. I have used stm32f103c8t6 as mcu. The problem is that I could never communicate with IC. I ...
0
votes
1answer
55 views

I2C in STM32F103 longer data

I am trying to use PCA9539 as an IOexpander for my project. I have a STM32F103 connected to PCA9539 via I2C. The problem I have is to write into PCA9539. Based on the datasheet I should to send (1) ...
0
votes
1answer
36 views

STM32F0, DRV8840 and GPIO Problems

Today I tested a DC driver with a STM32 MCU. The schematic is like this: I have a problem with the ENABLE Signal between the DRV8840 and the MCU. When the DC Motor is disconnected, I toggle the EN ...
0
votes
1answer
84 views

Does Hall flow sensor require an optocoupler when using STM32 MCU?

I'm using an STM32F103 to measure water flow through a pipe using Hall flow sensors. My power supply is 12V DC to 5V/3.3V DC. STM works with 3.3V and Hall sensors with 5V levels. I've configured the ...
28
votes
8answers
5k views

Why do we need a bootloader separate from our application program in microcontrollers?

Why do we need a separate program in the same flash program memory of a microcontroller, specifically STM32F103, which is called a bootloader? What is special about it to keep it separate from the ...
1
vote
2answers
228 views

STM32F4 Discovery board only works in DEBUG mode

I generated my project with STMCUBEMX with CAN, SPI, I2C peripherals and did some coding on top of it. Code basicly polls the CANBUS, stores data to some IC over i2c and sends the processed data to ...
2
votes
3answers
204 views

STM32 (SWD) printf not working

I'm new using STM32 microcontrollers, I have been trying to use the printf tracing in my code without success, anything is printed on the console. I can start a debug session, I can place breakpoints ...
2
votes
1answer
43 views

STM32F4 Discovery Board Control Register Value Problem

In Atollic TrueSTUDIO I open an empty project without any settings. ...
-1
votes
1answer
46 views

STM32F7_Discovery_Boards Digital Pin

Do any of the pins on CN9 or CN13 on the STM32F7 Discovery Board have a constant 3.3 or 5V output?
0
votes
3answers
73 views

STM32F7 NVIC INQUIRY

I'm trying to connect the NVIC interrupt to handle a keyboard, nonetheless I'm having troubles becuase two keys are connected to the line0, which use the EXTI0_IRQHandler, I saw in the stm official ...
0
votes
1answer
39 views

What pins on a nRF51822 do I connect to a STM32 programmer?

I want to be able to program a nRF51822 with this programmer but I'm not sure what pins on the actual chip I should use, and all the guides seemed to be using a different chip
0
votes
1answer
135 views

ST-LINK Version 2 on Arch Linux not working

IMAGE LINK: https://ibb.co/yfFvwQP I am using Arch Linux as my main os. I have just started embedded dev and am setting up my env. I am having an error connecting to my St Link V2 debugger as shown ...
2
votes
2answers
76 views

Isolated CAN transceivers as a CAN bus extender

I am designing a system to 'hack' into a CAN bus. My first idea was to split the target CAN bus, terminating both ends into isolated CAN transceivers, and use a MCU to pass packets between the buses ...
-1
votes
2answers
138 views

STM32F4 series: what does the '->' operator? [closed]

Reading some C files related to programming an STM32F4 series Arm controller, I found the following instruction: ...
3
votes
2answers
134 views

How to solve Keil compiler 'Error: L6218E: Undefined symbol' on STM32

I am trying to run a simple tutorial (external interrupt example) on my NUCLEO-F746ZG board. I use STM32CubeMx software version 5.2.0 and Keil software version 5.28.0.0 as compiler. I get the ...
0
votes
0answers
68 views

stm32 audio generation

Currently I am working on a project with a stm32f302c8t6 mcu which I monitor an analog signal. I generate a tone using dac when the signal exceeds a certain treshold. My problem is that as soon as I ...
6
votes
1answer
132 views

STM32F303: Clock sporadically dies away

The clock of my STM32F303CC (links to datasheet; for reference manual see here) sporadically dies away, resulting in highly decreased code execution speed (see picture below). I already replaced the ...
4
votes
1answer
589 views

STM32 crashes when FreeRTOS project is converted to C++

I am experimenting with STM32F303RE Nucleo board on SW4STM32 with FreeRTOS v10.1.1 and I was thinking of parsing NMEA sentences by adding the characters to a buffer using UART interrupt and then ...
0
votes
2answers
72 views

Problem with the reset circuit for a MCU

I need help by understanding the problem with an existing MCU circuit concerning the Reset PIN (STM32 Cortex M0+: STM32L071K8): It seems something in the circuit is wrong, since it works only when I ...
0
votes
1answer
64 views

STM32F437 UART doesn't work at 3.6V~4.2V(lithium battery)

led is on but UART doesn't work when using lithium battery. stm32f437 UART can work at 5V(power supply). ...
0
votes
2answers
140 views

ILI9486 Display Init FSMC

I have ILI9486 based tft display to initiate via 16bit FSMC. I did gpio, fsmc, and lcd initialization. ...
0
votes
1answer
48 views

CAN Problems with MCP2515, MCP2561 and Rpi

I work with some devices which used STM32 MCU and MCP2561. Theses devices talks on a CAN Bus. Everything is ok. But when i plug a Raspberry Pi with a MCP2515(Spi) and a MCP2561. I see a lot of ...
2
votes
0answers
90 views

Powering down parts of a pcb to conserve power, is it possible? Any caveats?

I'm building a USB 2.0 bus-powered STM32F429-based audio device that is able to run in a stand-alone mode from a phone charger, or running as a USB device when connected to a computer. To comply with ...
22
votes
10answers
7k views

STM Microcontroller burns every time

I have some experience working with stm32 but I only ever used them on dev boards. I recently tried to solder stm32 and stm8 on a simple break-out board and program them with my st-linkv2 clone. On ...
0
votes
1answer
63 views

CAN Rx Line between STM32 and MCP2561

I discover a problem on my design, with a STM32F042K6 MCU and a MCP2561 Can Transceiver. I can send some frames on the CAN Bus but i can't receive any frames. When i put my scope probe on the CAN Rx ...
0
votes
0answers
31 views

What to do if LPTIM1 used as a Timeout wakeup unit in STM32L476 takes too long to wake the MCU from Stop 2 mode for the first time?

I am using STM32L476. I want to enter the Stop 2 mode and use LPTIM1 as a Timeout wakeup unit. The code is written such that the LPTIM1 wakes up the MCU from Stop 2 mode after every second. The ...
0
votes
1answer
66 views

Clarification on interrupt triggered DMA transfer in an STM32

I'm trying to learn about DMA and its use in the STM32L4S9VI platform. One thing I'm confused about is what binds the DMA transfer to any one specific interrupt? In the below example, I'm curious ...
0
votes
0answers
37 views

Which sector of flash to store “user configuration” bytes in? STM32F303K8

I'm working on a project in which I'd like to store about 10 "configuration" bytes somewhere in flash, as I'd like to have the same firmware run on different boards with different settings. It doesn't ...
2
votes
2answers
118 views

Problems with understanding memory map STM32F446RE

I have a problem with the understanding of the memory map of the STM32F446RE. In the Datasheet is the system memory (0x1FFF0000 - 0x1FFF7A0F) 30,51kb big. But in the AN2606 the system memory is ...
-1
votes
2answers
82 views

how to find GSM service level of a IP-connection?

I am using a GSM modem to send data to a remote server over TCP/IP connection. I am using STM32F103 for the software. I want to connect 3 LED's with the 'F103 to indicate which connectivity and ...
2
votes
1answer
115 views

How to program STM32f411RE chip?

I've developed a prototype using the STM NUCLEO (NUCLEO-F411RE) board and now that I am happy with design I am now in the process of testing everything together on my own PCB. All the other components ...
0
votes
2answers
112 views

What is the difference between IQRn 0 and IRQn 1?

I am using STM32CubeMX to program my chip. Essentially I have a timer that i am trying to set to one ms, and every time that timer reaches a ms I want to toggle a pin. My question is that does it ...
0
votes
0answers
35 views

Usart2 on STM32F401RE is not working after cutting st-link

As I know, Virtual COM port of ST-Link connection is connected to Usart2 on a STM32F401Re. When, ST-Link part is still attached everything is working fine on Usart2. However, after cutting ST-Link ...
0
votes
2answers
161 views

STM32 MCU gets shorted

I've been trying to make a simple audio player using the STM32F302CBT6, however, the VCC and GND pins of the MCU keeps on getting internally shorted when a 3.3V power supply is provided and a faint ...
0
votes
1answer
85 views

STM32 Reset Reason - detect debug reset

In my project I want to set the configuration of the RTC based on the reset source. If a reset is done via hardware reset NRST, the RTC shall be set to zero.If there was a reset due to wake up from ...
0
votes
0answers
82 views

STM32H7 - MDMA with DCMI

I am using DCMI peripheral on STM32H7 to capture an 320x240 monochrome image (1 byte per pixel) and DMA to transfer it to D1 SRAM. DMA uses FIFO, Threshold: Full, Data width: Word for both source and ...