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
3answers
59 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
58 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
1answer
158 views

Correct way to power from USB and or VIN?

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
28 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
27 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 ...
1
vote
1answer
44 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
156 views

Is this STM32F based 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 has a USB port and I plan to have a simple PC program that displays the ...
-3
votes
0answers
57 views

STM32F103 SysTick Delay Issue

I am using a STM32F103C8 development board. Trying to use the SysTick timer to write a custom delay function. This function takes the delay (in ms) as argument. However, my function is producing ...
0
votes
0answers
24 views

STM32 Getting incorrect data from SDRAM through DMA2D

I have an 800x600 pixels RGB565 image stored in the SDRAM of my STM32F7-discovery board starting at memory address 0xC0390000. What I want to do is saving this image to an SD card. The code for this ...
0
votes
1answer
66 views

ST-Link debugger/programmer failed to find STM32L152 MCU on designed PCB

I'm using STM32L152 MCU on my own project. The project was started on a STM32 Discrovery board. Now I would like to have my own board by designing a PCB with the MCU. An external ST-Linkv2 will be ...
0
votes
0answers
52 views

STM32, simulating SPI/I2S with GPIO

I'm trying to simulate SPI with GPIO on STM32F4. The task is to read PDM microphone data. I tried to do this by: Generate 1 MHz clock, using STM32 TIM14, on GPIO PF9, as SCLK in SPI protocol When ...
-1
votes
1answer
75 views

STM32F7 FATFS and SD card Write problems

I have an STM32F7 discovery board and have an image in the SDRAM which I want to store on the SD card as BMP file. I am using chan's FATFS module with the sddiskio module and the BSP library from ST, ...
0
votes
2answers
103 views

STM32F407ZET6 and nordic nrf24l01+ communication with interrupt driven SPI

Currently working on STM32F407ZET6 MCU. I am trying to generate an interrupt based SPI communication with nordic nrf24l01+ chipset. The MCU is in Master mode. I am able to establish an SPI ...
0
votes
0answers
30 views

STM32 read PDM data with GPIO

I want to build a microphone array with MP45DT02, which outputs PDM signal. It seems that SPI/I2S is usually used to read PDM data, but my MCU (STM32F407ZGT6) has only 2 I2S's and can only support 4 ...
0
votes
0answers
128 views

STM32 USB OTG HOST Library hangs trying to create file with FatFs

I am using STM32F407 discovery board, and I am trying to create a file with FatFs on USB flash, but my f_open call trying to read boot sector for first time file ...
0
votes
1answer
95 views

Using a Mosfet Gate driver to directly drive a small stepper motor?

I need to control some small, low current stepper motors from a 3V ARM micro controller. The motors typically require 5-12V at 400mA (30 ohm 41mH windings). What occurred to me is to use a Mosfet ...
3
votes
1answer
326 views

Interfacing USB with a microcontroller

I am designing a development board for STM32F103 microcontroller. I plan to implement an on-board USB for interfacing with the uC. I referred a few designs online and have always found some pull up ...
4
votes
2answers
150 views

STM32F7 gets stuck in external interrupt callback function

i am working on a project to connect a camera to an STM32F7 Discovery board using the DCMI interface. The camera part works fine, but i have a strange problem with external interrupts from the ...
0
votes
1answer
70 views

STM32F429 I2C problem

is it possible to connect two I2C busses on one board, one at master mode and the other in slave. I am just trying to learn some I2C stuff, but I have only one board.
3
votes
4answers
267 views

Debugging an ARM (STM32) Microcontroller using Qt Creator

I have been working with STM32 series ARM microcontrollers on IAR Embedded Workbench for a while. For some reasons, now I need to move my works to Qt-Creator (both on Windows and Linux). In IAR EWARM, ...
1
vote
2answers
43 views

WS2812B 16 Channel Drive with STM32 problem

I am working with this library. This library uses DMA1 channel 2,5,7 but these channels are required by USART. So I have changed the channels and corresponding to timers ( totimer2 and to timer4). ...
0
votes
0answers
33 views

Multimaster rs422 management

As i shared here i need to connect a sensor(host) to devices(2 stm32 microcontrollers - mcu's). The MCU's can also talk each other on a canbus (Showed as line between Device1 & Device2). My ...
0
votes
2answers
67 views

Disable interrupt in ISR on STM32F4

Is is possible to disable an interruption during its service routine to prevent it from happening again for some time? For example: ...
7
votes
3answers
296 views

STM32F0x1 comparator (COMP) and ADC on same pin simultaneously?

I am putting together a project that takes advantage of the comparator peripheral on the STM32F051 microcontroller. I have read in the documentation that for the comparator to work the input pin needs ...
3
votes
3answers
166 views

Why float data type is not accurate on a STM32?

I'm using STM32F103C8T6 and my compiler is KEIL 5. I have written a simple program to check something but I found out an interesting point. When I download the program to the MCU, ...
0
votes
0answers
28 views

Giving Input values to the IAR code using Terminal I/O feature of C-SPY

I am using IAR to program a microcontroller and wanted to test my code by giving test values to my application.Test values are to be read from the text file placed on my PC(as it is too large ~>2Mb).I ...
0
votes
1answer
86 views

Output 48MHz system clock on a GPIO pin other than MCO pin on STM32F030

I want to output the max 48MHz clock signal of STM32F030 to drive another subcircuit. The problem is the chip STM32F030F4P6 (TSSOP-20 package) I prefer to use a GPIO because the MCU doesn't have the ...
1
vote
1answer
93 views

Writing STM32F7 code without external files?

How to start coding for STM32F7 platform without any external files despite of assembler startup file. Is there a header file with memory mapped registers which does not include any other header files ...
0
votes
0answers
66 views

Initialisation of the LCD HY28B (ILI9325C)

I'm trying to figure out how to make my litle holliday project work. I'd like to display stuff on my HY28B, I'm using an STM32 to control it. I tried the example code given by Haoyu electronics but it ...
2
votes
3answers
110 views

Trying to flash STM32f030f4 (ARM, Cortex M0) - what is proper wiring?

I've got STM32F030F4 chips from shop, made a small breadboard adapter for it and tried to connect to its built-in bootloader via USART1. I've failed and I'm somewhat bewildered about wiring. My ...
0
votes
1answer
86 views

STM32L0 Snippets with GCC ARM Toolchain

Currently I try to use the STM32L0 microcontroller series. I found that ST offers a low-level C program collection called STM32SnippetsL0 too, parallel with their complex STM32CubeMX based HAL API. ...
2
votes
2answers
98 views

How is the bootloader and firmware uploaded during production? [closed]

If there was a product with 5 MCUs (STM32303) and a main CPU being a AM5718, how would the bootloader be uploaded to each chip? The same question about the firmware how would the firmware be uploaded ...
0
votes
1answer
61 views

Strange ADC sampling frequency / clock frequency on STM32F401 board

I use a timer to trigger ADC sampling on STM32F401, and the interrupt service routine of ADC will toggle a GPIO pin so that I can measure the ADC sampling frequency using an oscilloscope (which should ...
7
votes
3answers
309 views

How to program multiple STM32Fs on same PCB

I work in a management roll and only have a very limited electronics knowledge (enough to make simple arduino projects etc). We are working on a product at the moment which has 3 STM32F303s and 2 ...
2
votes
2answers
171 views

STM32 PCB Problem

I have been trying for almost a year to get an STM32 to work on a custom-made PCB. I have an STM32F107 and I have wired it as shown in the attached diagram (only shown components are soldered at ...
1
vote
1answer
71 views

Flashing STM32F030 via uart bootloader under linux

I'm going to evaluate STM32F030 microcontrollers (ARM) for replacement in one measuring device - and ordered a few already. Meanwhile I'm trying to collect info on how to work with them. Currently ...
0
votes
1answer
102 views

USB resistor locations

I've got a question regarding the location of the resistors used to configure USB. I'm currently designing a board with an STM32 chip, on the left of the diagram and want to have USB broken out, on ...
4
votes
2answers
287 views

How to use external ST-Link to debug/program STM32F103 MCU?

I'm using STM32F103 MCU for my own project and want to use the ST-Link of STM32F411 Nucleo board for external debugging / programming purposes. I've set the CN2 jumpers OFF and my actual question is ...
0
votes
0answers
101 views

How to write to internal STM32 Flash memory?

I am working with an ST Discovery board (STM32L152RCT6). I have been able to program the device and do all entry level things. Now I want to write to, and read from, the internal EEPROM and Flash ...
1
vote
1answer
164 views

MCU push button triggered by electrostatic discharges

In a simple project based on an STM32 microcontroller, I needed a couple of extra push buttons. So I connected each button between a pin on the STM32 and GND, configured the pins as input and ...
2
votes
1answer
80 views

USB Specifications for PCB design.

I'm designing a board with a STM32F103CBT6 chip and I've been trying to figure out how USB works so I can have that extended out. Reading some specifications online has just left me with more ...
1
vote
3answers
463 views

How do I use the printf function on STM32?

I am trying to figure out how to use the printf function to print to the serial port. My current setup is STM32CubeMX generated code and SystemWorkbench32 with the STM32F407 discovery board. I see ...
1
vote
1answer
51 views

Where are details regarding peripheral configuration for STM32 controllers in datasheets?

I have recently begun working more with STM32 processors coming from the more simple Atmel 8bit variety. The Atmel datasheets are very nicely laid out -- specifically speaking to how they provide ...
3
votes
1answer
82 views

How to reset slave timer in gated mode?

How to make automatic reset of slave timer in gated mode in STM32 mcu? Summary: I've done synchronization between 2 timers: Timer#1 is configured as a slave in gated mode, Timer#2 is configured as a ...
0
votes
0answers
42 views

How to show LwIP library debug output?

I have generated project with stm32cubemx running FreeRTOS + LwIP and trying to debug LwIP library I have enabled all the options for debugging, redirected all to ITM and created my own printf ...
0
votes
1answer
66 views

stm32 usb feature report sending

I am working with USB HID in stm32f072. On Get_Report Request I have to send data to Host PC through Control Transfer Endpoint. I am trying to do so. But it is sending always some wrong data. If I ...
0
votes
1answer
73 views

setting stm32f4 SystemCoreClock to 100Mhz but cant get it (only get 57.6Mhz)

I'am triying to change the stm32f407 systeme core clock to be 100Mhz , to do this I need to set the source of the PLL to be HSE , and configure the PLL coefficient so as to get the right value of ...
3
votes
1answer
228 views

How to start with STM32F103C8T6 board?

I have been using an 8-bit AVR MCUs to build line-follower robots with students for a few years now. Now I would like to step up to an ARM Cortex-M3 because I'd like to add some more CPU-intensive ...
0
votes
1answer
86 views

stm32f4 pull up resistor value

I'am working with Stm32f4 discovery board , i need to know the right value of the pull up resistor on the GPIO port all there is on the datasheet is : week pull up Thank you
0
votes
1answer
129 views

Setting up SPI between a STM32F4-Discovery Board and a MCP4151 Digital Pot

I'm currently working on a project in which I'm trying to interface a MCP4151 Digital Potentiometer with the STM32F4-Discovery Board using the Mars Eclipse IDE. I have downloaded and included the ...