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

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...

Resolved! Problem with configuring I2C1 (PB6 SCL, PB7 SDA) and specific GPIO outputs (PA5, PA6) on STM32L432KCUx, it may be bug, help needed.

Hi, i've been building self balancing robot, so i needed quite lot of periphelias to be working together, they are: I2C, EXTI's, two Timers in encoder mode, Timer in PWM generation mode and GPIO outputs.I'm using STM32CubeIDE 1.9.0., and STM32L432KC ...

0693W00000Y8W7VQAV.png

Store string into FLASH memory (STM32F407)

I want to insert the string my_data_SRAM in the base address of the FLASH. I wrote this code and tried 2 ways:1) *((uint8_t *)BASE_ADDRESS_FLASH+i) = my_data_RAM[i];2) HAL_FLASH_Program(TYPEPROGRAM_WORD, (uint32_t *)(BASE_ADDRESS_FLASH+i), my_data_RA...

luke514 by Senior
  • 2235 Views
  • 3 replies
  • 0 kudos

SPI to I2C bridge

Did anybody already develop a code for SPI to I2C bridge using STM32CO? If yes, where can I find it?Thank you

FMado.1 by Associate
  • 1106 Views
  • 3 replies
  • 0 kudos

STM32F401RE ADC conversion when Vin > Vref+

On a NUCLEO-F401RE, I am observing strange conversion values when I apply higher voltage than Vref to an ADC pin and carry out conversion on it. I would have expected the converted value to be 4095 (0fff) but in reality it is more like 3233 (0ca1) fo...

Bensi by Associate II
  • 2074 Views
  • 5 replies
  • 1 kudos

STM32G431RB Two PWMs with 180 degree phase shift

I have configured the TIM1 with PWM CH1 and CH1N, with 62.KHz frequency .I am getting the 180 degree phase shift for 50 % duty cycle .If i vary duty cycle to 30 % then CH1 =30% and CH1N will be 70 % and it is inverted .I need same duty cycle with 180...

sshan.2 by Associate III
  • 3845 Views
  • 13 replies
  • 0 kudos