Skip to content

Compile esp-dsp for IDF_TARGET=linux (DSP-136) #85

Open
@morgana2313

Description

@morgana2313

Is your feature request related to a problem?

No response

Describe the solution you'd like.

I would like to be able to compile esp-dsp for IDF_TARGET=linux so I can do (unit) tests on the host computer without an actual esp32.

When I try to compile example/basic_math it fails:

basic_math $ IDF_TARGET=linux idf.py build
Executing action: all (aliases: build)
Running cmake in directory /Users/jasper/esp/esp-dsp/examples/basic_math/build
[...]
-- Building ESP-IDF components for target linux
[...]
In file included from esp/esp-dsp/modules/common/misc/aes3_tie_log.c:7:
In file included from esp/esp-dsp/modules/common/include/dsp_common.h:23:
esp/esp-idf/components/esp_hw_support/include/esp_cpu.h:129:17: error: call to undeclared function 'rv_utils_get_core_id'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    return (int)rv_utils_get_core_id();
[...]
fatal error: too many errors emitted, stopping now [-ferror-limit=]

Describe alternatives you've considered.

No response

Additional context.

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions