Skip to content

Latest commit

 

History

History

Hello

Hello project

This project prints "Hello World" and a counter value via the UART output. It is configured for Arm Virtual Hardware, but other target hardware that provides a CMSIS Driver:USART can be easily added.

Prerequisites

Tools

  • CMSIS-Toolbox 2.0.0 or higher
  • Keil MDK 5.37
    • Arm Compiler 6.18 (part of MDK, Eval Version sufficient for compilation)
    • Arm Virtual Hardware for Corstone-300 v11.18.1 (requires MDK - Professional)

Note: later versions will also compiler with GCC.

Packs

Project Structure

The project is generated using the CMSIS-Toolbox and is defined in csolution format:

  • Hello.csolution.yml lists the required packs and defines the hardware target and build-types (along with the compiler).
  • Hello.cproject.yml defines the source files and the software components.

Generated Project

> cbuild Hello.csolution.yml --packs --update-rte

Note: During the build process required packs may be downloaded.

Execute Project

The project is configured for execution on Arm Virtual Hardware which removes the requirement for a physical hardware board.

  • When using MDK-Professional, you may execute it with the command:

For debug type

> C:/Keil_v5/ARM/avh-fvp/bin/models/FVP_Corstone_SSE-300 -f FVP/FVP_Corstone_SSE-300/fvp-config.txt -a ./out/Debug/Hello.axf

For release type

> C:/Keil_v5/ARM/avh-fvp/bin/models/FVP_Corstone_SSE-300 -f FVP/FVP_Corstone_SSE-300/fvp-config.txt -a ./out/Release/Hello.axf
  • Keil Studio Cloud integrates also the Arm Virtual Hardware FVP_Corstone_SSE-300/_Ethos-U55/_Ethos-U65 models. The steps to use the example are:
    • Start Keil Studio Cloud and login to the system using your account.
    • Use File - Clone and enter the URL: (https:/Open-CMSIS-Pack/csolution-examples). Add
    • Select from the drop-down Target hardware: Corstone SSE-300 (Cortex-M55, Ethos-U55, Ethos-U65)
    • Click Run project which executes the project build step and then starts running on Arm Virtual Hardware.