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

Resolved! Can't disable backup domain write protection in PWR_CR1

Hey there,I'm trying to access STM32G071's backup register TAMP_BKP0R, PWR_CR1 is set successfully, however I can't store anything in the backup register.enum backup_reg{foo0, foo1, foo2, LOW_POWER_RESET};      RCC_APBENR1 |= RCC_APBENR1_PWREN_MASK; ...

luuuuuuu1 by Associate II
  • 3484 Views
  • 20 replies
  • 0 kudos

I2C Circular mode tx

Hello. I'm trying to set I2C on the stm32l052 processor to send data continuously in circular mode. It sends once and then stops. The code appears below.

Snm.1 by Associate III
  • 490 Views
  • 0 replies
  • 0 kudos

Code reset with message "Tue Apr 19, 2022 10:21:53: The stack pointer for stack 'CSTACK' (currently 0x2002FFE8) is outside the stack range (0x2002FFF8 to 0x20030000)"

I was debugging some code in STM32F4 controller. I build and flash some code related to DMA, During the debugging process the code is getting reset.Debug log is attached belowTue Apr 19, 2022 10:21:53: The stack pointer for stack 'CSTACK' (currently ...

JohnsAby by Associate II
  • 464 Views
  • 0 replies
  • 0 kudos

To design STM32F051 as Slave.

To design STM32F051 as Slave.When receive the data from Mater, the STM32F051(Slave) can return data to the Master.Current design:(1) After the MCU is initialized, it will call HAL_I2C_Slave_Receive_IT() to set the I2C interrupt to the receiving stat...

Lweij.1 by Associate
  • 325 Views
  • 0 replies
  • 0 kudos

How to fix ST-Link Nucleo board unable to connect, where the target is not found and the st-link is showing chipid 0x0000

Hello I ordered two NUCLEO boards, to start some projects on the ST32G03 platform. I was using the board with out an issue and connected to am Ubuntu 20.04 sys, updated the firmware on both and now one is working and the other is not, here is an outp...

JMora.7 by Associate II
  • 1699 Views
  • 3 replies
  • 0 kudos

STM32F429's I2C cannot send data after calling HAL_I2C_Master_Transmit_DMA, Then both the SDA and SCL switch high level to low? it always return HAL_I2C_STATE_BUSY_TX.

HAL_StatusTypeDef HAL_I2C_Master_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size) { if(hi2c->State == HAL_I2C_STATE_READY) { if((pData == NULL) || (Size == 0)) { return HAL_ERROR; }   ...

Resolved! TIM3 Quadrature Encoder Mode Strangeness

I'm got a Nucleo-F746ZG connected to a DC motor, which I'm driving via PWM using TIM1.I'm using TIM3 in quadrature encoder mode to read the encoder on the motor. The problem I'm encountering is the TIM3 CNT register is not incrementing fast enough. T...

jerry2 by Senior
  • 2288 Views
  • 10 replies
  • 0 kudos