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
1
vote
1answer
33 views

STM32F4 PLC Integer Calculation vs Float Calculation

I am using a PLC that use a STM32F4 as its processor. The PLC software has Integer and Float calculation commands. When I working with floating point numbers usually trying to use integer calculations ...
1
vote
3answers
71 views

Starting and stopping timers with a button

I want to start and stop timers from the button state. I am using an STM32F407VG. This it the circuit I designed: When the button is pushed there is 0.45 V. When I release the button there will be 4....
0
votes
0answers
61 views

Replacing SD card with Flash Memory Chip

I have a design in which MicroSD card is used for Logging and critical system information files. Logging: text file of few MB. Max 16MB. System Information: File format is xml and size is around 200KB....
3
votes
1answer
63 views

Cannot connect to STM32 after programming without activating SWD pins

We were testing the STM32 on a custom board. We were able to program it through SWD pins and an external ST link. Unfortunately we didn't activate the SWD pins in the .ioc file. Now we cannot to it ...
1
vote
0answers
33 views

STM32F446RC Failed to be detected by ST-LINK/V2

I am currently trying to connect the ST-LINK/V2 to my custom board which is using a STM32F446RC. I am able to detect the ST-LINK using both the STM32CubeIDE or the STM32 ST-LINK utility, however this ...
0
votes
1answer
32 views

Queries about how this hall sensor is connected to the MCU

This is part of the schematics from the STSPIN32F0251 EVB that shows how the hall sensors are connected to the MCU. What purpose do the 10pF capacitors and the <...
1
vote
0answers
26 views

BTS7960 input noise

I'm using the STM32F103C8 microcontroller to drive a BTS7960 H-Bridge module. I have already experienced the peculiar characteristics of the module, including the fact that both EN pins must be active ...
0
votes
2answers
89 views

STM32 interrupt triggers by itself

I am using stm32cubeide to program a stm32f030f4p6 MC. I have assigned one pin as an external interrupt and it is connected to the data output of an RF433 receiver. Here is a summary of my code: ...
6
votes
1answer
748 views

If I don't need USB power what should I do?

I am trying to conduct USB communication with a STM32F103RET6. I found this article on USB power. I think I need VBUS because any power will come from an external power source, so I connected VBUS to ...
1
vote
0answers
67 views

How to overclock STM32F303VC and make it work at 72MHz?

I am trying to overclock my STM32F303VC. Unfortunately I can't due to a HARD FAULT EXCEPTION. Could you help me to find the error? I also attached the code. ...
1
vote
0answers
39 views

Using STM32 with ESP8266 to get radio stream and play it

I am using STM32F407 board to communicate with ESP8266 using AT commands. Goal is to have STM32 tell ESP8266 to go to a live radio link then get the stream and put it through a VS1053 and out to a ...
2
votes
1answer
68 views

STM32F401 fails to enter DFU mode

I have a STM32F401 board and I was able to flash a keyboard firmware successfully via USB DFU by pressing boot0 and pressing/releasing reset buttons available on the board itself. The keyboard ...
2
votes
0answers
99 views

Migrating from STM32

Our company spent couple years streamlining development and porting everything from a mess of different platforms to one unified STM32-based architecture. And now with global chip shortage it came ...
1
vote
0answers
49 views

Sometimes can't leave USB DFU bootloader

I have an STM32F072 and am using the built-in bootloader (see AN3156) to flash it via DFU over USB. Flashing works fine, but often it fails to leave the bootloader afterwards. I am using ...
1
vote
0answers
35 views

Flash Write and HardFault Problem

I am using stm32f4 and I am trying to write some data on dual bank flash. I am calling the below function in my code after the clean related bank. ...
-1
votes
1answer
59 views

PCB Design STM32F407VG [duplicate]

I designed a PCB with STM32F407VG MCU .But I'm not sure if it's true.Is there anything I missed or wrong? This is my first PCB work. .
0
votes
1answer
60 views

Trying to use I2C ITs with HAL Functions

Hardware : STM32L452RET6 Software : STM32CubeFW_L4 v1.17 My problem : After using I2C with standard polling functions, i would like to use IT Functions to optimize my firmware. I try to work with ...
0
votes
0answers
45 views

STM32G431 SPI DR Problem

​ I`m using STM32G431 for practicing SPI protocol knowledge, but face some problem like below. ​I use 【HAL_SPI_Transmit_IT】API to send (0x5A,0xA5) data out, but measure with Oscilloscope and figure ...
0
votes
1answer
61 views

Using strtok function leads to clearing token before I can use it

I want to design a GPS car tracker that alarms when the speed reaches a certain value and I want to first test the code with the USB to TTL module which is connected to my stm32, and simulate sim808 ...
-1
votes
2answers
47 views

ST Nucleo board vs Disco board vs Eval board

What are the main differences between ST Nucleo boards, Disco boards and Eval boards and what is the main usage for each of them?
0
votes
0answers
100 views

Receiving garbage values in USART

I wrote a code in bare-metal mode and USART communication in Keil on stm32f107. But it keeps sending garbage while I expect it to send me "HI" repeatedly. Here are my steps: Wrote an ...
1
vote
0answers
80 views

How can I access my microcontroller's clock frequency and make it work at 16 MHz?

I wrote a USART communication code in bare metal mode (On STM32F107). And what I wrote in the "Baud rate" section( to select the baud rate): ...
1
vote
1answer
140 views

STM32H7 ADC with DMA

I am trying to scan multiple ADC channels on my STM32H753ZI Nucleo board. I have a TIM2 running at a super slow frequency (2Hz) which triggers the ADC conversions. I have it very slow so that I can ...
1
vote
1answer
50 views

How can I power an STM32 with multiple sources (not simultaneously)

I'm working on a sensor module that uses an STM32L4 but I hit a roadblock when trying to figure out how to power the thing. I was hoping that it could be powered by 5v supplied by USB External 5v ...
1
vote
0answers
43 views

STM32F4 Discovery ST-LINK no detection error

When these headers are on, I simply plug the STM32 to the computer by a micro USB expecting the embedded ST-LINK to upload the code to the system but I get "No ST-LINK detected!" error. Do ...
0
votes
1answer
80 views

STM32 USB OTG Hardware Implementation

I'm trying to implement USB OTG design with STM32L4R5ZIT6P . What's the difference between self-powered and bus-powered? What I'm trying to achieve here is that the board will be able to switch ...
0
votes
1answer
43 views

Where is the BOOT1 pin on the STM32F030C8 microcontroller?

The datasheet and reference manual for the 'STM32F030x4 STM32F030x6 STM32F030x8' series states that both BOOT0 and BOOT1 pins control the boot mode: However, neither the reference manual nor the ...
1
vote
2answers
49 views

FT232RL PCB Design

I am working on a PCB board design. I am using STM32 as processor. If I make a circuit as I left the schematic attached, can I transfer with USB without any problems? New Schematic:
0
votes
2answers
40 views

Is it necessary to include an external oscillator/clock for the STM32F030C8T6 board?

I am designing a PCB for a project. On the PCB, I plan on using the STM32F030C8T6 microcontroller. The resulting board does not need to do many tasks. I need the design to be able to do the following: ...
1
vote
0answers
55 views

STM32L4R9 USB not detected

I have been working on a project which involved an STM32L4R9VGT6. One part of the project is to use the USB feature to send data, and use the DFU. We made a custom ...
0
votes
0answers
21 views

STM32 CAN not working - MIT Cheetah Controller

First of all, we produced two of the MIT-Motorcontrollers from this Repository: https://github.com/bgkatz/3phase_integrated with this Firmware: https://github.com/bgkatz/motorcontrol The controllers ...
1
vote
1answer
33 views

Mails Usage on FreeRTOS (STM32L4)

I have an application on STM32L4 with multiple queues and threads without problems. I try to add a mail queue via the following function : But it seems the linker can't find the reference : I check ...
1
vote
2answers
56 views

An Assembler for STM32 and compatible with Ubuntu [closed]

I'm new to STM32. I want to learn the architecture of STM32 using assembly language. but Keil microVision MDK-ARM is not Linux compatible. What is the alternative of Keil to write an assembly code for ...
1
vote
1answer
40 views

How do I get this to work 3.2 ”TFT 480x320?

Help please. I am using STM32F401CCU board to connect to 3.2 ”TFT 480x320. I can't get it to work, the display just glows white and nothing happens. [http://imgs.elgrad.net/Upload/sub-4/21450.pdf]2 ...
1
vote
2answers
53 views

In STM32 the timers are connected to which bus?

I am using STM32H723ZG and in our application, I wanted to know to which bus (APB1 or APB2) the timers are connected. I need these detail, as I have to configure the timer to that particular bus's ...
1
vote
1answer
68 views

Changing PWM Pulse and GPIO Outputs Inside a Function (STM32)

hope you are all doing well. I am trying to learn STM32 for about two weeks now and right now I need to create a Library file which includes just one function. This function changes PWM Duty Cycle and ...
1
vote
1answer
48 views

LCD with PCF8574 I2C driver doesn't work on frequencies lower than 2 MHz (STM32F103 Bluepill)

I am working on a low power project using the STM32 "Bluepill" and I would like to use an LCD without the need to set the frequency for the HCLK (Core Clock) to anything beyond 500 kHz. ...
1
vote
1answer
53 views

LCD Backlight control brightness adjustment & cathode pin purpose

I'm working on an STM32-based project to which I'm planning to connect an LCD (in my case, it should be 800x480, specifics irrelevant for the questions). I do have disco development boards with LCDs (...
1
vote
1answer
45 views

Y-modem protocol frame count

When I use the Y-modem protocol on stm32 board, I’m faced with data count bytes. There are two bytes on the frame, one byte is data count another is 0xFF-dataCount. ...
3
votes
2answers
103 views

What is the difference between sampling time and sampling interval and sampling rate?

I understand that ADC sampling time is the ADC clock cycles for which the sample and hold capacitor is charged up to the channel input voltage. This is a configurable parameter and its value ranges ...
1
vote
1answer
34 views

Can HD44780 communicate with FSMC?

I am trying to use FSMC instead of I2C parallel interface to communicate with HD44780 LCD controller. FSMC is connected to SRAM and HD44780 at the same time and the clock frequency is MHz. The clock ...
1
vote
1answer
50 views

STM32 UART interrupt with callback not working

I am trying to make a small project with an STM32 which uses serial commands to control the rotation direction of a motor. I used UART interrupts and callbacks to try to achieve that. I am using an ...
2
votes
2answers
57 views

STM32 register does not change

I want to change the SDADC register while the STM32F373VBTx is running. First time, the MX_SDADC_init() set the SDADC gain. Second time, my software set the SDADC ...
-2
votes
1answer
53 views

Transmitter adc value with UART

Can the adc value be sent to the computer at a sample rate of 48 kHz real time? I am using STM32F103C8 and this FTDI.
4
votes
4answers
2k views

Did I kill my STM?

I have (had?) an STM32F429ZI. I was working with the ADC on PC0 and due to a hardware malfunction, 12V ran through the pin when the maximum voltage an ADC pin supports is 3V. Since then, whenever I ...
2
votes
1answer
94 views

DMA request is ony done 1 time in STM32 - Even if I have check marked it as Circular Mode

Cause for writing this question: I think I found a bug. This happens when I try to enable DMA for SDADC and Input Capture. Introduction: I'm using STM32F373VBTx processor and it working great! Except ...
1
vote
1answer
41 views

Is it possible to use "DDR Xccella Mode" when connecting an external RAM to the STM32?

MCU: STM32H7A3ZIT6 RAM: APS12808L-3OBMx This ram supports "DDR Xccela mode", where it transfers data on the rising and falling edge of the clock. I'm fairly sure my MCU supports the standard ...
1
vote
1answer
64 views

SIM808 freezes after one SMS using STM32

I am trying to design a GPS car tracker with a SIM808 module using a STM32F103RET6 header board. I want to get the location link messaged to my phone by sending an SMS to the module. Right now, my ...
1
vote
1answer
56 views

STM32L4 slow toggling GPIO pins

So for my project I use STM32L4R5 (custom PCB) and need to connect parallel 8 wires to control addresses in a sensor. I am toggling 8 GPIO pins in parallel providing the addresses, but speed is crazy ...
-3
votes
2answers
82 views

CMSIS - API or library

I have few question that I am not able to understand. What is the difference between API and library in embedded software? Any example would be appreciated. What is CMSIS - is it a library provided ...

1
2 3 4 5
71