Esp-idf: xtensa-esp32-elf-gcc error (IDFGH-3375)

Created on 23 Apr 2018  Â·  7Comments  Â·  Source: espressif/esp-idf

Hello, Espressif Engineers:

xtensa-esp32-elf-gcc: error: unrecognized command line option '-mfix-esp32-psram-cache-issue'

I have got the 'make' error, showm above, how to fix issue?

Most helpful comment

Not sure if it's the right thing to do but setting the following in menuconfig seems to have fixed the compile issue and my code appears to be running normally...

SPIRAM_CACHE_WORKAROUND(=n)

All 7 comments

When you run xtensa-esp32-elf-gcc --version, what output do you get?

Closing due to lack of response, please feel free to reopen if this is still an issue and you can supply more details.
Thanks.

I am getting the similar error while building.
unrecognized command line option '-mfix-esp32-psram-cache-strategy=memw';

my xtensa-esp32-elf-gcc version is 8.2.0

@manmohan777 What is the full output of xtensa-esp32-elf-gcc --version, please? This flag was introduced in 2020-r1 toolchain release, you might be using an older version?

I have the same error.

unrecognized command line option '-mfix-esp32-psram-cache-strategy=memw';

xtensa-esp32-elf-gcc (crosstool-NG esp-2020r2) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.

Same issue here on release v4.1 after doing a pull and submodule update init & recursive:

xtensa-esp32-elf-gcc.exe: error: unrecognized command line option '-mfix-esp32-psram-cache-strategy=memw'; did you mean '-mfix-esp32-psram-cache-issue'?
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

E:\Simon\Documents\Code\voip_cpp>xtensa-esp32-elf-gcc --version
xtensa-esp32-elf-gcc (crosstool-NG esp-2019r2) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Not sure if it's the right thing to do but setting the following in menuconfig seems to have fixed the compile issue and my code appears to be running normally...

SPIRAM_CACHE_WORKAROUND(=n)
Was this page helpful?
0 / 5 - 0 ratings