Skip to content

BLangOS/DesignStart-Eval-M0_on_Cmod_A7

Repository files navigation

Cortex-M0 DesignStart Eval System for Cmod-A7 Board

This project builds a minimum Cortex-M0 system with DesignStart Eval processor, blockram as memory an a simple IO on the AHB bus. The Debug port is available thus the system can be debugged via SWD.

Here is an image of the system, the AHB2APB bridge is not yet instanced:

image-20210313165128179

The system is placed in a toplevel description:

image-20210313165532903

The toplevel IOs are connected to the FPGA-pins. See HDL\Cmod-A7\CORTEX_M0_MPU_TOP.xdc for details.

As an example for an AHB peripheral the following design is included in the project:

image-20210313170334407

The current system contains three registers, where only some of the signals are connected to FPGA output pins. See HDL\Cmod-A7\CORTEX_M0_MPU_TOP.vhd for details.

Besides the files in this projects some verilog files from DesignStart Eval Cortex-M0 are required to build the System. Download this eval package (see below) and add the files to the HDL/Verilogsubdirectory.

When synthesizing the project the blockram is initalized from a .hex file. It is specified in HDL\Cmod-A7\CORTEX_M0_MPU_TOP.vhd as constant Codefile.

Several tools are required to synthesize the hardware description and load the bitfile into the FPGA. Then the PC can connected to the Cortex-M0 via SWD using ST-Link V2 and software can be debugged via eclipse. Below several links to the required tools are shown. All tools can be installed portable, e.g. in a tools directory.

A first simple assembler example can be found in Directory Assembler_Basic. A first simple example written in C can be found in directory C_Basic.

A Program which uses the timer and lets all LEDs of the board blink is given in Eclipse_WS\C_New.

Have a look at the batches in the Batches directory which help to start eclipse, openocd and telnet.

DesignStart Eval Sources

Download at ARM

Tools for building the Hardware

Xilinx: Vivado

Tools for building the Software

Sometimes alternative download sites are listed.

Make and required Binutils

GNU-Compiler for ARM-Cortex

OpenOCD

Telnet

Hint how to activate Telnet in Windows 10 (in german)

Eclipse

Eclipse IDE for C-Developers


Have much fun!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published