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
0
votes
1answer
44 views

Reset Switch Wiring on STM32

I want to wire a reset switch for my STM32F0 microcontroller. The datasheet suggests the following external circuity to do so: Connected to the NRST pin is a 0.1uF capacitor and the reset switch. A ...
1
vote
1answer
36 views

STM32F103CB Timer update interrupt not working

I am trying to setup the timer update interrupt of a stm32f103cb. My setup and interrupt code looks as following: ...
5
votes
2answers
2k views

RX vs TX operation in Software UART

I am short of 1 UART in my MCU. I needed 4 but so far what I have found suitable is an MCU that has 3 UARTs in it, STM32F103. So the 4th one I will have to implement in SW. Each of my individual ...
0
votes
0answers
14 views

Errors when enumerating USB of STM32WB55 MCU

I am trying to make a PoC USB device using STM32WB55RGV6 (using their dev kit p-nucleo-wb55 board&dongle). I started with just following STM's example code for USB HID device (using mouse profile)....
-2
votes
0answers
25 views

I have a CAN transceiver circuit with the STM32L496 discovery board. How do i program the hardware to receive and transmit VEHICLE data? [on hold]

The hardware of the circuit is similar to the draft below. Having trouble with programming to the vehicle.
0
votes
1answer
20 views

How to debug a program using FTDI in STM32CubeIDE?

I want to debug a test project for my board the STM32F103C minimum systemboard, sometimes called the bluepill, I use linux so i downloaded the original STM32CubeIDE as .sh execute it and downloaded ...
0
votes
1answer
23 views

How to set up clock for the STM32 Nucleo-64 with libopencm3/rtos

I was using this code from github on a blue pill. Now I would like to adapt it for STM32F401 on a Nucleo-64 board. I tried changing the GPIO to A7 and attaching an led (which lit up when I attached it ...
1
vote
1answer
51 views

PWM to analog voltage conversion for communication between two microcontrollers

I want to use this schematic for sending PWM signals from an STM32F0 Arm microcontroller to an ATtiny85. I want to convert the PWM signal to a proper analog voltage, so that the ATtiny analogRead() ...
0
votes
0answers
53 views

What is the proper way to reset attiny85?

I have 3 attiny85 on my pcb. And I want to have software controlled reset for them. A separate STM32F0 microcontroller is responsible for the reset. I have two states from the STM32F0 to pull up and ...
0
votes
1answer
48 views

Which would be cost effective, a display with graphics controller or without graphics controller?

I am working on a touch screen display on stm32. I found some evaluation boards like mikromedia-7-stm32f7 and stm32h753i-eval Mikroelectronica uses the external controller SSD1963, although the MCU ...
2
votes
3answers
115 views

Conversion formula for adc

If you have a 12 bit adc, as the one in STM32F437, which of the following formulas do you use to calculate the analog value? V = ADC_sample / 4095 * 3.3 or <...
0
votes
1answer
53 views

How to read USB mouse data using STM32f103C OTG USB functionality? [closed]

I wanted to build a project where is a screen displaying a pointer, and I wanted this pointer location to be determined by a USB mouse, so I used the ARM 32bit based STM32f103C microcontroller which ...
0
votes
1answer
36 views

STM32F103 SPI Pinout Problem

I am currently working on a project with LoRaWAN technology using STM32F103C8T6 microcontroller. For LoRa I am using SPI in Full-Duplex Master mode (spi1 specifically) and in CubeIDE when you activate ...
0
votes
1answer
73 views

LED lights up even though there is not supposed to be an output from the STM32

I'm using an STM32F103C8T6. I connected an LED to the pin PA5 and a tactile button switch to the pin PA0. I wrote the program as follows: ...
1
vote
1answer
42 views

Changing clock speed of STM32F779II

I'm configuring the clock of the LCD which has a max clock of 30MHz as following. Plus I'm using the touch at I2C1, and USB at 48MHz. The clearing and painting an image to the LCD is slow, and it's ...
0
votes
1answer
49 views

Qtouch with non-Atmel microcontrollers

Simple question really. Can I use Atmels Qtouch library with non-Atmel MCUs (such as an STM32)? It seems like Atmel has a solid line of capacitive touch ICs, ...
0
votes
0answers
25 views

download program to STM32 board is not working well

I am using STM32L031K6 with IAR imbeded workbench 7.70. I give the program to board by 'download & debug' and when clicking 'go', it runs well but after that, when I connect board to external ...
0
votes
0answers
31 views

STM3F405RG CAN bus issue

I encountered stange behavior of stm32f405rg while working with CAN. My setup: beaglbone black connected to stm over CAN bus. Data transmitted successfully, beaglbone is able to receive data correctly ...
1
vote
1answer
35 views

M2P DMA transfer with trigger from a different peripheral

The microcontroller on my board is STM32F429IGT6 and I want to use a timer as a trigger of a DMA -e.g. HTIM_SOUND_SAMPLER- and transfer my data from an array to CCP of another timer -e.g. ...
0
votes
3answers
62 views

STM32 ADC and timer(s): Measuring moving average peak voltage of PWM signal with varying amplitude

I want to measure a moving average of the amplitude of a fix frequency, fixed dutycyle PWM signal with slowly varying amplitude but in a noisy environment (DC motors). I want to use as little as ...
1
vote
1answer
40 views

HX711 adc read functions gives different accuracy

I'm reading data from HX711 with stm32F1 but accuracy of the data are awful. when i read data with arduino the data ten times good if we compare with stm32 results. these are my read functions. ...
4
votes
1answer
319 views

I custom board with STM32F429IGT6 ST-Link v3 using the ST-Link Utility. “No target detected”

I did my own board with STM32F429IGT6, and connect the ST-Link v3 using the ST-Link Utility. "No target detected". Previously I had made my own boards, and the minimum connection is Vcaps to 2.2uF ...
0
votes
3answers
62 views

SD card with STM32 in memory-mapped mode

I need an external flash in STM32H743 MCU and it must work in memory-mapped mode (it's necessary for LTDC display controller). Can I use SD card instead of usual flash chip in this case? It will be ...
1
vote
1answer
55 views

Can I use a ST-LINK V2 as a universal JTAG or TTL serial interface?

I have a ST Link V2 as pictured below. I would like to use it as a general purpose JTAG and or Serial TTL USB interface for communicating with a wide variety of devices. The documentation claims it ...
-2
votes
1answer
71 views

STM32 Nucleo UART2 tx/rx pins wired to UART3 tx/rx pins [duplicate]

I am exploring UARTs on the STM32F103RB on a nucleo board. The board is connected via USB to my laptop, and I can send/receive messages using the ...
0
votes
1answer
47 views

Download a file from web browser to Micro SD card [closed]

I am trying to do a web server to store a file (mostly MP3) on a Micro SD card. I have stm32f407-discovery and w5500 and a Micro SD card reader (unbranded manual pcb drawed). How can I open a web ...
0
votes
1answer
108 views

Role of syscalls.c

What is the role of syscalls.c file in GNU ARM(STM32 for instance) based projects? I found 2 ways of successfully building the project Delete syscalls.c and include -specs=nosys.specs in the linker ...
0
votes
0answers
45 views

receive ATR from SmartCard using STM32

I want to get ATR from SmartCard using STM32 (i have STM32 Nucleo F429ZI). I 've connected STM and Card and after that check connection by oscilloscope (i 've checked CLK, RST and I/O). But in code i ...
1
vote
2answers
69 views

FreeRTOS on STM32 - What API should be used: CMSIS-RTOS API (v1 or v2) or FreeRTOS API? [closed]

According to ST's user manual UM1722 "Developing wireless applications on STM32Cube with RTOS" there are two APIs available: Generic CMSIS-RTOS API (v1 or v2) FreeRTOS API The CMSIS-RTOS API ...
0
votes
2answers
70 views

STM32 flash memory write issue

I am attempting to write some data to my stm32 discovery board (STM32F4VET11). Following the data sheet: (Sector 11, address 0x080E0000). The code compiles, however, the write never takes place. When ...
0
votes
0answers
50 views

Why is DMA Continuous Requests not selectable as enable for STM32F446RE?

I have an Nucleo STM32F446RE and I'm used to enable DMA Continuous Requests with ADC. But in this case, I can only select disable. Why? If it's not possible to use DMA Continuous Requests with ADC. ...
0
votes
1answer
62 views

STM32 send from UART3 and receive on UART2

I thought to create a simple test to send and receive a buffer via UART. I succeeded in sending bytes from my PC to the nucleo bord and receiving them in blocking and non-blocking mode. But for some ...
0
votes
2answers
48 views

IAP bootloader not jumping to the application address

I am working on IAP in STM32F4. I received .bin file using uart and flash it in 0x08004000 address successfully and disable irq , set msp , set vector, deinit hal , reset the systick registers but the ...
0
votes
1answer
118 views

Do I really need to learn how to use registers - Programming a microcontroller? [closed]

I have a curious question. Do I really need to learn how to use registers when I program a microcontroller? I have been using Arduino for a long time. I quit using Arduino and starting to use STM32 ...
0
votes
1answer
40 views

timer input capture for really low frequencies

How low of a frequency can a timer be used to measure an external signal in "input capture" mode? If I need to measure something that has a frequency of say 1hz - 2hz... or even slower for that ...
0
votes
0answers
40 views

STM32F407VE led toggling using button

I am using STM32F407VET6 development board. It has inbuilt buttons K0 (PE4) and LEDs D2 (PA6).I am trying to turn ON the LED only when I pressed the button. But when I pressed the button it keeps ON ...
0
votes
0answers
47 views

mpu6050 returns zero, I2C stm32f103

I am working with MPU6050 and STM32f103VE as master. When I wake up the sensor and ask for information it returns 3 bytes of zeroes and the protocol stops working. I only send the communication Part ...
0
votes
0answers
28 views

FMC controller conflict issue

I have 2 FMC controllers on my STM32F429 design. The first controller is an SDRAM controller which is used by LTDC&DMA2D as video buffer; The second controller is a PSRAM controller which is ...
0
votes
2answers
56 views

Where does the SWD header in this schematic connect to the microcontroller?

Edit: better quality schematic I'm designing a PCB that includes the STM32f103C8T6 and I want to program it via SWD (with the ST-Link v2 USB connector). I'm using the Blue Pill dev board schematic (...
1
vote
2answers
87 views

STM32 firmware upgrade (In-System Programming) over USB?

There are many ways to program an STM32 chip (in my case STM32L4R5): USB DFU mode (using DFuSe utility from ST) UART Serial Port (through something like FTDI chip)...
0
votes
1answer
63 views

STM32: Interrupt latency for serial protocol implementation

I am implementing a synchronous serial interface (SDLC) using an STM32. My original implementation for the RX side is running on a ARM7 which uses the FIQ to set an interrupt on the clock line, in ...
0
votes
0answers
51 views

Is VBUS sensing necessary for USB on a self-powered device? [duplicate]

I'm currently designing a self-powered PCB with a STM32L432KCU6 and USB. After having done some research, it seems that it is necessary to connect the VBUS pin for detection purposes. However, is it ...
0
votes
1answer
32 views

Is this circuit for Piezo Transducer and corresponding resistor values correct?

I want to drive this piezo transducer (https://www.mouser.com/datasheet/2/670/cpt-9019s-smt-1310960.pdf) at 3V and 4kHz with STM32F0 microcontroller. This is a follow-up to my previous question (Is ...
2
votes
1answer
68 views

Repurposing PWM output for D- of USB

I'm currently designing a self-powered PCB with a STM32L432KCU6 MCU on it. I want to use USB, but D- is already used for a different purpose. According to the datasheet, D- and D+ have to be ...
2
votes
1answer
93 views

STM32: SPI hardware to implement custom serial interface

I want to implement SDLC communication on an STM32 (assume I can pick any one up to M7) using the existing HW in it. SDLC is a full duplex synchronous serial interface. In my case, it uses ...
0
votes
1answer
122 views

Connecting an STM32 at Ethernet

I am trying to connect the STM32F103 (blue pill) with the specific w5500 module via the SPI bus. The physical connection I made was ...
0
votes
0answers
36 views

STM32 SD Card SPI no response

I am using an STM32F0 to communicate with an SD card over SPI. However, when I send CMD0 after performing the required initialization, the SD card does not respond with anything on MISO. What's ...
1
vote
3answers
61 views

Meaning of (*(__IO uint16_t*)PAGE0_BASE_ADDRESS) variable declaration

There is a variable declaration: uint16_t status = (*(__IO uint16_t*)PAGE0_BASE_ADDRESS); __IO is the precompiler directive ...
0
votes
1answer
33 views

nrf24l01+ returning incorrect payload value

I have 10 nrf24l01 modules, 5 from the german web shop, 5 from the local finnish offline store. I'm using them in pair, one module sends exactly one byte to another one module with period of ~100ms. ...
0
votes
0answers
91 views

Function fails, but code works if not in function

I'm using STM32 and FATFS with an SD card, and want to check if a file exists. That works when I use it in main, but when I use it in a function, it results in a hardfault. This works in main: ...