Skip to main content
deep_rune
Associate III
September 4, 2020
Solved

Where can I find a list of register names for ST32?

  • September 4, 2020
  • 4 replies
  • 1507 views

I recently changed the chip i'm using for a project. I'm trying to port code between an STM32F031K6 and an STM32L412K8 but some of the registers seems to be called different things. In particular any reference to

ADC1->CHSELR

doesn't work. Where can I find a list of all the register names? Im using cubeIDE in case that makes a difference

This topic has been closed for replies.
Best answer by waclawek.jan

https://github.com/STMicroelectronics/STM32CubeF0/blob/master/Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f031x6.h

Starting with "Drivers/", the path is the same in the CubeF0 installation on your computer.

ADCs between various STM32 families differ quite a lot, so you will probably need to read and compare the ADC chapters for both anyway.

JW

4 replies

Tesla DeLorean
Guru
September 4, 2020

The Reference Manual?

For structures, look at the part and peripheral specific Include files.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
deep_rune
deep_runeAuthor
Associate III
September 4, 2020

thanks which is the specific include file i need to look at?

Tesla DeLorean
Guru
September 4, 2020

Try right clicking dependencies, or using find-in-file or grep type searches?​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
waclawek.jan
waclawek.janBest answer
Super User
September 4, 2020

https://github.com/STMicroelectronics/STM32CubeF0/blob/master/Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f031x6.h

Starting with "Drivers/", the path is the same in the CubeF0 installation on your computer.

ADCs between various STM32 families differ quite a lot, so you will probably need to read and compare the ADC chapters for both anyway.

JW