Page 1 of 1

challenging task (Benchmak)

Posted: Thu Aug 16, 2018 4:23 pm
by awaisahmed
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 ?

Re: challenging task (Benchmak)

Posted: Thu Aug 16, 2018 4:56 pm
by kolban
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.

Re: challenging task (Benchmak)

Posted: Thu Aug 16, 2018 5:20 pm
by awaisahmed
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

Re: challenging task (Benchmak)

Posted: Thu Aug 16, 2018 6:11 pm
by kolban
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.

Re: challenging task (Benchmak)

Posted: Wed Jul 24, 2019 6:47 am
by espressif@findend.de
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.

Re: challenging task (Benchmak)

Posted: Sat Jul 27, 2019 2:39 am
by chegewara
Stack smashing protect failure
Increase task's stack size.

Re: challenging task (Benchmak)

Posted: Mon Mar 30, 2020 7:03 am
by bernard
I did the port. You can have a look here:
viewtopic.php?t=14932
or
https://github.com/ochrin/coremark/tree/esp32