Skip to content

STM32L433 RCC AHB1 CRC Enable bit incorrect #516

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

Closed
cyrusmetcalf opened this issue Mar 17, 2021 · 2 comments
Closed

STM32L433 RCC AHB1 CRC Enable bit incorrect #516

cyrusmetcalf opened this issue Mar 17, 2021 · 2 comments

Comments

@cyrusmetcalf
Copy link
Contributor

The bit set in RCC->AHB1 for crc enable is shifting (1 << 11). Needs to be shifting (1 << 12) according to CMSIS implementation.

from STM32L4x3.svd

            <field>
              <name>CRCEN</name>
              <description>CRC clock enable</description>
              <bitOffset>11</bitOffset>
              <bitWidth>1</bitWidth>
            </field>

from CMSIS/Device/ST/STM32L4xx/Include/stm32l433xx.h

#define RCC_AHB1ENR_CRCEN_Pos (12U)
#define RCC_AHB1ENR_CRCEN_Msk(0x1UL << RCCAHB1ENR_CRCEN_Pos)
#define RCC_AHB1ENR_CRCEN   RCC_AHB1ENR_CRCEN_Msk
@cyrusmetcalf
Copy link
Contributor Author

cyrusmetcalf commented Mar 18, 2021

I opened a PR on it. #517

@hellow554
Copy link

the PR was merged, please close this issue :)

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