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
1answer
93 views

Program a Wi-Fi Module using a STM32F4

I am desgning a sensor which reads data from 6 transducers and is desired to send them over Wi-Fi to a host pc. Because of space limitations, I have to design my own pcb with microprocessor instead of ...
0
votes
0answers
52 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 ...
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 ...
3
votes
2answers
56 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
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 ...
9
votes
4answers
45k views

STM32 ADC conversion using HAL

I am trying to learn how to use "new" HAL library from stm32. When I try to do simple ADC conversion it works just one time, but then it stops converting. I suppose End of conversion flag does not get ...
2
votes
1answer
33 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 ...
1
vote
1answer
43 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
3answers
144 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 ...
0
votes
1answer
148 views

STM32F407 Flash sector auto cleared after programming

I've tried to do flash logger function for my device based on STM32f407 and found some problem with flash: If I uncomment function for clear sector, after load program my dummy data on first page is ...
3
votes
0answers
124 views
+50

Is JTAG faster than SWD for debugging on an STM32F with STLINK-V3SET programmer?

There is a new STLINK-V3SET programmer that someone dropped off on my desk today. It supports USB 2.0. My thinking is that if SWD is the bandwidth limiter in the signal chain then a new programmer isn'...
0
votes
0answers
51 views

Cant select NUCLEO-L433RC-P in Keil

I recently received NUCLEO-L433RC-P, which I want to start using with the Keil application. I installed the STM32L4xx_DFP package, but I can't select the board under the "Manage Run-Time Environment" ...
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
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 ...
-1
votes
0answers
24 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 ...
0
votes
0answers
63 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
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 ...
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....
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 ...
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 ...
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 ...
1
vote
3answers
2k 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 ...
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 ...
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
75 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 ...
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
1answer
93 views

Understanding parts of this BLDC driver schematic

I have a couple of question on ST's STSPIN32F0A 3-phase BLDC driver and I was hoping someone can help me figure out some parts of the schematic. The schematic shows the STSPIN32F0A (pg. 1) connected ...
0
votes
2answers
96 views

I2C Communication Between STM32F3 and SSD1306

I am trying to write data to my 128x32 OLED display. I researched it online and found that it has the SSD1306 controller connected to the display. It uses the I2C protocol and it only has 4 pins (VCC, ...
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 ...
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
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
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
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 ...
-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?
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 ...
0
votes
1answer
63 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
1answer
39 views

STM32F4 Discovery Board Control Register Value Problem

In Atollic TrueSTUDIO I open an empty project without any settings. ...
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 ...
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
363 views

STSPIN32f0 - does anyone have experience?

I'm trying to write custom firmware for STSPIN32f0 and I'm desperately stuck STSPIN32f0 is a system-in-package based on STM32F031C6. My code works fine on STM32F031C6. My code fails miserably both on ...
2
votes
4answers
3k views

Can I use just plain GCC to compile program for Nucleo?

I have a ST Nucleo F446RE. It's an ARM board which provides quite an interesting interface for uploading programs - it presents itself as USB storage device and the program can be copied on it, which ...
1
vote
1answer
10k views

How to use SysTick_Handler (an HAL library function) in order to have a time base

In actual I need to measure speed of motor. I have followed a procedure, i.e use Encoder mode to get pulses from sensor. count number of these pulses in 1 sec~1000msec using SysTick_Handler(ISR). ...
-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: ...