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.

learn more… | top users | synonyms

0
votes
0answers
28 views

Getting started with STM32F4 with Keil

i've buy a STM32F410RB Nucleo board which have a STM32F410RB Cortex-M4 MCU. I'm trying to program it with Keil but i didn't found any example for my board. All examples are for other nucleo boards. I ...
0
votes
0answers
56 views

STM32F4 project [on hold]

I have a projet where I must program STM32F4 to receive video data and capture data when I press on a button. I work on STM32F4 discovery (with STM32F407) with libopencm3 library. I never worked with ...
6
votes
2answers
80 views

5V tolerance on VBUS sensing input

I am designing a device around the STM32L476. My device is primarily battery-powered, but has a USB port that, when plugged, I want to use as an alternative power source (through a 3.3V regulator) to ...
0
votes
2answers
88 views

HAL Uart Transmit Timer resolution 10µs [on hold]

Following this Topic that I started Uart Transmit 1µs I want to be able to transmit a value trough Uart each 10µs . My baudrate is 115200,Clock = 84Mhz And as shown in the previous topic,At a ...
0
votes
2answers
43 views

STM32 Built-in LCD Controller Interface?

I have a bit of a specific question here: I am the proud owner of an STM32L476 microcontroller. According to the datasheet (page 41), this specific MCU not only has a built-in LCD controller, but it ...
0
votes
1answer
53 views

STM32F103 GPIO and wrong configurations

I have a few questions about gpio. First What if two push-pull pins with high level connected? My point of view is that there is no way for current and nothing bad will happen. And reading of pin ...
0
votes
1answer
40 views

Vref_cal on STM32F3xx ADC

Is there a function to read the Vrefint_cal in Cubes HAL libraries? I'm using the F3xx. I'd like to measure the supply voltage of the micro. The formula given in the reference manual is: ...
1
vote
1answer
105 views

Is the STM32 DMA destination address restricted?

I'm using a stm32f446 and would like to use the TIM4_CH2 request with the DMA1 in ...
0
votes
0answers
29 views

Dividing external clock signal for reciprocal frequency measurement on STM32

I'm trying to increase the resolution when measuring frequency reciprocally (measuring the period), on an STM32F303. I guess one way is to use DMA to transfer the contents of the IC and average it in ...
0
votes
2answers
63 views

STM32F411 SPI slave enters debug infinite loop

I've connected two NUCLEOSTM32F411RE together, and trying to send an ASCII letter from one PC to another PC in Simplex mode from master to slave. When I send a character the slave enters a routine in ...
-3
votes
1answer
33 views

size of program in ROM

I am newbie. I want to copy my full program from ROM to RAM using DMA operation. But how can I calculate the size of my program?
0
votes
0answers
52 views

Feasibility of HID gyroscope

I'd like to add a gyroscope to my phone because, like many other from china, it doesn't have a gyroscope. I'd mainly like to use it for VR (with cardboard). How feasible do you think it is to create ...
0
votes
1answer
48 views

Not being able to enable PWM using the HAL TIM library on stm32f0

The goal is to use the PWM feature of stm32 HAL TIM libraries to light up 4 leds on pins 0, 1, 4 and 5 I have generated the following code using CubeMX: ...
3
votes
4answers
111 views

Best practice for implemeting bare metal or lightweight OS flash file system?

I am looking at flash devices that are available for rewriteable data storage, and it's clear that they need either some sort of translation layer for an overlying file system (such as FAT) or a ...
2
votes
2answers
68 views

Direct frequency measurement with two hw timers

In what modes would I set two timers to directly measure frequency on an STM32F303 microcontroller? Right now I set up one timer in ETR mode and gate it with systick software interrupts, but I would ...
-3
votes
0answers
48 views

stm32f407vg not working when connected to my PC

I have a stm32f407vg discovery board that I connected some wires to. I connected them to the right GND, +5V, and +3V near the ST logo, so there might be a short circuit? It's also connected to my PC. ...
0
votes
0answers
28 views

Maximum SPI clock frequency of CP2130 USB-SPI bridge

I have a board with SMT32F103 MCU and CP2130 chip connected to MCU's SPI2 channel. CP2130 is master only, so I configure MCU's SPI to act as a slave with software slave management. There are no more ...
0
votes
1answer
26 views

Setting up PWM on PA.3 of the STM32F091RC Nucleo board

I am using STM32Cube and the HAL libraries to set up the PWM. For initializing Timer 2, I have: ...
0
votes
1answer
50 views

Why should I connect Vbat pin of stm32f37x to VDD when there is no battery?

I'm using a STM32f373x and with no battery. The product specification on page 77 says it should be connected to VDD. I have made a test with Vbat pin left open and the micro is working. Why I should ...
13
votes
3answers
428 views

STM32F4 and HAL

So I've been experimenting a while with the STM32F407 (I'm new to ARM) and decided to write a simple app using the HAL libraries since it seems ST has discontinued the Standard Peripherals Libraries. ...
1
vote
1answer
40 views

stm32f207 ethernet interrupts problem

I installed RTX (rtos from Keil) and Ethernet library from STM for stm32f207 MC. I configured UDP using ethernet + LwIP as in examples from STM. Without RTOS UDP works fine. I send and get packets ...
1
vote
1answer
53 views

STM32F10x RTC Clock Source

I have been trying to implement calendar functionality on my STM32f103C8 using the built in RTC peripheral. Going through the RTC section of the reference manual, it states that the clock source to ...
0
votes
2answers
116 views

STM32: UART Interrupt is triggering without any flags getting set

I am using the UART4 module of an STM32F105. I'm using the RXNE ("RX Buffer Not Empty") interrupt to grab data as it comes in. It's working as expected. When the RXNE interrupt is enabled it also ...
1
vote
0answers
59 views

Context Switch without interrupt disabled?

I developing a program on ARM M4 where I don't actually want to disable interrupt even when doing a context switch. If any interrupt occurs during context switch, is it possible to handle it soon ...
0
votes
1answer
66 views

is stm32f103 programmable via micro usb?

I would like to buy following thing to start. I've got tired of arduino and after some research I came across this. STM32f103 I am wondering what do I need to start programming this board? Is it ...
2
votes
2answers
70 views

Systick interruption doesn't trigger when handling another interrupt

I am experimenting with the STM32f4 discovery and i tried to use a delay (based on SYSTICK) in an ...
5
votes
2answers
206 views

CMSIS vs HAL vs Standard Peripherals Library

So I'm switching from PICs to ARM and I bought an STM32F4 discovery board. So far I understand that to program it you can either access all registers directly in memory (obvious way) and also there ...
1
vote
1answer
66 views

STM32 Standard Peripheral Library (SPL) - Modify SPI Configuration

I am using the STM32 SPL library with an STM32F103C8 microcontroller. As part of the project, I am using the SPI1 peripheral to interface with an SD card. Initially the SPI speed must be kept under ...
1
vote
0answers
30 views

The right way of relocating vector table using vector table offset register for STM32F4 series.

The right way of relocating vector table using vector table offset register for STM32F4 series. I am working with HAL libraries previously there used to be a function called "NVIC_SetVectorTable" I ...
3
votes
3answers
290 views

STM32 USB host will not return from reset request

Note: I have edited this question from its original content since I was able to find a deeper cause/symptom for the problem. I have re-written it to focus on that instead. I am using a pretty basic ...
0
votes
1answer
53 views

STM32 systick interrupt is not triggering

Please someone help me with my code. I am newbie and trying to turn off LED inside systick handler. I tried with GDB but systick handler is never triggered. What am I missing? ...
0
votes
0answers
53 views

Setting up Input Capture on STM32F405xx To Measure Period/Frequency

I'm trying to setup Input Capture on Timer 9 CH2 on an STM32F405xx I've tried to follow the instructions from the reference guide and only changing the input from CH1 to CH2: For example, you ...
0
votes
1answer
51 views

Setting up a counter on STM32F405xx

How do you correctly setup Timer9 (TIM9)on an STM32F405xx to count pulses on rising edge? Is there a special configuration for the pin to the timer outside of this short example? Here's what I've ...
0
votes
0answers
47 views

Logging data using STM32F401 or STM32L4 nucleo board to SD card

I want to log data from sensor 24/7 and store it to SD Card in fatFs ( every day will be a file ) and the data from this day will be stored there. I learn about SDIO and s little bit about fatFs but I ...
1
vote
1answer
172 views

Clearing USART (UART) interrupt flags in an STM32?

I am using an STM32F105 to communicate with a Linx GPS chip using a UART. If I don't use interrupts (if I just poll the RX flag) then it works just fine. But I'm getting unexpected results when ...
4
votes
1answer
146 views

STM32 DMA Transfer bridge between 2 uart ports

I am using a stm32f103 and I'm trying to simply transmit all data received on 1 uart to another uart and vice versa. When using 2 terminal programs it works great, everything I type gets transmitted ...
0
votes
2answers
172 views

STM32F407G-DISC1 not working if not connected to pc

I have a Discovery board DISC1 version (february 2016 revision). I had programmed a Discovery board before with no issues. The ones that I more recently bought, the DISC1 version, have a strange ...
-3
votes
2answers
102 views

Generating 8 analog signals from microcontroller [closed]

I want to generate 8 analog independent signals from a microcontroller, such as a BeagleBone or STM32. In my research, I found that I can use an external multi-channel DAC and interface it with the ...
0
votes
1answer
54 views

hse external oscilator on stm32f030

According to ST AN2867 Oscillator design guide for STM32, the oscillator circuit requires a Rext resistor There are minimal boards with stm32f030f4p6 on ebay, aliexpress... It looks that rext is ...
2
votes
3answers
95 views

Hardware for IP Camera Project

I intend building a custom IP camera for home use, project goals are: Videos are stored remotely in real time (storage somewhere else in home or cloud server) Live steaming from internet Video data ...
1
vote
1answer
190 views

Unable to send data to Thingspeak using ESP8266 and STM32 Nucleo

I am using ARM's mbed compiler to program my STM32 Nucleo. I am also using an ESP8266 as my WiFi module. My connections are as such: Rx of the ESP8266 is connected to D8 on the Nucleo. Tx of the ...
0
votes
1answer
53 views

How to use ST-LINK Utility

Could someone be kind to explain some features inside ST-Link Utility. What is the unit of measurement for size, how it works? What does represent data width? Changing data width presents ...
3
votes
0answers
109 views

SPI loopback with DMA

I am using STM32F4 discovery board and I am attempting to get SPI loopback with DMA. I have successfully got an "SPI-only" loopback running, but now I want use DMA in addition with the SPI, here are ...
2
votes
3answers
185 views

What happens on STM32 when multiple (UART) Interrupts are triggered at the same time? is there an interrupt stack?

I'm implementing a uart daisy-chain communication scheme with a Cortex M4. When a node receives a byte over one UART, an interrupt is generated (RXNE) and the byte ...
0
votes
0answers
88 views

STM32 if-statement timing

I'm working on a porject where I need to communicate with an USB PHY chip. I am using a STM32 microcontoller. (stm32f446ret6, ...
3
votes
3answers
381 views

Is this power switching circuit ok? Switching between VIN and USB

I am using a STM32F105FBT6 to create a CANbus analyser. I plan to have a simple PC application that displays the CAN messages and lets the user put messages onto the Bus. I also what to be able to ...
0
votes
0answers
75 views

STM32F4 VCP CDC characters missing in terminal

I'm trying to use my STM32F4-Discovery to communicate with the ESP8266 via Virtual COM port. When I send commands, they are transmitted to the ESP8266 without problems. However when the response is ...
0
votes
1answer
62 views

mdot Analog in: how to connect Grove temperature sensor?

I am starting with multitech mdot product. I am confused about how can I use the mdot pin PB_1 (linked to A0 in UDK) to read my Grove temperature sensor value. Is it enough to simply connect it to ...
2
votes
1answer
126 views

Regarding STM32f103 bootloader

It is given in STM32 system memory boot mode APP note that bootloader stored in the internal boot system memory is programmed by ST during production. Does this mean that if I buy a new STM32 ...
3
votes
2answers
243 views

Is this STM32F based CAN bus circuit ok?

So this is my first time moving away from Arduino based projects and I am now planning a project using the STM32F105RBT6. It is a simple CAN bus analyser with some leds. I may add some extra i/o in ...