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

I2C Master send incorrect data

STM32F103C8Cube IDE 1.10Greeting,I tried to send data (count from 13 to 15 every 500ms) thru i2c1 using HAL_I2C_Master_Transmit.slave is pcf8574, scl & sda line pulled up with 3k3 resistor.usb scope shows master send correct address, but data always ...

Arobb.1 by Associate
  • 1316 Views
  • 4 replies
  • 0 kudos

Hard fault on I2C library interrupt

Hello everyone,I encountered a weird situation concerning I2C on a project at work. We are using an STM32H743XIH6.We have an I2C device sending data, the I2C is setup with a DMA. Everything works fine until we have a physical disconnection of the I2C...

0693W00000QNNFdQAP.png 0693W00000QNNFxQAP.png 0693W00000QNNFZQA5.png
MSchö.1 by Associate
  • 620 Views
  • 0 replies
  • 0 kudos

[BUG_REPORT] Incorrect handling of SPI interrupts.

Current implementation of the SPI transmit HAL function handles incorrectly interrupts. Actually the interrupt handler is implemented like this:static void SPI_TxISR_8BIT(struct __SPI_HandleTypeDef *hspi) { *(__IO uint8_t *)&hspi->Instance->DR = (*...

AGime.1 by Associate II
  • 640 Views
  • 2 replies
  • 0 kudos

HAL_CAN_AddTx Message returns HAL_CAN_ERROR_PARAM

Hi everyone,I am working with STM32F405 and trying to transmit 16bit data using CANBus line including several units (motor controller, Bms and other circuits). Our CANBus line works fine for a long time. Now I am trying to add one more device to our ...

Myurt.1 by Associate
  • 769 Views
  • 1 replies
  • 1 kudos

USB CDC (Device) working with FreeRTOS on the STM32769I-DISCO. Does ST have example code of these two working together ?

I note that the XCube-AWS software employs FreeRTOS as a task scheduler. I'm using the STM32F769NI-DISCO development board to do some testing. That software is working out of the box. I can see the Ethernet handled as a task. I also see the USB CDC (...