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

Delay function using timers - LED blinks too fast

void delay_setup(void) { rcc_periph_clock_enable(RCC_TIM6); timer_set_prescaler(TIM6, rcc_apb1_frequency / 1000000 - 1); timer_set_period(TIM6, 0xffff); timer_one_shot_mode(TIM6); }   void delay_us(uint32_t us) { TIM_ARR(TIM6) = us; TIM_EGR(TIM...

BSerb by Associate II
  • 712 Views
  • 1 replies
  • 0 kudos

Resolved! How to reset SPI interface after HAL_SPI_TransmistReceive_IT?

Hello,I'm working with a STM32F446 and I configured the SPI as slave.In my process I receive x bytes of data in interruption. But during the process, this size of data changes to y. But the function HAL_SPI_TransmitReceive_IT(x) has already been call...

Saredo by Associate III
  • 1123 Views
  • 1 replies
  • 0 kudos

using STM32L0538, is it possible to make SysTick_Handler count in microseconds not in milliseconds and if it is, where to start?

I'm writing some code with PWM and I'm using very high number of periods in short time causing my LED's to dim very choppy. I think it's not working properly because timer is to fast and counting in milliseconds and I need it to count in microseconds...

DSimp.1 by Associate III
  • 619 Views
  • 4 replies
  • 0 kudos

Resolved! SPI slave 1 bit shift after power on

Hi, I'm working with a STM32F446ZET6. In this case, I configured my SPI as slave, and I use the HAL_SPI_TransmitReceive function.The problem is that when the slave shoud respond with the value 0x11, I receive 0x22 on the master side.I have checked th...

Saredo by Associate III
  • 1005 Views
  • 5 replies
  • 0 kudos

Resolved! P-NUCLEO-IHM002 doesn't run

I have a brand new P-NUCLEO-IHM002 out of box. I configured it according to the instruction. however, when power up, D11 on IHM07M1 is not light at all. when i push the blue button, no response. LD3 on Nucleo-F302R8 is on, LD1 is flashing. Can you he...

SLi.11 by Associate II
  • 691 Views
  • 3 replies
  • 0 kudos

I just realized workshop is at 8:30 AM CET time. I live in the USA; with time difference of T-8 hours (to USA MDT) time is 00:30 AM. I bought the Evaluation Nucle-H7 board required already, is there a way to record the workshop/webinar video?

I would be more than willing to participate regardless of time, but due to health reasons I can't stay up all night. I really need the workshop to get up to speed on the STM32H7 for a project I am working on. Thanks!

Cmart.21 by Associate
  • 406 Views
  • 1 replies
  • 0 kudos

Recover from Hard fault after executing dynamic code.

I have developed a dynamic loader that works in an STM32 (cortex-m4) microcontroller. Basically, the base firmware is in charge of writing new dynamic code into flash, and executing it. It works as expected. but I am trying to make the execution of t...

VC.1 by Associate II
  • 1398 Views
  • 4 replies
  • 0 kudos

Controlling WS2812B LEDs with VLDISCOVERY (F100)

Hello,I am in the process of writing some code to drive WS2812B Leds with PWM via DMA. Unfortunately there are usually three pulses too much.Does anyone have an idea what this could be. Attached are a few excerpts from my program code. Thanksmain.cin...

PeterM1 by Associate
  • 413 Views
  • 0 replies
  • 0 kudos