An open API service indexing awesome lists of open source software.

https://github.com/protik09/coremark-rp2040

This is the COREMARK® embedded benchmark ported by me to the RP2040 chip from the folks over at Raspberry Pi.
https://github.com/protik09/coremark-rp2040

benchmark c embedded embedded-c embedded-systems raspberry raspberrypi-pico rp2040 rpi-pico

Last synced: 10 days ago
JSON representation

This is the COREMARK® embedded benchmark ported by me to the RP2040 chip from the folks over at Raspberry Pi.

Awesome Lists containing this project

README

        

# CoreMark RP2040❤️

![Build Status](https://github.com/protik09/CoreMark-RP2040/actions/workflows/generate-release.yml/badge.svg) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/protik09/CoreMark-RP2040) [![GitHub stars](https://img.shields.io/github/stars/protik09/CoreMark-RP2040.svg)](https://github.com/username/repository/stargazers)

![Coremark_RP2040_logo](https://github.com/protik09/CoreMark-RP2040/blob/main/Coremark-RP2040.png?raw=true)

This is the [COREMARK®](https://github.com/eembc/coremark) embedded benchmark ported for the [RP2040](https://github.com/raspberrypi/pico-sdk)
chip from the folks over at Raspberry Pi.

## How to Use

Ensure that the **Pico C/C++ SDK** environment variables are set properly and you have cmake installed.

For Linux check here: [![Static Badge](https://img.shields.io/badge/-Linux-c31c4a?style=flat&logo=raspberrypi)](https://github.com/raspberrypi/pico-sdk
)

For Windows, the setup files can be found here: [![Static Badge](https://img.shields.io/badge/-Windows-blue?logo=windows11)](https://github.com/raspberrypi/pico-setup-windows/releases/latest/download/pico-setup-windows-x64-standalone.exe
)

### For Microsoft Windows

![Windows Terminal](https://img.shields.io/badge/Windows%20Terminal-%234D4D4D.svg?style=for-the-badge&logo=windows-terminal&logoColor=white)

Add the **PICO_INSTALL_PATH** to User Environment Variables.

For example, if you have installed the SDK in *"C:\Program Files\Raspberry Pi\Pico SDK v1.5.1"* then add **PICO_INSTALL_PATH** as *C:\Program Files\Raspberry Pi\Pico SDK v1.5.1* to User Environment Variables.

Then run the following commands in CMD in the project directory.

```cmd
scripts/setup_env.bat
```

You can use the following command to clean the project directory.

```cmd
make clean || ./scripts/clean.bat

```

You can use the following command to build the project.

```cmd
make all || cmake . && ninja build
```

The useful files will be in the **artifacts_to_upload** directory.

### For Linux

![Shell Script](https://img.shields.io/badge/shell_script-%23121011.svg?style=for-the-badge&logo=gnu-bash&logoColor=white)

```bash
make all
```

The useful files will be in the **artifacts_to_upload** directory.

Copy the **Coremark-RP2040.uf2** file to the RP2040 board.

Open a Serial Monitor at 115200 baud (or just maximum USB speed)

**IMPORTANT**: Press any key to start single core benchmark.

## RELEASES

[![Static Badge](https://img.shields.io/badge/-LATEST_RELEASES-E1CFB3?style=flat&logo=githubactions)](https://github.com/protik09/CoreMark-RP2040/releases/latest)

## TODO

* Add multi-core support to the benchmark.