STM32 MCUs Products

Ask questions, find answers, and share insights on STM32 products and their technical features.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Detecting available UARTs at compile time

Hi,using CubeIDE with CubeMX, is is possible to "check" or "detect", for conditional compiling, which UART ports that are enabled? In the MX-generated USART.C you will find all the handles for the available UARTs but AFAIK, you can't conditional comp...

GoEk by Associate III
  • 1833 Views
  • 8 replies
  • 0 kudos

Resolved! ???ARPE (auto reload preload) STM32L476

Been looking closely at RM figures 342 AND 343.....I cannot see the value of the ARPE bit....when 1 it looks like the shadow register updates on UEV / or Interrupt and when 0 what?? 342 disregards showing the shadow register and on top of this who ca...

SWenn.1 by Senior III
  • 972 Views
  • 2 replies
  • 0 kudos

STM32h745 SPI DMA not receiving the data

Hello,I am working on STM32h745 controller. I am using the DMA for SPI configuration. I declare the buffer in the RAM2 , transmission is done properly but I did not receiving the data on MISO why?/* MODIFICATION STARTS HERE */ .buffer(NOLOAD) : {  . ...

MDeva.1 by Associate II
  • 940 Views
  • 1 replies
  • 0 kudos

Resolved! Openocd not able to flash a discovery board

UNEXPECTED ID code?, the discovery board is original.the onboard stlink is updated to latest version.If i google this Error, i get people trying to flash ST clone mcus, but mine is original. This is my openocd.cfg file:source [find interface/stlink.c...

0693W00000Y8fnkQAB.png
Javier1 by Principal
  • 1691 Views
  • 1 replies
  • 1 kudos

Resolved! Need help with flashloader/driver for STM32H7A3ZIT6Q with Octo-spi FLASH (twin quad) NOR flash MT25TL256

I have a custom board with an STM32H7A3ZIT6Q. It has the MT25TL256 NOR flash connected to the pins of OCTOSPI1.I'm trying to write a flashloader/driver.In our application we do not need to execute code from this flash. We only need it for data. But i...

Obejct Sensor Interfacing Doubt

Hello, I have tried to interface object sensor and all works well the object sensor led works perfectly when the range is close and far( LED is off when the path is blocked and vice versa). But I'm just getting stagnant ADC Values, it's stuck at 4095...

STM32F407 CAN filter doesn't work

Hi everyone.I have next problem. I trying to use CAN filter option, sometimes i need to configure them on fly. First basic filter its standard filter: /*CAN*/ canfil.FilterBank = 0; canfil.FilterMode = CAN_FILTERMODE_IDMASK; canfil.FilterFIFOAssignme...

OMarc.1 by Associate III
  • 1384 Views
  • 3 replies
  • 0 kudos

[SOLVED] Weak variables of global file scope linker error

So I'm trying to gain greater understanding on the STM32 tools on a project that I've inherited. I'm noticing that there are weak variables that are of global scope to a given file that are defined in multiple files such as follows:main.c:int g;other...

J.Christ by Associate III
  • 1412 Views
  • 4 replies
  • 0 kudos

Resolved! To read a word via I2C I need to add a second start condition to the procedure. What would be the easiest way to accomplish this?

From the datasheet from the slave device: "First the host must write a command to the slave device. Then it must follow that command with a repeated start condition to denote a read from that device's address. The slave then returns two bytes of data...