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

What does the bluepill mean by fading the PC13 onboard led?

N:B:. I am a 15 years old boy (and a beginner), so please answer me thoroughly :) . So I love arduinos and their alternatives, and recently I bought some STM32f103C ARM 32bit boards, they are ...
0
votes
0answers
45 views

An STM32 based board with some confusing configuration [on hold]

This may come a little bit confusing but I will try to explain as clear as I can, thanks in advance. Now, there is a board (custom board not a commercial product) which shaped as a circle with ...
0
votes
0answers
21 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
45 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
34 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
145 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
117 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 ...
-1
votes
0answers
25 views

libopencm3 bus communication (spi/i²c) fails with more complex programs

I'm using libopencm3 on a STM32F103C8 and have a (to me) strange behavior. I successfully used the spi (spi_xfer) and i²c (i2c_transfer7) subsystem (independent from each other). But as soon as the ...
3
votes
2answers
57 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 ...
-1
votes
0answers
45 views

Stm32 GPIO registers acts weird

I was programming an stm32f4 development board and while I was looking at the debugging window I realized that GPIO registers acts weird.Especially IDR changing even I did not activate them. I dont ...
0
votes
1answer
28 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
54 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
35 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
39 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
1answer
47 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
76 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
48 views

How to upgrade StdPeriph drivers for STM32F103 project [on hold]

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
46 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
38 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
0answers
64 views

Using stm32 to control a water tank using custom capacitive water level sensor issue? [closed]

for the last few months i've been working on a school project using STM32 and Nanopi to control water level of a fiberglass tank with a custom made water sensor (capacitive) . I've had all kinds of ...
0
votes
1answer
32 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
76 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 ...
26
votes
8answers
4k 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
71 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 ...
1
vote
2answers
78 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
39 views

STM32F4 Discovery Board Control Register Value Problem

In Atollic TrueSTUDIO I open an empty project without any settings. ...
-1
votes
1answer
42 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
56 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
35 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
64 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
61 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
126 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
74 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
56 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
118 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
538 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
58 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
58 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
36 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
34 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
87 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 ...
20
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
45 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
25 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
33 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
34 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
107 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
63 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
75 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
60 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 ...