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.

1
vote
0answers
7 views

Unknown pulsing on STM32L073RZ

I'm working with an STM32L073RZ CPU and Mbed OS 5.12.0 and experiencing an issue that I'm not quite sure how to describe. The processor gets into a state whereby it oscillates a pin (PA_5 which is ...
1
vote
2answers
20 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
41 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 ...
0
votes
0answers
21 views

SIM800 GSM lapse [on hold]

SIM800 GSM have slip when device is immovable and GSM show mistake location to me( when device have movement all thing is good ) Does anybody have an algorithm to reduce these slip?
6
votes
1answer
86 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
465 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
0answers
17 views

How to flash a .hex or .elf file to stm32 through st-link v2 using msys2?

I have started to learn programming stm32 blue bill from that book Beginning STM32 Developing with FreeRTOS, libopencm3 and GCC . But i am stuck at the part of st-link integrating to download the hex ...
0
votes
2answers
54 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
36 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
0answers
29 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
0answers
25 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
79 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 ...
19
votes
9answers
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
43 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
23 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
28 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
29 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
83 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
62 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
67 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
49 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
31 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
0answers
16 views

Using use the STM32F103C8T6 board with the Arduino [migrated]

last two days I am trying to programm my blue pill with arduino ide, helplessly... Actually, I managed to install simple blink program, but after that, all other attempts ended up with: ...
-2
votes
1answer
56 views

STM32 Usart Forwarding [closed]

Please I cant figure it out this whole week about How to program a usart forwarding function in Atolic for Stm32. The function is like Aduino IDE's "uart2.write(uart1.read());" for Stm32 with Atolic ...
-2
votes
0answers
22 views

uc1609 LCD driver

How to connect LCD Display HEM19264-05 with UC1609C LCD driver to stm32l476g-disco? I'm confused by the UC1609C. I could not find any datasheet on UC1609C. There are unusual pins. I found just pinout ...
0
votes
2answers
105 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
45 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
17 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 ...
0
votes
0answers
43 views

STM32CubeIDE HAL_Delay not working

I am trying to toggle the GPIO port 8 with: ...
0
votes
0answers
28 views

Does the STM32F469I DISCOVERY board allows the user to perform Digital to Analog Conversion?

I have a question on DAC (Digital to Analog Conversion) capability of the STM32F496I DISCOVERY board, which uses the STM32F469NIH6 (216 pins) microcontroller. According to the microcontroller's user ...
1
vote
2answers
74 views

STM32 Memory Alignment unclear

As I'm reading the Mastering STM32 Book, I came across this graphic describing the memory map So what I'm trying to figure out is whether my understanding of memory is wrong, or if the graphic is. ...
2
votes
1answer
56 views

Digital to Analog Conversion with STM32F7 Discovery Board

I am a mechanical engineer interested in Data Acquisition and Closed-Loop Control projects. As a beginner who wants to work with STM32 microcontrollers, I have a specific question about the STM32F7 ...
2
votes
3answers
152 views

What's a opened solder bridge signifies?

I'm new to STM32. Recently I'm trying to understand the schematic of it. I came across the term "soldering bridge" default: open. Does it signifies that the two pins are opened (which means not ...
0
votes
0answers
48 views

Cube IDE : Error: unknown type name 'HAL_StatusTypeDef'

I am taking code from a stm32f0 series and trying to convert it to a stm32l4 series dev kit. I have already changed the necessary addresses and include files that I needed to migrate, but I keep on ...
0
votes
0answers
27 views

Eclipse Plugins for STM32Cube-IDE

I am trying to explore this new IDE, but also have no hands on experience with Eclipse IDE.. "The new IDE is fully compatible with Eclipse, meaning STM32CubeIDE supports the thousands of plugins for ...
0
votes
0answers
49 views

PX4FLOW (Optical Flow sensor) - Powering with 5v. Does it work with OmniNXTF7 I2C SCL/SDA at 3.3v?

I want to use PX4FLOW with OmniNXTF7 flight controller. This flight controller has 3.3v I2C SCL/SDA and no PullUp-resistors. I use the PX4FLOW only with I2C port, with 5v at VCC (not 3.3v). Does ...
1
vote
0answers
34 views

how correctly disable wakeup pin in STM32f0?

We need to disable wake up pin in some time, during stm32f0 run. we have used HAL_PWR_DisableWakeUpPin(PWR_WAKEUP_PIN1); but it doesn't work. Should we do ...
4
votes
5answers
1k views

Heap allocation on a microcontroller

I'm working on STM32F303VC. How does the heap allocation work? When I declare the arrays outside main() it allocates them on the heap - SRAM - 0x2000000 and forth in this MCU. But what determines the ...
-1
votes
2answers
50 views

External oscilator on stm32f030

I am not sure if I calculated R_ext right. I am planning to use this oscilator. According to the document the calculation for R_ext is: ...
0
votes
1answer
45 views

DMA, Interrupt and UART connection in STM32 for detecting chararcters

I am trying to make a project and am planning to use DMA for my UART from one STM32 to another STM32. Here are some details of what am I using: Chip: STM32F107RB debugger and programmer: Atollic for ...
0
votes
1answer
32 views

Basic timer that doesn't work STM32L4

I'm trying to use timer2 in STM32L475 but it doesn't start firing the interrupt at all. I would like to configure the timer for a minute. ...
0
votes
2answers
97 views

How does the DMA know “when to send” the next byte?

I'm transferring data from memory to a peripherial's register in an STM32 uC. For example take 20 bytes. I understand that after sending all the 20 bytes, the "Transfer Complete" interrupt will occur. ...
1
vote
1answer
31 views

Using the logic analyser in Keil uVision5 with an stm32 nucleo F030R8

as the title says, I'm attempting to use the logic analyser that is built in uVision5 with the above development board. The debugger that I am using is the on-board ST-Link Debugger. I've looked at ...
1
vote
1answer
44 views

Configuring STM32 timer as frequency counter

I am trying to configuring one of the timer inputs on a STM32 to behave as a frequency counter for an external signal. The STM32 datasheet describes a "input capture mode" in section 17.3.6 (page 342) ...
0
votes
2answers
41 views

Stm32 SmartCard Reader with 3 slots

Trying to implement smart card reader with 3 slots on stm32f072. The reader for one card works quite well, but as soon as I try to add two more slots - there are problems. Knowing that CCID supports ...