STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! Understanding STM32F103C8 AD Vref and AD range.

Do I understand the datasheet correctly when I believe the internal 2.1v reference is something internal, and the AD is still operating within VCC/3.3v as upper limit? Copilot suggested this:  // Enable ADC1 and configure itRCC->APB2ENR |= RCC_APB2EN...

pilot by Associate III
  • 687 Views
  • 5 replies
  • 1 kudos

STM32G0 reseted after GPIO interrupt happened

I'm using gpio interrupt inside there void HAL_GPIO_EXTI_Rising_Callback(uint16_t GPIO_Pin){static uint32_t push_time;if(GPIO_Pin == IS_FUSED_Pin){pin_int_now = HAL_GetTick();if(fuze_push_time + DEBOUNCE_INTERVAL < pin_int_now){LED_Green_On();fuze_pu...

Screenshot 2024-11-02 at 15.23.02.png
Bigdan by Associate II
  • 814 Views
  • 7 replies
  • 1 kudos

Array initialization

I know that the question will be trivial, however, I do not understand why the instruction uint8_t dataRx[4] = { 1 }; does not initialize all the elements of an array to 0 ... but only the first one:I have programmed little in the last while so I wil...

stm32 array 2.png
luke514 by Senior
  • 343 Views
  • 2 replies
  • 5 kudos

SPI communication (Receive Only Master)

We are trying to develop a device that uses SPI communication (Receive Only Master).Are there any sample programs for SPI communication (Receive Only Master)?Which should be executed first: "Receive Only Master HAL_SPI_Receive" or "Transmit Only Slav...

STM32L0 STOP and STANDBY mode.

I have some questions. I read that STOP mode has a "RAM retention", so when it wakes up it the whole data is still intact (not cleared).When the RAM retention is off then the data is gone when it goes to STOP mode. So when it Wakes up does it restart...

Xenon02 by Senior
  • 1361 Views
  • 13 replies
  • 4 kudos

STM32H7B0 How to get input frequency of timer 3

Dear,Used MCU: STM32H7B0, 100 pins.In the datasheets we had found that TIM3 use the APB1 peripheral clock.In our case is this 120MHz. But when we use the function "HAL_RCC_GetPCLK1Freq()" we become 60MHz.This isn't correct. So what function should we...

OGhis_0-1730552934505.png
OGhis by Senior
  • 337 Views
  • 4 replies
  • 1 kudos

Resolved! STM32H7B0 ADC 2 incorrect sample rate.

Dear,Using STM32H0B0, 100 pins version.we wish to sample 1 input with ADC2 at a fixed frequency. This must not deviate and for this we use timer 3 set to the desired sample rate.In the pictures we use 100Khz, but later to go to 1Msps.So the timer 3 i...

OGhis_3-1730578411629.png OGhis_0-1730577254510.png OGhis_1-1730577267859.png OGhis_2-1730577285068.png
OGhis by Senior
  • 320 Views
  • 1 replies
  • 0 kudos

STM32 SPI master and slave issue

Hello everyone.I am working on a project and I have two stm32 MCU connected over SPI interface. One acting as a master (STM32H743VIT6) and the second acting as a slave (STM32C011U6) in full duplex.When sending data between the two devices the receive...

sousa_1-1730544656409.png
sousa by Associate II
  • 507 Views
  • 5 replies
  • 0 kudos

Unexpected timing with nops

Hi,I am confused with pin toggle timings, why I am getting non equal pulse widths like in the picture, I turn off all compiler optimizations and disable all of the interrupts, code is simple pin toggling. My controller is STM32L431 running on 80MHz.T...

pic2.png
tompa by Associate III
  • 1190 Views
  • 14 replies
  • 8 kudos