Git Product home page Git Product logo

cmsis-header-stm32's Introduction

CMSIS device headers for STM32

This folder includes the CMSIS device headers for all STM32 devices. The files located here are part of the STM32Cube libraries and can be found inside the STM32Cube*/Drivers/CMSIS/Device/ST/STM32F*xx/Include folder.

The files are copied and modified by converting all line endings from Windows to Unix style and removing all trailing whitespace.

Here is the list of the current device header version and release date as well as the Cube release version in braces:

This repository is updated periodically by Github Actions.

cmsis-header-stm32's People

Contributors

salkinium avatar tgree avatar traviscibot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cmsis-header-stm32's Issues

Error noticed in a macro inside stm32f103xb header file

In the stm32f103xb header file.
FLASH_ACR_LATENCY_n macros are defined incorrectly, which will cause a system fault when clock is 72MHz.
You may have also made the same error in similar families of CM3, so I will leave that to you to check.
I only noticed this because I am using a bluepill board.

So from line 9687, you defined the following:
#define FLASH_ACR_LATENCY_0 (0x1UL << FLASH_ACR_LATENCY_Pos) /*!< 0x00000001 /
#define FLASH_ACR_LATENCY_1 (0x2UL << FLASH_ACR_LATENCY_Pos) /
!< 0x00000002 /
#define FLASH_ACR_LATENCY_2 (0x4UL << FLASH_ACR_LATENCY_Pos) /
!< 0x00000004 /
This is incorrect, and according to the reference manual RM0008 Rev 21, page 60, Flash access control register (FLASH_ACR),
It should be the following:
#define FLASH_ACR_LATENCY_0 (0x0UL << FLASH_ACR_LATENCY_Pos) /
!< 0x00000000 /
#define FLASH_ACR_LATENCY_1 (0x1UL << FLASH_ACR_LATENCY_Pos) /
!< 0x00000001 /
#define FLASH_ACR_LATENCY_2 (0x2UL << FLASH_ACR_LATENCY_Pos) /
!< 0x00000002 */

You have done a very fine job, thank you for your efforts.
Cheers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.