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

Setting up UART with STM32L4RGTx

The prompt here is to debug the issue with UART setup on the STM32 chipset. I've followed a couple of online blogs to understand and setup the UART interface. I want to transmit (only) a dataframe (...
1
vote
2answers
389 views

STM32F4 and SIM800L logic level

I am currently using an STM32F401RE that I have to interface with a SIM800L GSM module via UART. In a first "toy example" I used Arduino and found no problems, but passing to the STM MCU I am unable ...
5
votes
2answers
591 views

What is DMIPS/MHz?

As I was reading the datasheet of STM32F103C8T6, I saw that it had 1.25 DMIPS/MHz (Dhrystone). What is DMIPS/MHz? I am adding the link to the datasheet here
0
votes
0answers
60 views

Why is the over sampler slowing down my signal?

at it again. This time I am playing around with oversampler in the STM32L432KC. Page 425. Currently sampling at 44.410kHz. Making my Nyquist rate ~22205Hz. Everytime I enable the oversampler to have a ...
2
votes
1answer
113 views

Flash and debug of multiple STM32 in JTAG with J-LINK

I have a board where 3 STM32 are connected to a JTAG port. The 3 STM32 are daisy chained. I am using a JLINK EDU Mini with Atollic TrueStudio IDE. One STM32F746 is a master for the two slaves ...
0
votes
1answer
207 views

STM32 DAC Trigger

I am Trying to use the DAC output on my STM32L053R8 NUCLEO Board. I generate the corresponding Sin-Wave values to set the DAC Values like this. ...
0
votes
2answers
51 views

Recieving and processsing array of data on STM32

I am trying to use RealTerm to send a .txt file containing a 10X10 array of data to my STM32 NUCLEO board using UART. So far I have been using HAL_UART_Receive_DMA and I have been able to store simple ...
1
vote
1answer
3k views

LWIP Raw UDP API on STM32F2/F7 generated by CubeMX not sending on startup, requires an arbitrary amount of resets to work

I'm working on a project using the LWIP raw API with the stm32f2 and cannot get it to work. The basic concept of the project is to have the stm32f2 acting as the actuator and gets instructions from ...
2
votes
0answers
58 views

MCP2551 with STM32 MCU

im learning about the CAN protocol, and bought the transceiver module MCP2551 like this: I made the driver for CAN controller first in loopback mode for debug, im sending the numbers 1,2,3 and 4 with ...
0
votes
1answer
231 views

AC dimming with STM32 timers

I'm using an STM32 for AC dimming, for which I use a GPIO output (or timer channel out) to drive a triac, whenever I get a zero crossing detection (rising edge). Is there a way to solve this only ...
0
votes
0answers
46 views

How to receive data via SPI Interface with No Master Command but Multiple Slave Commands?

I am using STM32f401rct6 microcontroller - master (No Commands) and LTC6811 battery Monitoring IC- Slave (Multiple Commands) I have developed full firmware perfectly including drivers. But i have a ...
1
vote
1answer
46 views

STM32F405RGT6 for AD7768 ADC fast enough?

I want to operate 2 simultaneous channels of an AD7768 A/D converter @ 256 kS/s. Its resolution is 24 bit which yields a data rate of 2 x 24 bit x 256 kS/s = 12.288 Mbit/s. Using a microcontroller, I ...
0
votes
0answers
38 views

STM32F100RBT6 basic initialization code does not work

I have been currently working with the HAL libraries but I got fed up with it and want to access registers and make better use of the uC itself. So, I have a code that should blink a LED and I have ...
1
vote
1answer
173 views

STM32 TIM2 PWM and TIM 5 basic mode simultaneous output issues

Using an stm32f411re I want to generate a PWM of 20% Duty Cycle with a period of 200uS and simultaneously I want a basic timer to be ticking in the background that sends an interrupt every 70uS (that ...
3
votes
4answers
1k views

Why is my output signal aliased when my sampling rate is decently above the Nyquist theorem?

I'm really confused on what's happening here. I have my ADC sampling at 44.410kHz and any frequency above 11Khz it would alias the output signal. The max target frequency is 20kHz for clarification. ...
1
vote
1answer
30 views

STM32F4 Discovery ADC trigger using Timer 2 and DMA | CMSIS Core

I am working with a very old problem which is to convert ADC and send to UART via DMA. I am stuck at making the correct sampling time. What I had done so far is to configure TIMER2 and ADC. I Used ...
0
votes
1answer
63 views

STM32 Unwanted Bootloader on first power-up

According to this, seems like stm32 boot process is as follows: Check if FLASH is blank. if yes, goto bootloader mode Check if BOOT0 pin is asserted. if yes, goto bootloader mode goto Program mode ...
0
votes
2answers
755 views

Buck-Boost Controller Arduino Nano vs STM32

I have 900W (150W*6Panels) solar panels and 12V inverter (1000VA) which have inbuilt PWM solar charge controller. The distance between pannels and inverter is around >10m and the wires are 6 sq mm ...
0
votes
1answer
69 views

STM32 HAL I2C always sends 0xFF as first byte when responding to master using HAL_I2C_Slave_Transmit

I have an STM32G4 using the HAL function HAL_I2C_Slave_Transmit to respond with some data when requested by a master on the I2C bus. In the image below you can see the device sends 0xFF followed by ...
0
votes
1answer
50 views

Configure SPI Slave to handle data coming at the wrong time

I am experimenting with the SPI protocol (fast speeds where 5 bytes of data is transferred in slightly less than 500us) on the STM32F410 configured as a SPI full duplex slave. A master device sends a ...
2
votes
1answer
397 views

STM32F0 Capacitive Touch Not Detecting

I am trying to implement a simple capacitive touch sensor using the STM32F0's TSC peripheral. I currently have the following setup. (PA1 and PA2 are switched in the schematic, accidentally) simulate ...
0
votes
1answer
42 views

FTDI and ST LINK devices together to STM32

I have an STM32 board (blue pill) that I am programming with the Arduino IDE. I couldn't program it using an FTDI adapter because I couldn't make the Arduino IDE communicate trough the USART for ...
7
votes
7answers
65k views

Getting PWM to work on STM32F4 using ST's HAL libraries

I'm trying to switch to the ST HAL libraries and can't seem to get the PWM to work. Compiles fine, just doesn't start. In my main() I call the Timer initialization function: ...
3
votes
1answer
357 views

What is the meaning of this schematic symbol (labelled COMP.J1 JPAD3)

I am trying understand the schematic for a Waveshare Core 407I board, with an STM32F407IGT6 MCu. What is the meaning of this schematic symbol (labelled COMP.J1 JPAD3)? Link to full schematic: https://...
0
votes
0answers
43 views

stm32f401 usart: start bit detection sequence when oversampling by 8

I'm currently using usart on stm32f401. I'm wondering how the receiver detects start bit when oversampling by 8 is selected. The reference manual (RM0368) states that the start bit detection sequnce ...
0
votes
1answer
422 views

STM32F4 input capture

How can get input capture values from STM32F4 for measuring the duty cycles of the four different signal? Here is one channel code: ...
0
votes
1answer
151 views

PN532 (SPI) how to get firmware version

I am trying to use PN532 for Mifare card reading on STM32F4. Before even trying to go forward I have tried to read firmware version to verify that all works ok and cannot do it. I am trying to base ...
0
votes
1answer
2k views
0
votes
1answer
30 views

How to use chip XL6007E1 to build a boost ciruit?

My ciruit: Input: 3.7V But no matter how I adjust the potentiometer, the voltage did not rise. How can I solve it?
0
votes
1answer
50 views

What is the value present at the first address of flash memory of stm32 for every firmware?

Every firmware of Stm32 microcontrollers, the first value is starting with 0x2XXXXXXX, while working with custom bootloaders, I found that this is an address on SRAM, 1)What is actually present at ...
0
votes
1answer
43 views

__enable_irq() Intrinsic Infinite Loop

I'm implementing a system based on the STM32L0 line of microcontrollers that uses an external interrupt to trigger an SPI read from an external sensor (a DW1000 UWB module). I am not running any sort ...
0
votes
0answers
50 views

Understanding a generic flow of a simple data logger via FreeRTOS

So I came up with this simple flow of the program that could be done without RTOS but I'm using it for the sake of learning. The generic idea is to get the user input over UART, and if it's something ...
0
votes
0answers
30 views

Linker error in Iar

When I compiled a program using stm32l476 micro controller using IAR embedded workbench IDE, I am getting the following linker error. Error[Li005]: no definition for "rtt_seq" [referenced ...
0
votes
2answers
109 views

Sending large ammount of data with USB

I'm currently facing a big problem. I've an MCU (STM32L4) connected to an SD card (SDIO) which stores tons of data (5Gb) from a microphone. I need to send this data as fast as possible from SD card to ...
0
votes
1answer
48 views

STM32 Device_only USB_OTG

I a working on a project around the STM32H7 (Nucleo STM32H743ZI2) on which I am using the user USB to communicate through CDC interface. Everything is working fine, however, I just noticed that this ...
0
votes
0answers
56 views

CANBus problem with STM32

I am working with CAN Bus on the Nucleo H743ZI2 (STM32), I have set up the times for a clock souce of 10 Mhz, and can baud rate of 1 Mbps. Everything seems to work correctly until the motor is turn on ...
0
votes
1answer
43 views

STM32 HAL I2S problems

So I tried to power up codec (CS4272) together with my F401 board. After a lot of tweaking I got I2S to work and send data, but there were gaps. Upon further investigation it looks like ...
1
vote
0answers
43 views

STM32 H743 HRTIM with multiple PWM outputs

my question got closed on the programming forums, and was told to post here. I have a project with an STM32 H743 on which I am generating 6 PWM channels to control a brushless motor. Everything is ...
0
votes
1answer
34 views

Essential difference between normal irda mode and low-power irda mode?

guys, I'm learning stm32f401x mcu. All I have is an rm0368 reference manual pdf file. No mcu chip right now. From the manual, I learnt that PSC instead of ...
0
votes
0answers
56 views

ST link not working when PCB is powered with a 3v3 smps

I am programming a stm32 (2 wire SWD: SWDIO and SWCLK) series MCU with a st-link V2 i cut off a nucleo board. I usually just connect the 3V3 supply off of my arduino, but atm i am trying to make a box ...
-1
votes
1answer
55 views

RTC time is not kept in Stm32f103 by vbat

I am using stm32f103c8 and External Clock Crystal (LSE). I connected the Vbat with a 1220 coin battery. But when I turn off VDD and turn on the micro again, the time and date are all zero. Why time is ...
0
votes
1answer
39 views

HC-05 connection to Stm32f103c8

I wrote a code on stm32f103c8 to communicate with the HC-05 Bluetooth module. So far I have no problem and I receive and send any data correctly, but once I disconnect from the module via mobile phone ...
1
vote
1answer
769 views

connect Micron SDRAM to STM32H7 FMC but what should I do with DQM pin?

I plan to connect SDRAM from MICRON MT48LC series ( datasheet. The pin connection diagram is automatic generate by STM32CubeMX ( STM32H743 ). The setting is an 8-bit data bus, a 13-bit address, 4 ...
0
votes
1answer
490 views

Calculate voltage of a 16-bit differential ADC that gives a two's complement value

I am working with a 16-bit differential ADC and I would like to know the difference between this latter and a single ended ADC especially: How to calculate voltage from the ADC value ? Is it like ...
1
vote
1answer
128 views

One led is blinking too frequently using the hardware timer (stm32f103vdh6)

i recently started my internship using embedded C and i'm having some trouble with one of the tasks: Two leds should be blinking at 1Hz, one using the hardware timer, and the other one using the RTX ...
0
votes
1answer
88 views

I2C communication with multiple slaves

Hi guys may I ask for your inputs on the I2C communication. I am using STM32F103C8 MCU with 2 slaves on the I2C bus. 1st slave is PCF8574 IO expander and 2nd slave is MCP4725 DAC. I'm using CubeMX to ...
0
votes
1answer
51 views

STM32F103C8 SPI1 clock frequency too low (~32kHz)

I am trying to program SPI1 on STM32F103C8T6 (black pill board). I have configured it as follows: ...
0
votes
0answers
21 views

STM32 NUCLEO-F302R8 UART : RX pin does not trigger RX callback

I'm using an STM32 NUCLEO-F302R8 and wish to communicate with it using any UART instance (1,2,3) through its RX/TX pins. So far, I've managed to read from the TX pin but never managed to send messages ...
0
votes
0answers
9 views

How to solve the netIF_SetOption function(IP address changing problem) in CMSIS?

I am following this https://www.keil.com/pack/doc/mw/Network/html/network_create_app.html#Runtime%20Configuration tutorial about the Network library with CMSIS. I could change the Mac address via ...

1 2
3
4 5
62