STM32 MCUs Embedded software

Ask questions and find answers on STM32Cube packages, including HAL, LL and middleware, and expansion software.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

x-cube-mems1 package SPI

I have ASM330LHH, LIS3MDL and LIS2DH12 mems sensors. I want to read data with spi communication using the x-cube-mems1 package. There are sample codes with I2C and bsp, but I don't know how to do this with spi. Can anyone help me to obtain roll pitch...

Resolved! I2C detect repeated start condition

Hi!I'm creating an i2c-slave using a stm32g0-series. There are two types of messages that need to be supported, a write-then-read, and a write-only.The write-then-read starts with a write-message of a register address of the slave device (1 byte). Th...

sigmuha by Associate II
  • 1054 Views
  • 4 replies
  • 2 kudos

STM32U545 I2C HAL weirdness

Hi.I'm working on a project using I2C on the U545, and I've noticed that all the HAL_I2C_Slave_* functions include the following:/* Enable Address Acknowledge */hi2c->Instance->CR2 &= ~I2C_CR2_NACK;However, the STM32U5 Reference manual states that wr...

Resolved! which file starts STM32

I do have this demo program in which main.c is disabled so it would start from main_pinpong.c which is the only file withint main( void ){included in target build startup_stm32l476xx.s is supposed to be the startup file but I do not see any reference...

Untitled.png
MNapi by Senior III
  • 621 Views
  • 5 replies
  • 4 kudos

Resolved! Timer based using thread X

Hi!!I am using ThreadX to develop a project.As far as I know, when using FreeRTOS, it is highly recommended to switch from SysTick to another timer.Is it the same for ThreadX?Therefore, I am using TIM7, which is a simple timer. I was wondering where ...