Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register blocks can overlap on STM32 #2

Open
Ristovski opened this issue Jul 31, 2022 · 2 comments
Open

Register blocks can overlap on STM32 #2

Ristovski opened this issue Jul 31, 2022 · 2 comments

Comments

@Ristovski
Copy link

Ristovski commented Jul 31, 2022

With STM32L0x1, the SYSCFG and COMP register blocks do overlap which produces the following error: Overlapping register blocks between SYSCFG and COMP.

https://www.st.com/resource/en/reference_manual/rm0377-ultralowpower-stm32l0x1-advanced-armbased-32bit-mcus-stmicroelectronics.pdf

image

In another document, I saw even more register blocks overlapping. Difference table between STM32F303xB and STM32L4 series
image

I have no idea how this overlapping is supposed to work, as I have not looked into it much.

@nviennot
Copy link
Owner

nviennot commented Aug 1, 2022

Ah, indeed. Can you do some research on how this is supposed to work? So we can implement something correct

@jpboucher
Copy link

The registers do not actually overlap. SYSCFG and COMP are simply inside the same memory block. If you look at their respective addresses you can see that they have different memory offsets which do not overlap. In that document if you go to the SYSCFG register map section you can see that the offset is 0x00 to 0x0C while for COMP the offset is 0x18 to 0x1C.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants