Skip to content

Commit

Permalink
Add OVERVIEW.md and update README.md files
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLesnjak committed Sep 26, 2024
1 parent 391a36e commit 892659c
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 40 deletions.
41 changes: 41 additions & 0 deletions Documents/OVERVIEW.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# STM32H735G-DK_BSP

The **STMicroelectronics STM32H735G-DK Board Support Pack (BSP)**:

- Contains examples and board layers in *csolution format* for usage with the [CMSIS-Toolbox](https://github.com/Open-CMSIS-Pack/cmsis-toolbox/blob/main/docs/README.md) and the [VS Code CMSIS Solution](https://marketplace.visualstudio.com/items?itemName=Arm.cmsis-csolution) extension.
- Requires the [Device Family Pack (DFP) for the STM32H7 series](https://www.keil.arm.com/packs/stm32h7xx_dfp-keil).
- Is configured with [STM32CubeMX](https://www.st.com/en/development-tools/stm32cubemx.html) for the Arm Compiler 6 (MDK). [Using GCC Compiler](#using-gcc-compiler) explains how to configured it for a different compiler.

## Content in *csolution format*

- [Examples/Blinky](https://github.com/Open-CMSIS-Pack/STM32H735G-DK_BSP/tree/main/Examples/Blinky) shows the basic usage of this board.

- [Board Layer](https://github.com/Open-CMSIS-Pack/STM32H735G-DK_BSP/tree/main/Layers/Default) for device-agnostic [Reference Applications](https://github.com/Open-CMSIS-Pack/cmsis-toolbox/blob/main/docs/ReferenceApplications.md) that provides the following connections:

| Provided connection | Description
|:------------------------------|:------------------------------------------------------------------------------
| CMSIS_ETH | CMSIS-Driver Ethernet connected to Ethernet RJ45 connector (CN3)
| CMSIS_MCI | CMSIS-Driver MCI connected to microSD connector (CN2)
| CMSIS_USB_Device | CMSIS-Driver USB Device connected to USB_OTG_FS connector (CN14)
| CMSIS_VIO | CMSIS-Driver VIO connected to LEDs (LD2, LD1) and USER button (B2)
| STDIN, STDOUT, STDERR | Standard I/O connected to Virtual COM port on ST-LINK connector (CN15)
| ARDUINO_UNO_D2..D10, D14..D19 | CMSIS-Driver GPIO connected to Arduino digital I/O pins D2..D10 and D14..D19
| ARDUINO_UNO_I2C | CMSIS-Driver I2C connected to Arduino I2C pins D20..D21
| ARDUINO_UNO_SPI | CMSIS-Driver SPI connected to Arduino SPI pins D11..D13
| ARDUINO_UNO_UART | CMSIS-Driver USART connected to Arduino UART pins D0..D1

## Using GCC Compiler

By default the [Board Layers](https://github.com/Open-CMSIS-Pack/STM32H735G-DK_BSP/tree/main/Layers) are configured for the Arm Compiler 6 (AC6). Using STM32CubeMX it can be reconfigured for a different compiler. To configure it for the GCC compiler execute these steps:

- In the `<solution_name>.csolution.yml` project file select `compiler: GCC`.
- Launch the STM32CubeMX generator with this CMSIS-Toolbox command:
`csolution <solution_name>.csolution.yml run -g CubeMX -c <context>`
- In STM32CubeMX:
- Open from the menu `Project Manager - Project - Toolchain/IDE`:
- Select `STM32CubeIDE` and disable `Generate Under Root`.
- Click `GENERATE CODE` to recreate the CubeMX generated files for the GCC compiler.

- In the `Board.clayer.yml` file, update `linker:` node configuration to reference appropriate GCC linker script.
The GCC linker script is typically generated in the `STM32CubeMX/STM32CubeIDE` folder. Customize the GCC linker script file to your project's requirements.
- Rebuild the project using the CMSIS-Toolbox command `cbuild <solution_name>.csolution.yml`.
10 changes: 6 additions & 4 deletions Documents/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Overview
# STM32H735G-DK Discovery kit

## Overview

The STM32H735G-DK Discovery kit is a complete demonstration and development platform for Arm® Cortex®-M7 core-based STM32H735IGK6 microcontroller, with 1 Mbyte of flash memory and 564 Kbytes of SRAM.

Expand All @@ -8,11 +10,11 @@ The full range of hardware features available on the board helps users to enhanc

STLINK-V3E is integrated into the board, as the embedded in-circuit debugger and programmer for the STM32 MCU and USB Virtual COM port bridge.

# Getting started
## Getting started

- [User manual](https://www.st.com/resource/en/user_manual/um2679-discovery-kit-with-stm32h735ig-mcu-stmicroelectronics.pdf)

## ST-LINK driver installation and firmware upgrade (on Microsoft Windows)
### ST-LINK driver installation and firmware upgrade (on Microsoft Windows)

1. Download the latest [ST-LINK driver](https://www.st.com/en/development-tools/stsw-link009.html).
2. Extract the archive and run `dpinst_amd64.exe`. Follow the displayed instructions.
Expand All @@ -23,7 +25,7 @@ STLINK-V3E is integrated into the board, as the embedded in-circuit debugger and
7. When the ST-LINK driver is correctly installed, the current ST-LINK version is displayed.
8. Press the **Yes >>>>** button to start the firmware upgrade process.

# Technical reference
## Technical reference

- [STM32H735IG microcontroller](https://www.st.com/en/microcontrollers-microprocessors/stm32h735ig.html)
- [STM32H735G-DK board](https://www.st.com/en/evaluation-tools/stm32h735g-dk.html)
Expand Down
13 changes: 6 additions & 7 deletions Keil.STM32H735G-DK_BSP.pdsc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package schemaVersion="1.7.36" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="https://raw.githubusercontent.com/Open-CMSIS-Pack/Open-CMSIS-Pack-Spec/v1.7.36/schema/PACK.xsd">
<name>STM32H735G-DK_BSP</name>
<vendor>Keil</vendor>
<description>STMicroelectronics STM32H7 Series STM32H735G-DK Board Support Pack</description>
<description overview="Documentation/OVERVIEW.md">STMicroelectronics STM32H7 Series STM32H735G-DK Board Support Pack</description>
<url>https://www.keil.com/pack/</url>
<repository type="git">https://github.com/Open-CMSIS-Pack/STM32H735G-DK_BSP.git</repository>
<license>LICENSE</license>
Expand Down Expand Up @@ -103,16 +103,15 @@
<boards>
<!-- STM32H735G-DK -->
<board vendor="STMicroelectronics" name="STM32H735G-DK" revision="Rev.B"
salesContact="https://www.st.com/content/st_com/en/contact-us.html"
orderForm ="https://www.st.com/en/evaluation-tools/stm32h735g-dk.html">
salesContact="https://www.st.com/content/st_com/en/contact-us.html">
<description>STM32 Discovery development board with STM32H735IG MCU</description>
<image small="Images/Discovery_small.jpg"
large="Images/Discovery_large.jpg" public="true"/>
<book category="overview" name="https://www.st.com/en/evaluation-tools/stm32h735g-dk.html" title="STM32 Discovery board"/>
<book category="overview" name="https://www.st.com/resource/en/data_brief/stm32h735g-dk.pdf" title="Data brief" public="true"/>
<book category="manual" name="https://www.st.com/resource/en/user_manual/um2679-discovery-kit-with-stm32h735ig-mcu-stmicroelectronics.pdf" title="User Manual" public="true"/>
<book category="schematic" name="https://www.st.com/resource/en/schematic_pack/mb1520-h735i-b02_schematic.pdf" title="Schematics" public="true"/>
<book category="other" name="Documents/README.md" title="Guide" public="true"/>
<book category="overview" name="https://www.st.com/resource/en/data_brief/stm32h735g-dk.pdf" title="Data brief"/>
<book category="manual" name="https://www.st.com/resource/en/user_manual/um2679-discovery-kit-with-stm32h735ig-mcu-stmicroelectronics.pdf" title="User Manual"/>
<book category="schematic" name="https://www.st.com/resource/en/schematic_pack/mb1520-h735i-b02_schematic.pdf" title="Schematics"/>
<book category="other" name="Documents/README.md" title="Guide"/>
<mountedDevice deviceIndex="0" Dvendor="STMicroelectronics:13" Dname="STM32H735IGKx"/>
<compatibleDevice deviceIndex="0" Dvendor="STMicroelectronics:13" DsubFamily="STM32H735"/>
<feature type="ODbg" n="1" name="On-board ST-LINK-V3E"/>
Expand Down
30 changes: 1 addition & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,39 +18,11 @@ Directory | Description
[.ci](./.ci) | Files that are related to the Continuous Integration (CI) tests of this BSP.
[.github/workflows](https://github.com/Open-CMSIS-Pack/STM32H735G-DK_BSP/tree/main/.github/workflows) | [GitHub Actions](#github-actions) scripts described below.
[CMSIS/Driver](https://github.com/Open-CMSIS-Pack/STM32H735G-DK_BSP/tree/main/CMSIS/Driver) | Contains a [CMSIS-Driver VIO](https://arm-software.github.io/CMSIS_6/latest/Driver/group__vio__interface__gr.html) that is configured for the board peripherals.
[Documents](https://github.com/Open-CMSIS-Pack/STM32H735G-DK_BSP/tree/main/Documents) | Information about the board provided by STMicroelectronics.
[Documents](https://github.com/Open-CMSIS-Pack/STM32H735G-DK_BSP/tree/main/Documents) | [Usage overview](https://github.com/Open-CMSIS-Pack/STM32H735G-DK_BSP/tree/main/Documents/OVERVIEW.md) for examples and board documentation provided by STMicroelectronics.
[Examples/Blinky](https://github.com/Open-CMSIS-Pack/STM32H735G-DK_BSP/tree/main/Examples/Blinky) | Blinky example in *csolution project format* using [CMSIS-Driver VIO](https://arm-software.github.io/CMSIS_6/latest/Driver/group__vio__interface__gr.html) and [CMSIS-Compiler](https://arm-software.github.io/CMSIS-Compiler/main/index.html) for printf I/O retargeting.
[Images](https://github.com/Open-CMSIS-Pack/STM32H735G-DK_BSP/tree/main/Images) | [Pictures](https://github.com/Open-CMSIS-Pack/STM32H735G-DK_BSP/blob/main/Images/Discovery_large.jpg) of the board.
[Layers](https://github.com/Open-CMSIS-Pack/STM32H735G-DK_BSP/tree/main/Layers) | Board layers for using the board with [CMSIS-Toolbox - Reference Applications](https://github.com/Open-CMSIS-Pack/cmsis-toolbox/blob/main/docs/ReferenceApplications.md).

## Usage

This BSP requires the [Device Family Pack (DFP) for the STM32H7 series](https://github.com/Open-CMSIS-Pack/STM32H7xx_DFP).

- [Examples/Blinky](https://github.com/Open-CMSIS-Pack/STM32H735G-DK_BSP/tree/main/Examples/Blinky) shows the usage in a [*csolution project*](https://github.com/Open-CMSIS-Pack/STM32H735G-DK_BSP/blob/main/Examples/Blinky/Blinky.csolution.yml).

- [Board Layers](https://github.com/Open-CMSIS-Pack/STM32H735G-DK_BSP/tree/main/Layers) are designed for [Reference Applications](https://github.com/Open-CMSIS-Pack/cmsis-toolbox/blob/main/docs/ReferenceApplications.md) and allow to run various device-agnostic examples on this board.

The device is configured for this board using [STM32CubeMX](https://www.st.com/en/development-tools/stm32cubemx.html). For additional information refer to:

- [CMSIS-Toolbox - Configure STM32 Devices with CubeMX](https://github.com/Open-CMSIS-Pack/cmsis-toolbox/blob/main/docs/CubeMX.md) for usage information of STM32CubeMX with CMSIS projects.

## Using GCC Compiler

By default the [Board Layers](https://github.com/Open-CMSIS-Pack/STM32H735G-DK_BSP/tree/main/Layers) are configured for the Arm Compiler 6 (AC6). Using STM32CubeMX it can be reconfigured for a different compiler. To configure it for the GCC compiler execute these steps:

- In the `*.csolution.yml` project file select `compiler: GCC`.
- Launch the STM32CubeMX generator with this CMSIS-Toolbox command:
`csolution <solution_name>.csolution.yml run -g CubeMX -c <context>`
- In STM32CubeMX:
- Open from the menu `Project Manager - Project - Toolcahain/IDE`:
- Select `STM32CubeIDE` and disable `Generate Under Root`.
- Click `GENERATE CODE` to recreate the CubeMX generated files for the GCC compiler.

- In the `*.clayer.yml` file, update `linker:` node configuration to reference appropriate GCC linker script.
The GCC linker script is typically generated in the `STM32CubeMX/STM32CubeIDE` folder. Customize the GCC linker script file to your project's requirements.
- Rebuild the project using the CMSIS-Toolbox command `cbuild *.csolution.yml`.

## Using the development repository

This development repository can be used in a local directory and [mapped as software pack](https://github.com/Open-CMSIS-Pack/cmsis-toolbox/blob/main/docs/build-tools.md#install-a-repository) using for example `cpackget` with:
Expand Down

0 comments on commit 892659c

Please sign in to comment.