STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

How to use SPI + DMA with software CS?

Hi All, I am trying to use SPI+DMA in stm32f401 nucleo 64. SPI + DMA is working successfully on both transmit and receive data. I configured spi + dma in software cs since I have multiple slaves, but that means I have to pull the gpio up and down for...

jb by Associate II
  • 2590 Views
  • 5 replies
  • 0 kudos

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
  • 702 Views
  • 2 replies
  • 0 kudos

STM32F767 - low power detection

In STM32F7 controller is there a way to detect low power mode in software and how long controller will work before it completely shuts off.

AShel.1 by Associate III
  • 490 Views
  • 2 replies
  • 0 kudos

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
  • 617 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
  • 829 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
  • 340 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
  • 1132 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
  • 1249 Views
  • 3 replies
  • 0 kudos