STM32 MCUs Products

Ask questions, find answers, and share insights on STM32 products and their technical features.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

I have a button connected to STM32F405. I am using external interrupt with the button. Inside the callback of the external interrupt I am sending a command to retrieve some data from another microcontroller as a loop. But I am receving only data once.

void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { if(GPIO_Pin == GPIO_PIN_10) { for(volatile int j = 0; j<3000; j++) { char Txbuffer = "Read\n"; HAL_UART_Transmit_IT(&huart2, (uin...

cjaya.1 by Associate II
  • 761 Views
  • 2 replies
  • 0 kudos

Can a variable be locked at hardware level ?

I changed out of curiosity the max speed variable of my car ECU from 250Km/h to 60Km/h to see if the car reach that speed and hold there or I can go beyond and get a notification but it turns out that I cannot exceed that limit.Now, I'm unable to get...

Vertinhol by Associate III
  • 833 Views
  • 3 replies
  • 0 kudos

STM32U5 sometimes does not reconfigure IWDG.

At startup, I set the watchdog timer to 8 seconds.IWDG->KR = IWDG_KEY_ENABLE; IWDG->KR = IWDG_KEY_WRITE_ACCESS_ENABLE; IWDG->PR = IWDG_PRESCALER_64; // 8 s IWDG->KR = IWDG_KEY_WRITE_ACCESS_DISABLE;Further, in the interrupt, when the button is pressed...

Sheller by Associate
  • 798 Views
  • 1 replies
  • 0 kudos

Trigger out and ADC using timer TRGO

Hello ST Community,I have a question about the way to trigger out an ADC using internal timer TRGO, i would like to use an STM32L4 or STM32U5 for this function, so i'm using an External Time Reference (ETR) signal and i would like to know if there is...

ABD74 by Associate
  • 2044 Views
  • 3 replies
  • 0 kudos

Implementation of Dali DT8 Protocol

I would be very grateful if anyone has information about setting up the Dali DT8 4Channel protocol and can guide me.And does anyone know that DiiA standard certificate is given by ST company to buyers who want to use Dali protocol? In other words, is...

HRTIM center-aligned mode with 100% duty?

Is it possible to achieve 100% duty cycle on HRTIM using center-aligned mode?when HRTIM1->sTimerxRegs[5].CMP1xR = 2124 (PERIOD-1), the duty is almost 100% end when HRTIM1->sTimerxRegs[5].CMP1xR = 2125, the duty drops to zero. As per the code below, ...

Asantos by Senior
  • 1279 Views
  • 2 replies
  • 0 kudos

Resolved! Hi! I am having isues regarding hal function for setting the pwm duty cycle. I am using stm32f401cd. __HAL_TIM_SET_COMPARE is not setting the value.

aI don't have a scope but i can measure from multimeter, if it is there. I am guessing there is a bug or I am doing something wrong. I think software focuses on Pulse value and does not recognize __HAL_TIM_SET_COMPARE command. I uploaded the code. An...

BELMA.1 by Associate II
  • 1332 Views
  • 2 replies
  • 0 kudos