Kendryte Face Detect Example with Sipeed MAIX BiT

Hello,

I am trying to compile face_detect example from kendryte-standalone-demo

And when I compile the project terminal output gave me an error:
src\main.c:27:10: fatal error: iomem.h: No such file or directory

That means that this file is not include in your framework and I checked in the oficial git and this file is included

The main problem is that when I tried to copy this files to the platformio framework, platformio download again the framework from your repository and it is not possible to copy or modify to the new framework (git) in order to solve this error…

Do you have some recomendation as create a new board or some modification in some platformio file in order to avoid that.

Thanks in advance.

Jose.

Indeed, the SDK version that PlatformIO is outdated. I’ve manually updated it to the newest version and updated the buildscripts in my forked platform (GitHub - maxgerhardt/platform-kendryte210: Kendryte K210: development platform for PlatformIO).

Instead of

platform = kendryte210

use

platform = https://github.com/maxgerhardt/platform-kendryte210.git

in the platformio.ini. Then I can compile the face_detect demo no problems.

(used the platformio.ini

[env:sipeed-maix-bit]
platform = https://github.com/maxgerhardt/platform-kendryte210.git
board = sipeed-maix-bit
framework = kendryte-standalone-sdk

[platformio]
src_dir = .

directly in the face_detected project folder).

Awesome @maxgerhardt !!!

Thank you so much!!!

Hello @maxgerhardt it is happening the same when I tried to compile with the freertos framework…

#include “iomem.h”
^~~~~~~~~
compilation terminated.
src\main.c:29:10: fatal error: iomem.h: No such file or directory

Do you have other repository that solve this xD

In that case iomem.h is included in freeRTOS framework as you can see here:

This is my platformio.ini:

[env:sipeed-maix-bit-mic]

platform = kendryte210
board = sipeed-maix-bit-mic
framework = kendryte-freertos-sdk
upload_port = COM6
upload_protocol = kflash
upload_speed = 1500000
monitor_speed = 115200

I tried with this platformio.ini also and the error is the same:
[env:sipeed-maix-bit-mic]

platform = GitHub - maxgerhardt/platform-kendryte210: Kendryte K210: development platform for PlatformIO

board = sipeed-maix-bit-mic

framework = kendryte-freertos-sdk

upload_port = COM6

upload_protocol = kflash

upload_speed = 1500000

[platformio]

src_dir = .

Thanks in advance.

Jose.

The FreeRTOS SDK is a different package and framework builder logic and wasn’t affected by the changes made to the standalone SDK. What exact example are you using to test compilation?

Hello @maxgerhardt,

I am compiling the same as previous one but for FreeRTOS, it is face detect demo. Here it is the repo of the demo.

Many thanks for your support.