STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

How do I fix a HAL_BUSY condition during I2C comms?

Hi Folks,This has been driving me crazy. I'm using a Nucleo-L031 board and it's connected to a I2C TCA9548A 1:8 multiplexer. I am trying to read 4 sensors connected to the mux chip. I have 4.7K pullups installed at the Nucleo's I2C pins. The sensor b...

SDIO CLK unable init

Hi  I had a custom board and my SD clock (SD_CLK) is always stuck at 400 kHz, this is typically due to the initialization phase of the SD card interface. As such i unable access the content in my SD card. https://github.com/EdgeTX/edgetx/blob/v2.7.1/...

KHowe_0-1728303188086.png
KHowe by Associate
  • 653 Views
  • 3 replies
  • 2 kudos

Resolved! SPI Master using HAL_SPI_TransmitReceive_DMA

Hi everyone,I am a new user of ST microcontroller. I am not familiar with DMA. Currently I am working on to pull the data from the AFE as slave using DMA method using CUBE generate code:HAL_StatusTypeDef HAL_SPI_TransmitReceive_DMA(SPI_HandleTypeDef ...

Nabu .1 by Associate
  • 716 Views
  • 3 replies
  • 1 kudos

Casting Void Pointer to structure changes data

{static void* data;func ->structure* s = new structure();// do stuffdata = s;return;  Callback ->structure* s = (structure*) data;// Error} Functions are more or less setup as above. This setup is used in many locations on the code, works just fine. ...

stimpacker_0-1728344544801.png

C++ project but unable to use C++ code

Hello, I have created a C++ project with CubeMx / CubeIDE.  It generates the code as main.c, I have seen other post about changing the file extension each time you generate code to .cpp and I have tried that but then I get an "undefined reference to ...

brohr01 by Associate III
  • 540 Views
  • 2 replies
  • 2 kudos

Resolved! STM32H723 I2C MEM DMA not working

Hi,On a small project I am trying to use HAL_I2C_Mem_Read_DMA and AL_I2C_Mem_Write_DMA to get and send data to INA260 and SSD1306 without success.In main i have: MPU_Config(); SCB_EnableICache(); SCB_EnableDCache(); HAL_Init(); SystemClock_Config();...

STM32U5 Delay block with OSPI in QSPI configuration

I notice the delay block doesn't seem to be configurable for the OSPI peripheral in QSPI mode. Does any one know if it is still possible to use the delay block with a QSPI clock? I've tried coding the delay block a few different ways but it doesn't s...

EvoFrank by Associate
  • 1405 Views
  • 4 replies
  • 0 kudos

USB-PD sink not working with some Ac adapters

Hi, I´m using USB-PD (with STM32G0B1CEU6) succesfully with a lot of own boards and different AC adapters. But with one adapter I don´t get the 20V despite the source has this capability. Using a PD analyzer I can see, that with the not working adapte...

AWack by Associate III
  • 712 Views
  • 1 replies
  • 0 kudos