STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

UART NOT Transmit if there is a delay in while loop

Hi, I generated the code through CUBEMAX, using USART3 with DMA and trying to send couple of bytes by call HAL_UART_Transmit_DMA in main while(1) loop. If I add the delay after a transmission even a 1ms it stop transmitting but if I remove the delay ...

ARehm by Associate III
  • 586 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
  • 670 Views
  • 3 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
  • 1014 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
  • 1017 Views
  • 3 replies
  • 0 kudos