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
0answers
23 views

STM32 Timer Settings Changing

I'm using STM32F407VG. I created a 28 khz square wave by using Timer PWM Generation. When i look at the oscilloscope, i can see it clearly. I'm having a trouble to change frequency of PWM without ...
1
vote
1answer
43 views

Is a dedicated bandpass filter chip really neccessary for the BLE antenna of STM32WB?

I am designing a custom STM32WB board. Checking the reference boards of STM32WB (Nucleo and Feather board) I noticed a dedicated multilayer ceramic bandpass filter in the matching/tuning network path. ...
0
votes
0answers
13 views

Can I use my STM32F4Discovery's PF7, PF8, PF9 pins for SPI5 or will I interfere with L3GD20?

I am trying to communicate with a device over SPI using an STM32F429 Discovery kit. I would like to use the SPI5 but according to UM1670, table 7 and STM32F429xx Datasheet, table 12, page 76, there is ...
1
vote
1answer
51 views

What is the output logic levels of this STM32?

I am struggling getting my head around the input and output logic levels, mostly the output levels of this STM32 (STM32F446xC/E). This table shows the output logic levels as dependent on if it is a ...
0
votes
0answers
17 views

Connection between STM32F446 and CODEC (PCM3060)

I have decided to connect an external crystal to the MCU (STM32F446RC) and then doing the following routing using STM32cubeMX UI. MCU to the CODEC using the I2S mode of the SPI peripheral: I am ...
-1
votes
1answer
52 views

STM32 calculating/getting timer tick

I am writing code for an STM32L433RC MCU that returns the tick period of a timer (TIM1, TIM2, TIM6, etc.) using the LL driver but I can't figure out how to calculate the timer clock frequency ...
0
votes
2answers
60 views

STM32F446 HSE recommendations

After reading the Oscillator design guide for STM8AF/AL/S, STM32 MCUs and MPUs pdf, I have found very little information available for me to make a decision on which oscillator will best fit my ...
1
vote
0answers
27 views

STM32F469 with AS4C4M32S SDRAM only able to write first byte

I have made a custom board that features a STM32F469NI MCU coupled with AS4C4M32S SDRAM. Following are the SDRAM timing and register set information: ...
0
votes
1answer
57 views

PCB routing of parrallel capacitors with different values (Based on STM Nucleo64 dev board)

I have been recently trying to understand how the STM32 ICs should be routed on PCB, in particular parallel capacitors of different values for power design. I have come across various suggestion about ...
1
vote
0answers
21 views

STMWIN connection to Azure IOT cloud

I am trying to connect STMWIn starter kit to Microsoft azure. I have successfully transferred the binary file which is taken from official ST site and transferred it to the board. I was also able to ...
0
votes
0answers
23 views

STM32 using trigger to start timer

i want to use a Timer which generates a 40kHz frequency to toggle an output, when a start trigger arrived on an input. After a high signal was detectet on that input, the GPIO should be toggled 20 ...
0
votes
1answer
36 views

STM32L4 clock set up

I'm using STM32L4R5 for my project and this is my first time designing a clock source and using an ST microcontroller. I'm trying to figure out the clocking hardware configuration by reading the clock ...
0
votes
0answers
29 views

STM32 in emmc-slave role. DMA transfer by both edges of external clock

I want to implement emmc protocol in a device role with STM32 (for now I've had ST-Nucleo-F767ZI and ST-Nucleo-F429ZI dev boards). Idea is to have a bridge to real emmc with STM32 as an adapter. STM32 ...
0
votes
1answer
70 views

Save Audio ADC samples in SD Card in STM32

I use STM32F7 and I want to save Audio as ADC samples in SD card, continuously in 50K sample rate that is made by timer.(Same as voice recorder) I use DMA to save data in SD card. During read ADC, I ...
0
votes
3answers
31 views

Understanding Dali2 D4i, 202 memory bank energy data

Below is a log from memory bank 202: Bank [202] , Loc[0x04]: 255 Bank [202] , Loc[0x05]: 0 Bank [202] , Loc[0x06]: 0 Bank [202] , Loc[0x07]: 0 Bank [202] , Loc[0x08]: 1 Bank [202] , Loc[0x09]: 49 Bank ...
1
vote
1answer
80 views

How does the RTC of a STM32L0 keep the time accurately when using the LSI as the clock source?

I am working on an application that must keep track of time (using a RTC), and will be uploaded on a STM32L052K8. When I was making my hardware I just assumed that I will use the low speed internal (...
-5
votes
1answer
61 views

Hi everyone, do somebody have experience with usb on assembly level for stm32?

Need a help with enumeration process, can't receive set_address from hub (PC). when answering to get device descriptor, getting reset but no set_address request only zero-length PKTSTS_SETUP_COMP->...
0
votes
0answers
17 views

Simulink - STM32 - PIL test communication error

I have a Simulink model that contain an algorithm block. I built the generated c code succesfully to STM32F4-discovery board. (I read that from diagnostic viewer.) I used SIL/PIL Manager App to make ...
0
votes
1answer
61 views

Need help designing an OBD2 sniffer using an STM32 F446RE MCU

I have written a simple program that should send "NO MESSAGE!" to the serial monitor if there are no CAN messages or "A NEW MESSAGE ARRIVED!" and then the CAN message itself ...
0
votes
1answer
28 views

No output for N-Channel MOSFET on PWM on STM32F0

I am using dual N-Channel MOSFET FS8205A, following is a screenshot from its datasheet. and the following is the schematic I am using in my project. The Gate is also pulled down to the ground with a ...
1
vote
2answers
45 views

Trying to find and bridge USART pins from the manual of an STM32 board

I am trying to solve an issue regarding a firmware with this 64-bit Nucleo Board. I have the hex file and can see the ready source code but when I upload the firmware I am not able to communicate ...
0
votes
2answers
85 views

External clock oscillator and MCU

I am creating this post as a second part to a recent post I have made: STM32F446 & External Oscillator I have read other post about using a crystal that runs at 8 MHz rather than 25 MHz. Such as ...
0
votes
2answers
36 views

STM32 interrupt and input on same pin

Fairly simple question but I couldn't find any instructions on this. I'm using an STM32G070 I'm interfacing with an ADS1231 which uses DOUT / ~DRDY on the same pin, and I'm wondering if there is a way ...
0
votes
0answers
27 views

STM32 uart interrupt not firing

After having a UART echo working on my nucleo F446ze, I am trying to get UART interrupts working. I thought all I had to do is : set the priority for the UART3 interrupt enable the USART3_IRQn ...
0
votes
2answers
51 views

STM32F446 & External Oscillator

I am currently building an audio guitar pedal. I was suggested to use an external clock as reference for my CODEC and MCU. I've been reading the "Oscillator design guide for STM8AF/AL/S, STM32 ...
0
votes
0answers
30 views

Why does the “write enable” in QSPI with Macronix MX25L51245G always return WEL = 0?

I come to you to ask for help with Macronix MX25L51245G interfaced with STM32L476RG. My QSPI is set to 32MHz. Here what I do: QSPI Reset (0x66 - 0x99) SPI Reset (0x66 - 0x99) Wait for WIP = 0 (SPI) ...
0
votes
0answers
54 views

STM32 UART goes crazy

Im' working with a STM3f429 dev board and a Mipot 32001353 LoRa module. This module communicates over UART. I have initialized my UART interface with cubeIDE. When i don't connect the wire between TX ...
1
vote
1answer
38 views

USB communication between Android phone and MCU while continuously charging the phone

I am working on a project where I have to communicate between an Android phone and a microcontroller through USB and continuously charge the phone. I have very limited experience with USB and would ...
0
votes
2answers
114 views

Is not it too much memory consumption for a simple thing?

I was trying to lower the memory consumption in my project and realized that a simple change of "uint8_t" value to the "define" shows effect much more and I thought. It seems I'm ...
2
votes
2answers
196 views

What could be the reasons for a stepper motor stuttering with an A4988 driver?

I am using an A4988 Stepper Motor Driver, which is controlled with an STM32F767ZI on a Nucleo 144 board. The stepper motor takes 12 V with a maximum of 350 mA. When powered, the motor simply flickers ...
1
vote
1answer
55 views

Programming a AT28C64B EEPROM using an STM32F429

EDIT: For those who tried to help or have found this question via google, I managed to solve this issue just by adding a 1uF ceramic bypass capacitor to the breadboard. Thanks for the answers. I'm ...
1
vote
0answers
18 views

Connect Esp32 and a w5500 to a blue pill stm, doable?

I am looking for a way to give my project both wlan and lan but because I need all the io pins on a esp32 ( who may also be a bit to slow for my application) I can't just use a lan module on the esp. ...
0
votes
0answers
44 views

STM32G474 FDCAN Callback is not called. Classic frame

I have a custom board with an STM32G474RE. I use 3 CANs with 3 independent CAN tranciever on the board. I tried sendind CAN message from CAN1 to CAN3 but the message is not received. At least the ...
0
votes
4answers
79 views

Analog switches able to send bi directional digital information?

I'm trying to send digital signals from an ST-Link V2 programmer connected to my computer to a blue pill STM32 microcontroller, but I want it to go through a DG412 Quad SPST CMOS Analog Switch. As far ...
1
vote
0answers
19 views

SMBUS on STM32F091

Any example code available to implement smbus(master and slave) interrupt mode on stm32f091rc ? Tried using the HAL functions was not successful? In Master mode to transmit I use while(1) { while(...
1
vote
2answers
86 views

Stm32 crystal loses oscillation

I'm building an open source, commercially available eurorack module which is based on a stm32 chip. The problem I'm facing is that when the module boots up sometimes it is working as it should but ...
1
vote
2answers
29 views

How to find out whether this STM32 board can communicate through its USB port by default?

I am planning to upload a ready firmware to this STM32 board. And I need to use it through its USB port(which is also used to upload firmware through its ST-link interface). Now I know that in Arduino ...
0
votes
1answer
52 views

How can I carry DC component to negative side?

I made a sine wave with stm32f407VG DAC periphal. But my sine wave has DC component 1.32V. I designed high pass filter but DC component was gone. But I don't want it to be gone. How can I carry it to ...
0
votes
3answers
35 views

Need help making STM32F303 board

I'm trying to make my own nucleo board using STM32F303ZET6. I have downloaded and inspected the schematic documents that stm shared. I will use this board as rocket flight computer so I want the board ...
0
votes
0answers
32 views

Confusion about power source/supply on the STM32F103C8T6 Blue Pill

I am attempting to program and STM32F103C8T6 Blue Pill board using an ST-LINK V2 debugger, i have the 4 pins connected to SWDIO, SWCLK, 3.3V and GND, and then connected into the 4 pin header on the ...
0
votes
0answers
39 views

Error in Reading Internal temperature sensor in stm32f042

The program to read the Internal temperature and V_battery voltage using ADC in STM#2F042 is as follows: ...
1
vote
0answers
80 views

STM32F103VCT6 Custom board not working

I made a custom board using STM32F103VCT6 MCU as shown in the attached schematic below. I soldered all the components as per the schematic and powered it on. The board worked for sometime and stopped ...
0
votes
0answers
92 views

STM32 - Using Timer as timebase source for HAL in FreeRTOS application

I am learning more about freertos by making a task based program. My problem comes when initializing and configuring the HAL time sources. I read that it is necessary to choose another HW timer as ...
1
vote
2answers
59 views

Serial port from PC not reaching the MCU

I'm trying to send some data from the PC to my STM32L432KC Nucleo board using UART. Transmitting data to the PC works just fine, I'm receiving data through the STLink Virtual COM Port which I can see ...
-1
votes
1answer
38 views

What are the connectors CN11 and CN12 on STM32 Nucleo-F103RB used for?

On the STM32 Nucleo-F103RB board, there are two connectors on the upper part named CN11 and CN12 respectively. Next to them there's a text that says GND, but if they are grounded why do they have ...
0
votes
2answers
64 views

4-20 mA sensor output to STM32 ADC input

I have a industrial sensor with 4-20mA output and I want to read that output from Stm32 ADC pin but I need suggestions to do that work in a nice way. Can you guys suggest me the best way to do it? It ...
0
votes
0answers
51 views

STM32: Is it possible to write data to flash memory by using system bootloader when write protection is on?

When i try to program with stm32 flash loader, if the write protection is on, it wanna erase all of the memory. Probably because of program drop the security level so MCU erase all of the data. But ...
1
vote
1answer
41 views

Solution to interface SD card with microcontroller using only 2 pins (I2C/SPI)

So I am trying to add an SD card to my circuit and unfortunately, all I have left are 4 GPIOs, but I was asked to try and find a solution to only use 2. So using 4 is a worst case scenario. I thought ...
1
vote
1answer
27 views

Micron MT25QL512ABB8ESF-0SIT not working after Non Volatile Configuration register setting

I'm using the STM32H7 Evaluation board. There is an on-chip QSPI DUAL NOR CHIP MT25QL512ABB8ESF-0SIT. After setting up the Non-volatile configurations Register value to 0x89D6 and power cycle, FLASH ...
0
votes
1answer
52 views

Filter for rotary encoder

I'm attempting to use PID for DC motor control. The motor is geared, with a magnet on the motor shaft coupled with a single hall effect sensor to help measure speed. This is all wired up to a capture ...

1
2 3 4 5
67