STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! STM32F756 Alternate function

Hi there, i come across AN4760 p55, configuring GPIOB with alternate functions :GPIOB->AFR[0] = 0x0A000900;  where does this 0A000900 come to config PB2 n PB6 to QSPI alternate function?GPIOB->AFR[1] = 0x00000000; ....GPIOF->AFR[0] |= 0x9900000000;  ...

StanJerm by Associate III
  • 4604 Views
  • 4 replies
  • 0 kudos

Resolved! Timer compare function interrupt not triggered sometimes

Hi everyone, I meet a problem and I'm not sure it's MCU issue or I program not proper.I meet this issue both on the STM8 and STM32 MCUs.I enable TIM_2 Ch1 as input to capture the signal and TIM_2 Ch2 as output to do the compare function. void init_TI...

Joey_Duh by Associate II
  • 4388 Views
  • 11 replies
  • 3 kudos

Resetting DMA memory pointer for USART TX

Hi,I'm using USART with DMA to transmit a fixed sized packet message from master to slave, and have the slave send back a fixed size response.   I have a freeRTOS enabled.  I have DMA setup in circular mode, and set the buffer size to twice the size ...

LMorr.3 by Senior II
  • 1154 Views
  • 2 replies
  • 0 kudos

Using HAL_UART_Transmit outside main.c cause hardfault

Hello, I got a problem on 'HAL_UART_Transmit' function. I wrote a simple line to create and define unsigned char of 10 then send it through 'HAL_UART_Transmit' on different .c file.unsigned char A[10] = { ...... 10 value ......};HAL_UART_Transmit(&hu...

taoybb by Associate II
  • 1366 Views
  • 7 replies
  • 0 kudos

STM32F401RCT6 Schematic issues

Hello, I am creating a sensor using the STM32F401RCT6 and eight SPI ADCs. Because the MCU doesn't have that many SPI ports, I am planning on adding a 3 to 8 decoder in order to handle the Hardware Slave Select (NSS) of the ADCs and daisy chaining the...

Screenshot 2023-09-13 at 5.44.49 PM.png
gapple12 by Associate
  • 1811 Views
  • 5 replies
  • 2 kudos

HAL I2C no HAL_TIMEOUT Status when Timeout Reached

After inspecting blocking I2C functions from HAL libraries I found that apparently I2C blocking functions don't return "HAL_TIMEOUT" status if timeout is reached during I2C transfer. The following function does the work of verifying whether timeout w...

lgacnik97 by Associate III
  • 2277 Views
  • 2 replies
  • 2 kudos

Resolved! Multiplexed OCTOSPI in STM32H7B0RBT6

Hi,I would like to know if it is possible to have the mutiplexed octospi in the microcontroller stm32h7b0rt6 as it mentionned in AN5050 in Figure 11cause when I tried to configure it using the CubeMx the CS pin for OCTOSPI2 is not found as it is mand...

ALAMI_Othmane_0-1694625578777.png ALAMI_Othmane_1-1694625761689.png

Resolved! MCU shutting down during SPI communicaiton

I have a simple demo board with a STM32L451VET6, a SPI LCD and four switches. The board will send the first byte over SPI perfectly, then either during or right after sending the second byte - it appears the MCU shuts down - as the CS line drifts dow...

Stoufer_0-1694538436110.png
Stoufer by Associate III
  • 2267 Views
  • 11 replies
  • 0 kudos