Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added H745zi which uses the same project
Table of Contents
outlinetrue

Introduction

The STM32H755zi is and H745zi are based on the high-performance Arm® Cortex®-M7 and Cortex®-M4 32-bit RISC cores. The Cortex®-M7 core operates at up to 480 MHz and the Cortex®-M4 core at up to 240 MHz. It incorporate a dual-bank Flash memory of 2 Mbytes, up to 1 Mbyte of RAM. The STM32H755zi is capable as an application controller for the iRJ45/SoM module.

Info

STM32H755zi and H745zi targets are only compatible with uGOAL.

...

The port for STM32H755zi bases on ST’s HAL Layers. Thus porting to any other ST hardware is very easy. See here for additional information: STM32 (uGOAL) .

Software

Toolchain

For compiling the example code, the GNU Arm Embedded Toolchain is required. It can be obtained in several ways. Further information can be found here: https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads.

Info

Make sure, the toolchain is added properly to your path variable after the installation.

Building

Within a example folder (e.g. projects/ugoal/02_profinet/gcc) of the software delivery build the firmware with following commands:

Code Block
# build for h755zi or h745zi
make PLATFORM=stm32h755zi clean all

Flashing

The Makefile will create two seperate binaries: one binary for the Cortex®-M4 and another one with included startup code for the Cortex®-M7. The startup code of the Cortex®-M7 resets the M4, initializes the clock settings and then start the application on the M4.

...

Note

The binary with includes startup code must be copied to the STM32H755zi. Otherwise the Cortex®-M7 won’t start the application on the Cortex®-M4.

Integration into STM32CubeIDE

In the software delivery a project generator for STM32CubeIDE projects is integrated. It requires a python3 installation.

...

The project for the CM7 contains startup code to initialize clock settings and other peripherie while holding the CM4 in reset. Then the CM7 releases the CM4 and it will start the application and uGOAL.

In order to debug the uGOAL application, you have to:

  1. flash and run CM7 project and exit,

  2. flash and debug CM4 project.

Info

The CM7 application has to be flashed only once.

...

Note

Due to the reset mechanism of the CM7, you’ll have to step through the startup code until function HAL_PWREx_ClearPendingEvent();. After that, you're able to start the application.

Getting Started

Preparations

Hardware Requirements

...

Make sure following settings are set:

  • J13 - Connect “iRJ45” with “Sockel”

  • J8 - Connect “CS_SOURCE” with “PB2”

  • J7 - Connect “RST_SOURCE” with “PD7”

  • Set all DIP-Switches to “OFF”

STM32H755zi Board

...

There is no configuration required.

Target System

...

Note

Please connect both boards with each other, before you connect them per USB to your computer.

There is no further configuration required.

Debugging

UART

The STM32H755zi provides an UART over USB cable. Choose the following settings:

Speed

115200

Data Bits

8

Stop Bits

1

Parity

None

Flow Control

None

Application 02_profinet

The available applications are described here. Following you’ll find an example. After setting up the serial monitor and starting the debug session, the output should look like this:

Code Block
[INF] ../rpc/goal_mctc_rb.c:277 creating rpc ring buffer with buffer size 768 and elem size 256
[INF] ../rpc/goal_mctc_rb.c:277 creating rpc ring buffer with buffer size 768 and elem size 256
[INF] ../goal_media/goal_mi_mctc.c:793 rpc transfer size set to 1024
[INF] ../goal_media/goal_mi_mctc.c:723 peer requested Sync Init
[INF] ../goal_media/goal_mi_mctc.c:723 peer requested Sync Init
[INF] ../goal_media/goal_mi_mctc.c:723 peer requested Sync Init
[INF] ../goal_media/goal_mi_mctc.c:723 peer requested Sync Init
[INF] ../goal_media/goal_mi_mctc.c:455 RPC state synchronized, running appl_setup
[INF] ../goal_media/goal_mi_mctc.c:458 configuring timeout values for peer
[INF] ../pnio/goal_pnio_rpc_ac.c:259 PROFINET Application Core successfully started
[INF] ../example/02_profinet/goal_appl.c:188 Initializing device structure
[INF] ../example/02_profinet/goal_appl.c:230 PROFINET ready
[INF] ../goal_media/goal_mi_mctc.c:487 local setup done

Known Issues

EtherCAT DC is not supported.