STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

How to write external flash while the code is executing in the same external flash (QSPI configured in memory map mode)?

Dear all,I need to write the external flash while the code is executing in the same external flash (QSPI configured in memory map mode).I know that in this mode it's only possible (obviously) to read the flash but I need to update firmware.To do this...

Luca G. by Associate III
  • 1012 Views
  • 5 replies
  • 0 kudos

( STM32F411 ) TIM2 channel 1 can't toggle pin

F(clock) = 16000000 Hz Led is in TIM2 channel 1 , output compare mode , toggle on matchMy code is :void timer_set(){   // Enable TIM2 clock   RCC->APB1ENR |= RCC_APB1ENR_TIM2EN;  // delay for RCC  __asm("dsb");   TIM2->CNT=0;   TIM2->PSC = 15999...

Resolved! STM32H750 GPIO G11 not work as output mode

I have two hardware boards mount with STM32H750 . I want to set the GPIO G11 to high , the code as below :  __HAL_RCC_GPIOG_CLK_ENABLE();   HAL_GPIO_WritePin(GPIOG, GPIO_PIN_11, GPIO_PIN_SET);    GPIO_InitStruct.Pin    = GPIO_PIN_11;   GPIO_InitSt...

fema by Associate III
  • 845 Views
  • 3 replies
  • 0 kudos

Resolved! PWM Input capture trouble

Hi everyone, I'm trying to capture a PWM signal's duty cycle and period using a timer (TIM3 in this case) in PWM input mode. However, when I run the following code, I see no updates in the CCR1 and CCR2 registers, which should have the values of my ...

BKoll.1 by Associate II
  • 622 Views
  • 1 replies
  • 1 kudos

STM32G071RB sleep current

Hi,I am currently playing with a G071 nucleo board for possible use in a future project. I have trouble achieving datasheet power figures.At 16Mhz (regulator mode 2) using HSI, in run mode I get 1.20 mA with a While 1 loop. This is 0.1 mA above data...

Trilys by Associate II
  • 596 Views
  • 2 replies
  • 0 kudos

STM32L0 ADC with External Trigger and DMA

Hello,I am having a bit of a problem with using the ADC on the STM32L072 in combination with the External Trigger and the DMA.I have just two conversions set not continuous mode and not discontinuous, but the DMA is set to take 32 results.If I trigge...

EHarr.1 by Associate II
  • 765 Views
  • 3 replies
  • 0 kudos

SPI issues while trying to communicate with ILI9341. Only 0 comes in over miso and FRLVL decreases without reading from the dataregister.

For a couple of days now I have been trying to get some visuals on a ILI9341 LCD screen.I'm working on a STM32F723E-DISCOVERY board. The LDC screen works with an 8080 controller. According to the manual of the device the internal IM bits define wethe...

Zeron by Associate III
  • 1207 Views
  • 4 replies
  • 0 kudos

STM32F4 disco TIM1 PWM DMA mode not work.

i want to generate variable duty PWM using TIM1 & DMA but it not work.uint16_t variable_duty[10] = {0,1000,2000,3000,4000,5000,6000,7000,8000,9000};   HAL_TIM_PWM_Start_DMA(&htim1,TIM_CHANNEL_1,(uint32_t*)variable_duty,10); HAL_TIM_PWM_Start_DMA(&hti...