STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Hello, i try to use the SPI interface on STM32f3 DISCOVERYBOARD. My problem is that my clock toggles, even though the data transfer is complete. The busy flag is not yet reset either. What can that be? Ther is an Osziplot wich shows the Problem

This is my source code for the SPI configuration:static void SPI1_init(){   //GPIOs konfigurieren   //PA4 Chip select   //PA5 clk   //PA6 MISO   //PA7 MOSI   uint8_t ch;   while(SPI1->SR & SPI_SR_FTLVL); // Wait until no more data to transmit   while...

BKopp.1 by Associate II
  • 1554 Views
  • 4 replies
  • 0 kudos

Resolved! If i want to change pulse width on ONE timer pwm channel, do i have to rewrite ALL active channels every time i change one?

I am using one timer (timer2) as pwm generator and i am using 3 channels on it. I wish to set each channel pulse width independently (they are controlling LEDs) from 1 to 100. But from the generated stcubeIDE function, it looks like that the channels...

KSkor.1 by Associate III
  • 639 Views
  • 2 replies
  • 0 kudos

Resolved! Encoder code acting strangely on

So I've got some very basic code for a STM32 to read an encoder using timer 1 in encoder mode.This first routine works fine counting up and down as expected, printing CW (Clockwise) while counting up and CCW (Counter Clockwise) while counting down......

Omiks3 by Associate
  • 1119 Views
  • 3 replies
  • 0 kudos

STM32 MCU stucks after power cut-off

Here is my process :I supply my board with an USB cable.Then I flash my stm32L4 with a segger / st-link.My firmware goes in shutdown mode.I unplug the USB cable. Thus the power is suddently off.After that, I wire a battery to my device. Thus the MCU ...

SimonF by Senior
  • 1623 Views
  • 5 replies
  • 0 kudos

Regarding modbus to write negative values.

Hi, i am new to stm32 i need to write negative values (signed integers or float) in my modbus and transmit it to my PC. But i am not able to write negative values it shows some other values if i transmit negative values . can anyone help me w...

Lchal.1 by Associate III
  • 1642 Views
  • 5 replies
  • 0 kudos
龙承.1 by Associate
  • 354 Views
  • 0 replies
  • 0 kudos

PWM using Timer with STM32F4

Dear ST,I am coming back to you to configure a PWM peripheral with STM32F429.I am familiar with TI DSP and I have to implement it with ST this time.Could you help me to configure TIMER1 for symmetrical PWM and trigger an interrupt to trig ADC. I ma u...

What is RCC_APB2Periph_AFIO clock signal?

Posted on March 20, 2012 at 06:20Hi. Could You help me to understand somethink. In STM32 like STM32F103c8... there is a clock signal called RCC_APB2Periph_AFIO. When should be turned on this signal, always when I use peripherial, like Timmer, AD, US...

sholojda by Associate III
  • 2049 Views
  • 7 replies
  • 0 kudos

STM32G474 LSE oscillator not ready ?

Hi Folks,Greetings !With a Nucleo-G474RE MB1367C, with an onboard 32.768kHz crystal:I am trying to turn ON the LSE oscillator, but the LSE oscillator does not get RDY at all.This is what I tried to do:void SystemClock_Config(void) { LL_FLASH_SetLate...

Slow increasing voltage MCU (STM32H743) reset

Hi team,We are increasing the Input voltage 0.5 Volts/ Minute to Input of PMIC. PMI switches on after the Input voltage reaches 3.7 volts.After PMIC switches on it gives 3.3Volt Output but Controller is not getting reset.If we Power up instantly cont...