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
21 views

STM32 'Connect under reset' suddenly stopped working

For the last few months I've been working on a project that used an STM32F030 microcontroller. Due to a shortage of GPIO I've had to use the SW debug pins for other functions. Until recently this wasn'...
0
votes
0answers
23 views

stm32f4xx is not functionaly working after read out protection set

i am using stm32f429 development board and st-link debugger and keil uvision for firmware writing. (for programming i use both st-link utility and keil). My code is working fine untill i set read out ...
3
votes
1answer
48 views

STM32: Minimal USB bootloader circuit

I would like to use the builtin USB DFU bootloader of STM32F107 chip. My MCU is powered by the device, I don't need to use 5V from the USB. So far I have connected pins PA11, PA12 and GND directly to ...
0
votes
2answers
70 views

What does “Low density device” mean? About STM8 / STM32

STM32 and STM8 devices have some types: Low density devices Medium density devices High density devices About what "density" mean? About quantity of periphery or about quantity of flash or ...
1
vote
1answer
51 views

Over voltage GPIO in STM32F

I have a STM32F427 micro controller with 2.5 V power supply. Some input signals are 3.3 V. Does it cause any damage on GPIO or can the STM32F427 tolerate 3.3 V logic?
-1
votes
1answer
60 views

Which boards with ARM(like stm32, etc.) can have GPIO pins which can give 3.8V or higher as an output? [on hold]

I am trying to get pulses from my board. Right now, I am using stm32f103 board. The problem is that output voltage values of pulses are 3.3V but I need at least 3.8V or higher. As I understand ,I ...
3
votes
1answer
66 views

Multiple SRAM on one MCU

I want (have) to use external SRAM on my STM32 and want to have in total 16Mbit. Because big SRAM is quiet expensive, I want to use 2 smaller ones. The question is, how do I achieve this (google is ...
4
votes
1answer
104 views

STM32 Sleep Mode: Interrupt gets executed but the CPU stays in WFI

I'm fairly new to the ARM architecture and I'm working with a board that contains STM32F0 microcontroller and an RF modem, which sends an interrupt every time it receives a message. I'm trying to ...
-1
votes
0answers
92 views

How to program stm32 arm for commercial uses (Without jtag)? [closed]

I have a STM32 microcontroller that I would like to program it for a device that I want to sell it. So I can't use a JTAG or SWD port on the board. Because if I put them on the board, so there is ...
1
vote
0answers
72 views

Using Arduino libraries with ARM based microcontroller [migrated]

A week ago I started messing with LoRa. I got my STM32L151 IM880A kit. Company that provided SX1272 LoRa modem chip (used in kit), provided some libraries, but lots of functionalities are still not ...
0
votes
0answers
27 views

I2C arbitration lost error STM32 F3 Discovery

I'm trying to get the data from the LSM303DLHC accelerometer installed on STM32 F3 Discovery board. Right after sending START condition ARLO (Arbitration Lost) flag in ISR register is set. I have ...
0
votes
2answers
39 views

Register description PCF8574

I have problem with PCF8754 component. The PCF8754 is connected to stm32 MCU and PINS A2, A1, A0 are connected to GND. It means, that 7bit address is 0x20. I want read pin state(P0 to P7), and write ...
0
votes
0answers
27 views

Simultaneous code execution and LCD on FSMC

I am using an STM32F2 MCU and currently successfully executing code from external SRAM on FSMC Bank 1, NOR/PSRAM 1.What I would like to do is also use the LCD on Bank 1, NOR/PSRAM 2 while executing ...
2
votes
0answers
36 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 ...
1
vote
0answers
73 views

Is this communication between 3 UARTs feasible?

I am using an MCU (STM32F0) with 3 UARTs. I would like to know if this UART arrangement is possible. Whatever is received on UART1 will be sent to UART 3 and UART 2 (after some data processing). ...
2
votes
1answer
135 views

STM32F3 I2C communication with Arduino

I am trying to implement the Inter-Integrated Circuit (I2C) of STM32F3 Discovery Board to communicate with 2 slaves (arduino) in my project. However, I cannot send any data to arduino. Here is my ...
0
votes
0answers
54 views

Program stoping at the end of function STM32 Cortex M4F

My program is stopping at the end of a pop operation for my ring buffer on 0x0800e7b6, everytime I reach that part of the program it stops. I am using FreeRTOS, STM32F407IGH6 and Atollic TrueStudio ...
0
votes
0answers
37 views

Hardfault exception on stm32f7 arm microprocessor at RTX thread creation

I'm running a simple RTX thread program as follows. The problem is when it's running on STM32F7 DISCOVERY BOARDv through debug interface, it seems right after running the osThreadCreate (osThread(...
10
votes
4answers
1k views

When should one use an external crystal for this MCU given that the internal oscillator is much faster?

I am looking at this MCU and was wondering if it makes sense to use an external crystal. Extracted from the datasheet pg1, *Clock management – 4 to 32 MHz crystal oscillator – 32 kHz oscillator for ...
0
votes
0answers
49 views

Bootloader jump to main application problem using STM32 with Keil Uvision

I am developing for the STM32F0 using Keil uVision. I have a custom bootloader loaded running at address 0x08000000. I need the bootloader to jump to my main application which I flash at address ...
0
votes
1answer
38 views

SWD Signals multiplexing

I design a pcb with STM's STM32F4 microcontroller and i'm going to use the SWD interface for programming. My Question is: Could those pins to shared (after programming) with other signals on pcb? ...
2
votes
2answers
87 views

Powering MCU from both USB or Battery

I am developing a board that will need both USB and battery power options, non switched. I put this schematic together that I think is right, but I want to make sure I'm not going to blow the chip. I'...
1
vote
1answer
107 views

Addressing registers with I2C STM32F0 HAL libraries

I'm very new to using STM's CUBE and HAL_libraries. I'm using an STM32F0 microcontroler with 32 pins. The schematic for I2C is correct. SO I need a little help here. I have a capacitive sensor (...
1
vote
3answers
503 views

Logging multiple sensors data to SD card at same time: writing hangs up

I'm making a data logger project with 5 different sensors which includes a 3-axis sensor runs at 800 Hz. My requirement is to log the data to an SD card. Here I have to log 3-axis sensor @ 800 Hz and ...
3
votes
1answer
91 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. ...
0
votes
0answers
62 views

STM32 ADC Timeout using HAL

I'm trying to get ADC to work on STM32L151CBT6 micro. I used to work with STM32F series previously and working with ADC using HAL was quite obvious. However I can't get neither DMA or polling to work ...
0
votes
0answers
26 views

Dynamic IP address change using LwIP

I'm using LwIP ethernet stack to communicate my device (based on stm32f429 mc) with PC over UDP. It functions without any problem, but i need to change IP on user request after initializing LwIP. So, ...
3
votes
1answer
72 views

STM32 SRAM to DMA GPIO pins

I wish to transfer a large array of data to 8 output pins that are all on the same port. E.g. a 500 element 8bit array where each bit of each element represents the pin status. So 500 independent ...
2
votes
4answers
552 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 ...
0
votes
0answers
22 views

Netduino (Plus) 2 custom board not showing up in PC

I have made an netduino 2 board and the problem is, it doesn't appear in PC when connected through USB. But when it starts up with boot0 button pressed, it does show up in PC as STM in DFU Mode, ...
0
votes
0answers
49 views

STM32F030F4P6 - Application Not Starting

I have been developing code to control an LCD using STM32F030F4P6 mcu. So far everything was working fine. However I just added some new code with timer, and now when I uploaded the updated code, ...
0
votes
0answers
77 views

STM32 Shutting down debug session

I'm facing with a problem regarding debug session. When I start debug session, after the configuration of USART2 the debug session is closed. Keil message: Cannot access target. Shutting down ...
0
votes
1answer
106 views

STM32F4 HAL I2C only sends address

I am working on a project where I need to set a simple LCD. This LCD use the 'ST7032i' chip to control the LCD. I want to control the LCD over an I²C interface. As controller I use a STM32F4 ...
0
votes
1answer
95 views

Power consumption of Cortex-M7-based microcontrollers

I'm designing a USB-powered microcontroller board, and I'm considering choosing a Cortex-M7-based microcontroller for it (I want a double-precision FPU, along with other features M7 offers). Currently,...
0
votes
1answer
113 views

ADC continuous conversion STM32F103

I'm facing with a problem regarding continuous acquisition of ADC channel in STM32F103. I use the interrupt at the end of conversion to call a callback function to store the acquired value. The ...
0
votes
0answers
65 views

STM32F107 and mems LIS3DH spi data exchange problems

I'm trying to configure LIS3DH chip via SPI interface. Here is my code: ...
3
votes
1answer
42 views

What is the purpose of masking the LFSR value in STM32's noise generation?

I read on section 14.3.8 of the STM32F4 reference manual that you can mask the LFSR output value partially or totally. At first I thought that it was used to change the pseudo random pattern (...
0
votes
2answers
95 views

STM32 starts timing out receiving data UART after reading 1 byte

I am having trouble using the UART on the STM32F103 where it stops receiving data, while not setting any of the error flags. The UART device is an ESP8266 at 115,200 baud. I am sending it ...
0
votes
1answer
56 views

STM32F107 SPI -> UART maximal transfer rate

I am designing a board with STM32F107 microcontroller and AD7680 ADC. What I need is to read data from ADC, increment sequence number after reading each sample, and send ADC values via UART or USB OTG ...
0
votes
0answers
74 views

Question about data transition in UART - Using HAL Drives - STM32F4

*Anwser at the end. I am working with SMT3240G-EVAL, I am working on a project in which I want to be able to send and receive messages using UART. I am starting with embedded development so I don’t ...
0
votes
1answer
75 views

stm32 audio levels

I'm using an STM32F746G for exploring embedded audio DSP. My experiments sound great in headphones but when I connect the audio output to external amplifiers, the signal level is low and there's a ...
0
votes
1answer
79 views

ARM strange behaviour clock speed

I am just starting with ARM and have made a small breakout board with an STM32F030 in TSSOP20 package. I've uploaded the following program which works when the clockspeed of the device is set to 8MHz ...
9
votes
3answers
128 views

Using the ST-LINK Utility to configure the RTC to current time

What I was doing I am using a STM32 microcontroller and for my project I need to be able to send data at specific times of the day (say, at 11am and 2pm). The microcontroller needs to know what time ...
1
vote
1answer
53 views

STM32 Backup registers stability

I'm using backup domain of stm32 for storing date and some important information. The board drives a thermal printer and some other parts that produce interference on power. It seems that sometimes it ...
3
votes
1answer
106 views

Why does usb have start of frame packets?

I'm developing some high-speed USB firmware for the STM32F746VG, and on page 1411 (under section 37.16.3, step 2), it tells me that I should enable start of frame interrupts. I know that usb hosts ...
0
votes
0answers
45 views

STM32 communicating with LCD module HY28B

I'm currently in trouble with displaying something on the HY28B LCD module . I configured my LCD module in 16bits mode by soldering the right short at the right place and I'm using an STM32 discovery ...
0
votes
0answers
76 views

UART baudrate issues on STM32F0xx board

I'm using STM32F0xx board for project. In this board there are two UART interfaces. UART1 is supporting upto 115200 baudrate and more than that, but UART2 is supporting upto only 38400 baudrate. If I ...
3
votes
2answers
76 views

Is printf debugging over JTAG (not SWD) with STM32 possible?

The question is very similar to this one: I'd like to to printf debugging via the ST-LINK adapter and JTAG, not SWD, in IAR Workbench. Is this possible?
0
votes
1answer
61 views

STM32 F4 GPIO clock rate

I am looking at the STM32 F4 series Discovery board. I have the eval board on my desk currently. I want to use this system to send data from USB to a 3 byte parallel data bus using an external clock ...
2
votes
3answers
178 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 ...