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! I'm falling in a hardfault with the STM32F405VG during a ST routine "HAL_SPI_Transmit". Can you help me please ?

Hi everyone,First, my program was running good since many weeks and last week I added some code and from this day, each run of my program, i'm falling in hardfault handler... all the time in "HAL_SPI_Transmit".First thing i've done is to increase (so...

0693W000003BaozQAC.png 0693W000003Bau4QAC.png 0693W000003BavqQAC.png 0693W000003BawKQAS.png
GLE B.1 by Associate II
  • 646 Views
  • 2 replies
  • 0 kudos

Trying to write data over I2C to an STM32F103C6 working as a slave in IT mode only gives a hard fault and the data is not stored in the array

***Edited to show the probably all the code involved without including the HAL libraries***Hi all, I'm using HAL libraries to code an STM32F103C6 as a slave and I'm using HAL_I2C_Slave_Receive_IT(), debugging I can see that the slave recognize its ad...

0693W000003BdFoQAK.png
VRami.1 by Associate III
  • 895 Views
  • 3 replies
  • 0 kudos

STM32F407VG - Input capture, DMA(mem-peri) Configuration.

Im working with STM32F4 DISCOVERY board. I'm trying to generate DMA request to write to GPIOD[15:8] pins on button press (PA0) by input capture timer configuration (TIM2) .I presume my configuration of timer is wrong, because i used very similar DMA ...

DMich.1 by Associate
  • 381 Views
  • 0 replies
  • 0 kudos

Resolved! Wakeup from standby falling edge

Hello, i'm working with stm32l412cb on custom PCB, and I ran into trouble.Is there any way to wake up MCU from standby by falling edge? Here is scheme and code:void enter_sleep() { HAL_EnableDBGStandbyMode(); //HAL_GPIO_WritePin(GPIOC, GPIO_PIN_13,...

0693W000003BWPCQA4.png 0693W000003BWZqQAO.png
makavity by Associate II
  • 1191 Views
  • 2 replies
  • 0 kudos

HAL_SPI_Receive() issues, more than 1-byte SCLK

Dear all,I have been trying to read ADC value from an ADC chip (TI ADC161S626) through SPI receive only master (The STM32 used were STM32F103C8T6). However, I realised when I request to read one byte with HAL_SPI_Receive() function, there are more th...

0693W000003BWQPQA4.jpg
YChen.41 by Associate
  • 1395 Views
  • 3 replies
  • 0 kudos

Hi all, I am trying to get the USART1 working with STM32F072VB micro (only USART-1 and no other peripheral). At CubeMX, I have seleted PA9 and PA10 as the GPIO pins configured for USART-1 and have selected the NVIC option at USART configuration at CubeMX.

huart1.Instance = USART1; huart1.Init.BaudRate = 9600; huart1.Init.WordLength = UART_WORDLENGTH_8B; huart1.Init.StopBits = UART_STOPBITS_1; huart1.Init.Parity = UART_PARITY_NONE; huart1.Init.Mode = UART_MODE_TX_RX; huart1.Init.HwFlowCtl =...

JK.4 by Associate II
  • 1174 Views
  • 3 replies
  • 0 kudos

Resolved! STM32L151 custom bootloader problem with HAL_UART_ErrorCallback

Hi all! I use STM32L151VDT7X, CubeMX HAL and Atollic TrueSTUDIO® for STM32 9.3.0 in my project. I need to upgrade my firmware on-the-air and so I made “bootloader + image�? application:1)     Edited in bootloader linker file:MEMORY { RAM (xrw) : ...

Alexor by Associate II
  • 856 Views
  • 3 replies
  • 0 kudos