| Electronic Components Datasheet Search |
|
UM1766 Datasheet(PDF) 22 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1766 Datasheet(HTML) 22 Page - STMicroelectronics |
|
22 / 29 page ![]() DocID026352 Rev 8 22/29 UM1766 Getting started with STM32CubeF3 28 4.2.2 LL application This section describes the steps needed to create your own LL application using STM32CubeF3. 1. Create your project To create a new project you can either start from the Templates_LL project provided for each board under \Projects\<STM32xxx_yyy>\Templates_LL or from any available project under \Projects\<STM32xxy_yyy>\Examples_LL (<STM32xxx_yyy> refers to the board name, such as NUCLEO-F334R8). The Template project provides an empty main loop function, however it is a good starting point to get familiar with project settings for STM32CubeF3. Template main characteristics are the following: – It contains the source codes of the LL and CMSIS drivers which are the minimal components needed to develop code on a given board. – It contains the include paths for all the required firmware components. – It selects the supported STM32F3 device and allows to configure the CMSIS and LL drivers accordingly. – It provides ready-to-use user files, that are pre-configured as follows: main.h : LED & USER_BUTTON definition abstraction layer. main.c : System clock configuration for maximum frequency. 2. Port an existing project to another board To port an existing project to another target board, start from the Templates_LL project provided for each board and available under \Projects\<STM32xxx_yyy>\Templates_LL: a) Select a LL example To find the board on which LL examples are deployed, refer to the list of LL examples STM32CubeProjectsList.html, to Table 3: Number of examples available for each board or to application note “STM32Cube firmware examples for STM32F3 Series” (AN4734) b) Port the LL example – Copy/paste the Templates_LL folder - to keep the initial source - or directly update existing Templates_LL project. – Then porting consists principally in replacing Templates_LL files by the Examples_LL targeted project. – Keep all board specific parts. For reasons of clarity, board specific parts have been flagged with specific tags: /* ============== BOARD SPECIFIC CONFIGURATION CODE BEGIN ============== */ /* ============== BOARD SPECIFIC CONFIGURATION CODE END ============== */ Thus the main porting steps are the following: – Replace the stm32F3xx_it.h file – Replace the stm32F3xx_it.c file – Replace the main.h file and update it: Keep the LED and user button definition of the LL template under "BOARD SPECIFIC CONFIGURATION" tags. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |