Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
4
votes
1answer
7k views

STM32F74x Flash page size and sectors

I am writing data to the internal flash of a STM32F746 and I'm wondering what the difference between pages and sectors is? And what is the purpose of using sectors instead ? Notice that I'm very new ...
4
votes
1answer
3k views

VBAT pin and external crystals in STM32F030R8T6

STM32F030 Datasheet here. On page 14, it's mentioned that: "System clock selection is performed on startup, however the internal RC 8 MHz oscillator is selected as default CPU clock on reset. An ...
4
votes
2answers
381 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 ...
4
votes
3answers
4k 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 ...
4
votes
1answer
11k views

STM32F407 FSMC interface with TFT LCD

I've written some code to make a FSMC connection between my STM32F407VET6 and a TFT LCD 240x320 pixels. I was checking this several times, however I can't recognize what's wrong. I'm using 16-bit data ...
4
votes
1answer
2k views

USB termination on STM32F437xx

I'm about to layout the USB connection on our boards and wondering whether the termination resistors and pull-up on D+ are necessary when using the STM32F437xx. The datasheet tells: ...
4
votes
2answers
15k views

STM32 USART with DMA — which interrupts to use?

I'm working on firmware for an STM32F103 which is communicating over RS232 at 115200 baud with a motor controller. The motor controller (a Copley Xenus XTL) operates on a "speak when spoken to" ...
4
votes
3answers
7k views

STM32 SPI half duplex (1-wire Bidirectional) problem

Update: see my answer for fix. I'm trying to read 4 byte from a SPI-compatible slave (MAX31855) in 1-wire bidirectonal SPI half-duplex. Here is my code [SW Controlled SS] [SO->MOSI] ...
4
votes
1answer
10k views

Is it possible to program an STM32 with an Arduino?

I have one of these: http://www.ebay.com/itm/111297094334?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649 I know an USB-TLL dongle is usually used to program it, but I don't have one and I ...
4
votes
2answers
126 views

STM32F power supply sequencing with 5-volt tolerant pins

The STM32F427 is powered by 3.3V but many of it's pins are 5V tolerant. This allows external chips to drive it's logic I/O pins at 5V without damaging the device. I have a board design with at ...
4
votes
3answers
10k views

Is it possible to use ST Link USB for UART Communication?

I am using STM32L1 Series Discovery board and want to do uART communication via same UART port that is Used for Embedded ST Link V2 . Embedded ST Link uses USART1 of STM32L100CT6 and Mini USB is ...
4
votes
1answer
536 views

Why is this hex file different than the code programmed onto the device?

I have a design using an STM32F105. My application written in C; using Eclipse and gcc. I have been using Eclipse (with OpenOCD and an ST-LINK/V2 programmer) to write the firmware to the devices. Now ...
4
votes
1answer
4k views

HAL + DMA + UART = STM32 crash

I'm currently working on a project which involves communication between a STM32F303RE (Nucleo board) and a classic GSM/GPS SIM808 module plus other peripherals. I want to use the DMA + UART of the ...
4
votes
1answer
2k views

STM32F0 Interrupt Debugging

Issue: I'm having an impossible time debugging why one of my interrupts isn't working. I'm trying to setup a hardware interrupt on PA3, but as soon as I initialize it, the interrupt triggers and then ...
4
votes
1answer
3k views

Unable to compile STM32F4 code sample with Eclipse

I'm trying to compile a simple STM32F4 sample using Eclipse with the GNU ARM Eclipse plugin from http://gnuarmeclipse.livius.net/blog/. I'm getting the following errors: and the structure is as ...
4
votes
1answer
216 views

STM32F415 weird I2C behaviour

I am using a STM32F415RGT6 embedded in the 1Bitsy Board. I want to set up the I2C Peripheral in order to read some data from a sensor. I am using the stm32f4 standard peripheral library. My example ...
4
votes
1answer
1k views

Is there a preferred encryption scheme for encrypting firmware builds on external flash?

I have a product that is going to be deployed in large numbers, and I want to maximize the trouble that someone is going to go through to reverse engineer it (a high level of security). It is an ...
4
votes
1answer
9k views

Use STM32 interrupt with FreeRTOS

I'm confused in using HAL-defined interrupts with FreeRTOS. I'm trying to implement "6.3 Deferred Interrupt Processing" in the guide of FreeRTOS, but I don't know how to do it. The problem is how to ...
4
votes
1answer
423 views

How can I detect a safe eject of mass storage device on STM32?

I use usb module of STM32F103C8T6 to be a mass storage device, which allows user to edit some config files in the project. I want to exit mass storage mode as soon as the user eject the disk, I tried ...
4
votes
2answers
2k views

LTDC data starvation during simultaneous SD-RAM and NOR Flash access with STM32F429 rev 3

Application details: SDRAM is used as the LCD frame buffer. Memory for 2 LCD frame buffers are allocated(double buffering) in SDRAM. LTDC will be always accessing one of the frame buffer in the ...
4
votes
1answer
479 views

ADC works with pots but not with piezos

I have ADC on stm32f429 with 3 channels turned on(writing data with DMA). Though I suspect this question may be not STM32-specific, probably a general ADC question. THE "ANSWER" I found "...
4
votes
2answers
9k views

STM32 Timer Internal Clock Source

As I understand, the internal timer clock source on the STM32(F4) microcontrollers can be either APB1 or APB2. However, I can't find which timers get which clock. I already found ST AN4013, which ...
4
votes
1answer
2k views

Problem with I2C EEPROM communication

I have a STM32L MCU connected to M24LR64E, an I2C EEPROM. Previously i had this setup working but then i changed some things (layout, firmware) and somehow i screwed the I2C and it is not working now. ...
4
votes
4answers
30k views

How to enable serial emulation through USB in a STM32F4 Discovery board?

I've been searching for this and still haven't found anything about it. This board connects directly to the host PC with a USB bus. Is it possible to emulate a serial port in this case?
4
votes
2answers
1k views

Uart / Usart: use Rx-pin only

I am designing a board with an stm32f722 MCU (64 pin version) and I can't afford to waste / not use any GPIO. My question is following: Is there an option to only use the Rx-pin of a uart / usart so ...
4
votes
1answer
937 views

ADC driver design for oversampling

I'm interested to sample an AC signal in the range of 5kHz - 20KHz with the STM32L432KC microcontroller. This microcontroller has a hardware oversampling feature, i.e it can take the average of ...
4
votes
2answers
2k views

STM32F4: WWDG interrupt fires as soon as it's enabled

I'm doing some coding on an STM32F411 board, used the CubeMX & HAL Libraries for laziness. I'm trying to get the windowed watchdog (WWDG) up & running, and doing the very basic version (non ...
4
votes
1answer
2k views

STM32 UART USB communication with PC

I'm trying to set up my first project on an STM32F4 and I encounter a problem which consists on how to pass the measures I took from the MEMS accelerometer from the STM32F4 to the computer. I'm using ...
4
votes
1answer
638 views

Receiver issues on STM32H7 interrupt-based SPI

I want to configure a simple interrupt-based SPI slave transmitter/receiver on a STM32H7 MCU. Even though I have quite a bit experience with the older series of STM32 ARM MCUs, it seems that a lot of ...
4
votes
2answers
5k views

STM32F103 flash memory start address

I'm trying to write a linker script for my first firmware for STM32F103C8T6 microcontroller. I have an example script that works. What I'm trying to understand is why it works. The linker script I ...
4
votes
3answers
463 views

smt32 f10x invalid characters over uart

I'm currently working on a quadcopter using the STM32F103. Instead of using the provided Std Periph Driver which is big I'm creating my own Periph Driver which is object oriented which also helps me ...
4
votes
1answer
636 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 ...
3
votes
5answers
885 views

STM32 cannot reach individual registers and pins as PIC

I used to work with PIC and now I need to use STM32 chip. I was using HAL library but it gave me some problems so now I want to use it without HAL_Library. There are some questions I could not get any ...
3
votes
6answers
2k views

What instruction on the STM32 consumes the least amount of power?

The ADC module of the STM32 is used in my application which is very sensitive to power consumption. In this application, the ADC is required to work only at 20 samples per second. Using the DMA uses ...
3
votes
4answers
1k views

How to calculate 4 MHz crystal trace width on PCB?

I have no idea about how to draw crystal trace on pcb. I have stm32f0 chip and 4 MHz external crystal and 15 pF capacitor. Can you help me that how to get suitable trace for crystal trace? Should I ...
3
votes
6answers
3k views

16-bit or 24-bit converters?

I wanna build some DSP effects on, for example STM32F4 processor, with frequency 96 or 192 KHz. Are 16-bit converters (ADC and DAC) enough for that kind of operation? Can I hear a diffrence when ...
3
votes
4answers
5k views

VBAT circuit explanation

I found this circuit in STM32F401VET6 schematic: As you can see, VBAT line has a lot of 100 nF capacitors. Is it there to mimic a battery? If yes, won't it be better to put a reverse leakage current ...