Skip to content

Commit

Permalink
Merge pull request ObKo#324 from ObKo/Hish15-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Hish15 authored May 16, 2023
2 parents 5ff7217 + eb4a0c4 commit e8c282e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ STM32WB is a multi-cores device even if the second core is not accessible by end
CMSIS consists of three main components:

* Family-specific headers, e.g. `stm32f4xx.h`
* Cortex peripheral access layer header and source, e.g. `system_stm32f4xx.[c|h]`
* Peripheral access layer header and source, e.g. `system_stm32f4xx.[c|h]`
* Device type-specific startup sources (e.g. `startup_stm32f407xx.s`) (if ASM language is enabled)
* Device-specific linker scripts which requires information about memory sizes (if ASM language is enabled)

Expand All @@ -119,12 +119,12 @@ Every CMSIS component is CMake's target (aka library), which defines compiler de
add_executable(stm32-template main.c)
target_link_libraries(stm32-template CMSIS::STM32::F407VG)
```
That will add include directories, coretx peripheral layere files, startup source, linker script and compiler flags to your executable.
That will add include directories, peripheral layer files, startup source, linker script and compiler flags to your executable.

CMSIS creates the following targets:

* `CMSIS::STM32::<FAMILY>` (e.g. `CMSIS::STM32::F4`) - common includes, compiler flags and defines for family
* `CMSIS::STM32::<TYPE>` (e.g. `CMSIS::STM32::F407xx`) - common startup source for device type and cortex peripheral access layer files, depends on `CMSIS::STM32::<FAMILY>`
* `CMSIS::STM32::<TYPE>` (e.g. `CMSIS::STM32::F407xx`) - common startup source for device type and peripheral access layer files, depends on `CMSIS::STM32::<FAMILY>`
* `CMSIS::STM32::<DEVICE>` (e.g. `CMSIS::STM32::F407VG`) - linker script for device, depends on `CMSIS::STM32::<TYPE>`

So, if you don't need linker script, you can link only `CMSIS::STM32::<TYPE>` library and provide your own script using `stm32_add_linker_script` function
Expand Down

0 comments on commit e8c282e

Please sign in to comment.