Giter VIP home page Giter VIP logo

stmicroelectronics / stm32cubeu0 Goto Github PK

View Code? Open in Web Editor NEW
0.0 7.0 1.0 75.57 MB

STM32Cube MCU Full Package for the STM32U0 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST)

Home Page: https://www.st.com/en/embedded-software/stm32cubeu0.html

License: Other

HTML 4.06% CSS 0.39% C 74.03% CMake 0.28% Python 0.17% Assembly 19.78% Batchfile 1.23% Makefile 0.02% Shell 0.04%
stm32 stm32cube-mcu-package stm32u0

stm32cubeu0's Introduction

STM32CubeU0 MCU Firmware Package

latest tag

Important

This repository has been created using the git submodule command. Please refer to the "How to use" section for more details.

Overview

STM32Cube is an STMicroelectronics original initiative to ease the developers life by reducing efforts, time and cost.

STM32Cube covers the overall STM32 products portfolio. It includes a comprehensive embedded software platform delivered for each STM32 series.

  • The CMSIS modules (core and device) corresponding to the ARM-tm core implemented in this STM32 product
  • The STM32 HAL-LL drivers : an abstraction drivers layer, the API ensuring maximized portability across the STM32 portfolio
  • The BSP Drivers of each evaluation or demonstration board provided by this STM32 series
  • A consistent set of middlewares components such as ThreadX, FileX, USBX, OpenBootloader, mbed-crypto ...
  • A full set of software projects (basic examples, applications and/or demonstrations) for each board provided by this STM32 series
  • A development with three Toolchains and Compilers (IAR Embedded Workbench for ARM (EWARM), RealView Microcontroller Development Kit (MDK-ARM) and STM32CubeIDE )

The STM32CubeU0 MCU Package projects are directly running on the STM32U0 series boards. You can find in each Projects/Board name directories a set of software projects (Applications/Demonstration/Examples).

Release note

Details about the content of this release are available in the release note here.

How to use

This repository has been created using the git submodule command. Please check the instructions below for proper use. Please check also the notes at the end of this section for further information.

  1. To clone this repository along with the linked submodules, option --recursive has to be specified as shown below.
git clone --recursive https://github.com/STMicroelectronics/STM32CubeU0.git
  1. To get the latest updates, in case this repository is already on your local machine, issue the following two commands (with this repository as the current working directory).
git pull
git submodule update --init --recursive
  1. To use the same firmware version as the one available on st.com, issue the command below after specifying the targeted vX.Y.Z version. This should be done after the command(s) indicated in instruction (1) or in instruction (2) above have been successfully executed.
git checkout vX.Y.Z # Specify the targeted vX.Y.Z version
  1. To avoid going through the above instructions and directly clone the same firmware version as the one available on st.com, issue the command below after specifying the targeted vX.Y.Z version.
git clone --recursive  --depth 1 --branch vX.Y.Z https://github.com/STMicroelectronics/STM32CubeU0.git

Note

  • The latest version of this firmware available on GitHub may be ahead of the one available on st.com or via STM32CubeMX. This is due to the rolling release process deployed on GitHub. Please refer to this post for more details.
  • Option --depth 1 specified in instruction (4) above is not mandatory. It may be useful to skip downloading all previous commits up to the one corresponding to the targeted version.
  • If GitHub "Download ZIP" option is used instead of the git clone command, then the different submodules have to be collected and added manually.

Boards available

Troubleshooting

Please refer to the CONTRIBUTING.md guide.

stm32cubeu0's People

Contributors

asehstm avatar rjmstm avatar stmicroelectronics-github avatar tounstm avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

atm-hsw

stm32cubeu0's Issues

unreachable code in stm32u0xx_hal_lptim.c

In stm32u0xx_hal_lptim.c are two lines where my compiler reports unreachable code.

Function HAL_LPTIM_IC_Stop_IT()
default:
return HAL_ERROR;
break;

Function HAL_LPTIM_IC_Stop_DMA()
default:
return HAL_ERROR;
break;

Please remove the unnecessary break;

stm32u0xx_hal_rtc_ex.h: #define RTC_BKP_NB inconssitency to DS14581 - Rev 2

Dear all

The datasheet DS14581 - Rev 2 in chapter "Real-time clock (RTC), tamper (TAMP) and backup registers" states that the RTC has 20 bytes of user application data.

This seems inconsissten to the cube code in stm32u0xx_hal_rtc_ex.h: where #define RTC_BKP_NB is 9U.

What is correct?

Thank you for the clarification and kind regards

Christian

warning: unused variable in stm32u0xx_hal_rtc.h

Hi
In File stm32u0xx_hal_rtc.h are the following macros:

#define __HAL_RTC_WRITEPROTECTION_DISABLE(HANDLE)
#define __HAL_RTC_WRITEPROTECTION_ENABLE(HANDLE)
#define __HAL_RTC_DAYLIGHT_SAVING_TIME_ADD1H(HANDLE, BKP)
#define __HAL_RTC_DAYLIGHT_SAVING_TIME_SUB1H(HANDLE, BKP)
#define __HAL_RTC_ALARMA_ENABLE(HANDLE)
#define __HAL_RTC_ALARMA_DISABLE(HANDLE)
#define __HAL_RTC_ALARMB_ENABLE(HANDLE)
#define __HAL_RTC_ALARMB_DISABLE(HANDLE)
#define __HAL_RTC_ALARM_ENABLE_IT(HANDLE, INTERRUPT)
#define __HAL_RTC_ALARM_DISABLE_IT(HANDLE, INTERRUPT)
#define __HAL_RTC_ALARM_GET_IT(HANDLE, INTERRUPT)
#define __HAL_RTC_ALARM_GET_IT_SOURCE(HANDLE, INTERRUPT)
#define __HAL_RTC_ALARM_GET_FLAG(HANDLE, FLAG)
#define __HAL_RTC_ALARM_CLEAR_FLAG(HANDLE, FLAG)

that access the RTC directly and not with HANDLE.
So we get lot of warning: unused variable.

Please use (HANDLE)->Instance->... instead of RTC->... as in all other cubes (F0-F4, G0,G4,L0-F4) sources.

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.