cancel
Showing results for 
Search instead for 
Did you mean: 

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

deep_rune
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

4 REPLIES 4

The Reference Manual?

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

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
deep_rune
Associate III

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

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

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..

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