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

2
votes
1answer
39 views

External power to STM32F4 Discovery board

I've recently finished programming the STM32F429ZI DISC1 board. I'm fairly new to this and now want to move away from connecting it to the PC via USB and power it up via a power supply. At present I ...
0
votes
0answers
26 views

STM32L151C6U6 Evaluation Board [on hold]

I will be doing a project that I will have to debug STM32L151C6U6 Micro-controller using JTAG/SWD interfaces. After a long Googling I was unable to find a discovery/development board for ...
-1
votes
1answer
72 views

What are situations to use an actual EEPROM over using emulated EEPROM in flash?

I am using stm32 which offers EEPROM emulation on its flash. ...
0
votes
1answer
102 views

Wrong signal on MISO line [on hold]

I am trying to setup communication between my MCU and slave chip but here are the results from logic analyzer: I have basic knowledge of SPI protocol but as far as I know, data should be sampled at ...
0
votes
0answers
18 views

Difference between external event mode versus external interrupt mode for stm32 [duplicate]

I am configuring GPIOs for stm32f0 MCU using CubeMX. I encountered this "GPIO mode" setting. It seems that GPIO mode can be triggered by "External event mode" or "External interrupt mode". See image ...
0
votes
0answers
26 views

Difference between enabling and disabling usart global interrupt on stm32 [on hold]

I am using STM32CubeMX to configure USART on STM32F0. I encountered this setting (see image below). What is the difference between enabling and disabling the USART1 global interrupt? What exactly ...
0
votes
1answer
36 views

ST L4 series datasheet specifications and 1 wire

When you open STM32L476 specification on the The DFSDM peripheral supports (42/232) it says that "Manchester coded 1 wire interface support". Does this means it supports 1-Wire bus like for DS18S20 or ...
1
vote
1answer
52 views

STM32 HAL SPI Remap Single Pin

I would like to know if it is possible to remap a single pin of a multi-pin (SPI) peripheral? For instance, I have a STM32F107 and I want to use UART4, SPI3 and Ethernet. PC10 = UART4_TX - Remap ...
0
votes
0answers
69 views

STM32 prototype unable to connect to PC using ST-Link/V2 SWD

Circuit Diagram Background & What I have tried. I have wired wrapped this setup myself using a fresh STM32F411RC MCU from digikey (on a proto-advantage LQFP-64 to DIP-64 breakout board). I ...
0
votes
2answers
57 views

Will this P channel Mosfet switch work from a 3v3 GPIO

I'm designing a circuit that I can reuse over again to switch loads of different kinds from around 8-30v and from around 0.5-15amp. Like a universal Solid state relay but I want my own custom circuit ...
-5
votes
0answers
21 views

using mc55 with stm32f10x [closed]

I'm working on gsm with siemens family device mc55 via stm32f10x. But,I cannot find any simple code or example about initiate mc55 on stm32f10x. Has anybody run into this in the past? Any thoughts ...
1
vote
1answer
81 views

Can the STM32 DMA speed be controlled by the timer?

Is it possible to have the DMA controller on an STM32 transfer each packet only when a timer update event occurs or can you only control the start of a whole chunk of DMA? The use case is (on an ...
2
votes
1answer
74 views

STM32 “USB Device” vs. “USB OTG HS” - what is the difference?

I recently downloaded the stm32 app for MCU search and found out that for example STM32F429 has "NO" in "USB Device" peripheral, while it says "YES" in "USB OTG FS" and "USB OTG HS". Which is quite ...
0
votes
1answer
37 views

Can't get STM32 DAC to output anything

I'm trying to make a generic STM32F103 board output a sawtooth wave on DAC channel 1 but I'm getting nothing. The code is very straightforward and I've endlessly studied the datasheet, Google, various ...
3
votes
3answers
364 views

STM32 non floating point unit chips

I would like to know how STM32F2 chips and below that doesn't handle floating point unit, perform float operation. I read here, it mentions that the floating point is handled by library functions, ...
1
vote
1answer
42 views

STM32F103 PLL Ready Flag Never Set

I am trying to set PLL as my system clock source upon startup of my microcontroller, STM32f103 I have commented all the defines in my system_stm32f10x.c ...
0
votes
2answers
80 views

Can this stm32f0 interrupt routine that activates on every byte received be fast enough for 6Mbps?

I am using the STM32F0 discovery board. I am looking at this tutorial on UART with the STM32F0. http://letanphuc.net/2015/09/stm32f0-uart-tutorial-5/ ...
0
votes
1answer
53 views

PAL data with ADC?

Is it possible to receive PAL video data from ADC of STM32 for example ? I made a program which convert analog data to digital data (tested with analog accelerometer). It is the same for PAL video ...
0
votes
0answers
56 views

STM32 Encoder mode + Input Capture on the same timer

I want to use CH1 and CH2 in encoder mode and also CH3 in input capture mode, all this using one timer (TIM3). Is it possible? I didn't found any warnings in datasheet. I looked at the block diagrams ...
0
votes
0answers
22 views

Appropriate conditions to use the various boot modes in stm32f0 [duplicate]

I am reading the datasheet of STM32F0. 3 boot modes were mentioned; boot from User Flash memory boot from System Memory boot from embedded SRAM I am confused when should one use which mode. Under ...
0
votes
1answer
64 views

Which boot mode does the STM32F0 discovery kit use?

I am using the STM32F0 discovery kit which looks like this; In the MCU datasheet, it mentioned about 3 boot modes; boot from User Flash memory boot from System Memory boot from embedded SRAM ...
1
vote
2answers
353 views

When would be occasions to use a lower clock given that high speed would always be preferable?

I am using STM32F0 MCU and STM32 CubeMX configurator. I encountered the clock configuration below When would be occasions to use a lower clock speed? Wouldn't faster always be preferable?
-2
votes
2answers
89 views

STM32L4 USART problem

I tried to develop an USART example on stm32L476 discovery kit, but I've got some problems with the HAL driver-s, I think I'm using wrong USART interface Clock enable, and USART GPIO Clock enable ...
4
votes
2answers
89 views

Is this a fake STM32F105? There is no parts listed with that many pins

I am working with a device that has a 100 pin qfp it is labeled: ARM Z STM32F105R8T6 But this part only seems to be available in a 64 pin package. The R in the number dictates that it is a 64 pin ...
0
votes
1answer
113 views

STM32F4 Flash memory programming

So I have STM32F4 board and long story short - I am stuck at putting a user defined number (0 - 60) in FLASH memory, so after restarting, I could use last-used-settings. How do I allocate correct ...
5
votes
1answer
497 views

STM32F4 : Floating point instructions too slow

I'm working on an audio application on the Nucleo F411RE and I've noticed that my processing was too slow, making the application skip some samples. Looking at my disassembly I figured given the ...
-1
votes
1answer
63 views

Getting started with STM32F4 with Keil

I bought a STM32F410RB Nucleo board which has a STM32F410RB Cortex-M4 MCU. I'm trying to program it with Keil but I didn't find any example for my board. All examples are for other nucleo boards. I ...
7
votes
2answers
99 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
60 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
96 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
61 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: \$ \Large ...
1
vote
1answer
117 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
32 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
86 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
35 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
62 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
85 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
146 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
86 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 ...
0
votes
0answers
34 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
36 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
54 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
477 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
66 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
73 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
157 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
62 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
81 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
76 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
479 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 ...