challenging task (Benchmak)

awaisahmed
Posts: 20
Joined: Sat May 12, 2018 5:02 pm

challenging task (Benchmak)

Postby awaisahmed » Thu Aug 16, 2018 4:23 pm

I got a bench mark from this website

https://www.eembc.org/coremark/index.php

this is to check the performance of microcontroller the code is available at github

https://github.com/eembc/coremark

I have a linux 32 bit and eclipse neon does anyone have tried this benchmark or willing to ?
does anyone know how to do cross compilation in this particular case ?

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: challenging task (Benchmak)

Postby kolban » Thu Aug 16, 2018 4:56 pm

I spent a couple of minutes looking at the source and it seems to be vanilla C. What that means is that it should be able to be compiled and run quite easily. What I recommend you do is become familiar with the ESP-IDF and its associated build tools. You should then be able to create a "normal" ESP-IDF application and copy in the source files and run the ESP-IDF supplied make which will compile the source.

Treat the puzzle as follows (opinion):

1. Learn how to build an "ordinary" ESP-IDF application written in C.
2. Learn how to flash that application to an ESP32 and run it.
3. Take what you have learned and copy the source files from your Github repository and build/compile/flash/run those.

The docs for ESP32 ESP-IDF can be found here:

https://esp-idf.readthedocs.io/en/latest/

Now, it may be that someone has already built the binary for this application and could provide that to you ... but it no-one claims to have done such, then the above will be your best (opinion) path.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

awaisahmed
Posts: 20
Joined: Sat May 12, 2018 5:02 pm

Re: challenging task (Benchmak)

Postby awaisahmed » Thu Aug 16, 2018 5:20 pm

having this error

make -j8 all
/bin/sh: 1: [[: not found
/bin/sh: 1: [[: not found
Makefile:45: *** PLEASE define PORT_DIR! (e.g. make PORT_DIR=simple). Stop.

linux 32bit
eclipse neon
board ESP32 DevkitC

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: challenging task (Benchmak)

Postby kolban » Thu Aug 16, 2018 6:11 pm

Have you followed the recipes described in the getting started section here:

https://esp-idf.readthedocs.io/en/lates ... index.html

Are you able to build a sample ESP32 ESP-IDF application?

Maybe if we can find a problem building an arbitrary app from these instructions we might spot something.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

espressif@findend.de
Posts: 1
Joined: Wed Jul 24, 2019 6:40 am

Re: challenging task (Benchmak)

Postby espressif@findend.de » Wed Jul 24, 2019 6:47 am

I tried to port the coremark benchmark to the esp32, but I am receiving a "Stack smashing protect failure" at some point of the execution.
You find the sources at https://github.com/wawtg/esp32-coremark

It would be nice to have a coremark result for the esp32, but I do not manage to find the issue.
If it is working, it could also be ported to use both cores, since the benchmark provides this.

chegewara
Posts: 2375
Joined: Wed Jun 14, 2017 9:00 pm

Re: challenging task (Benchmak)

Postby chegewara » Sat Jul 27, 2019 2:39 am

Stack smashing protect failure
Increase task's stack size.

bernard
Posts: 2
Joined: Sun Mar 29, 2020 8:58 am

Re: challenging task (Benchmak)

Postby bernard » Mon Mar 30, 2020 7:03 am

I did the port. You can have a look here:
viewtopic.php?t=14932
or
https://github.com/ochrin/coremark/tree/esp32
Regards, Bernard

Website: https://www.ochrin.com

Who is online

Users browsing this forum: No registered users and 202 guests