Need Help for ESP32 PSRAM Msys2 IDE
Posted: Wed Jul 26, 2017 3:47 am
I took the official Windows all-in-one toolchain & MSYS zip file from dl.espressif.com as the ESP32 IDE:
esp32_win32_msys2_environment_and_toolchain-20170330.zip
And I got the ESP32 WROVER KIT V3 board which had the ESP-WROVER with 4MB of psRAM.And I had git clone the feature/psram_malloc branch esf-idf code.The build failed when I open the ext PSRAM features.It seems need special xtensa-esp32-elf files .
Since I use the Win7 64bit ,so I take the Msys2 as the IDE,which need xtensa-esp32-elf-XX.exe to build the firmware.I tried to make and build xtensa-1.22.x-ext_ram_patch version crosstool-ng but failed.
I also tried xtensa-1.22.x-ext_ram_patch version exe files which were built from Cygwin(thanx rudi),it seems these files which were built in Cygwin could not be used in Msys2:
Since we are familier with Msys2 IDE for ESP32 development,I still want to get the Msys2 version xtensa-esp32-elf-gcc for ESP32 PSRAM modules.Could someone help me?Thanx!
esp32_win32_msys2_environment_and_toolchain-20170330.zip
And I got the ESP32 WROVER KIT V3 board which had the ESP-WROVER with 4MB of psRAM.And I had git clone the feature/psram_malloc branch esf-idf code.The build failed when I open the ext PSRAM features.It seems need special xtensa-esp32-elf files .
Code: Select all
make
CC src/bootloader_random.o
xtensa-esp32-elf-gcc.exe: error: unrecognized command line option '-mfix-esp32-psram-cache-issue'
xtensa-esp32-elf-gcc.exe: error: unrecognized command line option '-mfix-esp32-psram-cache-issue'
make[2]: *** [/home/esp-idf/make/component_wrapper.mk:177:src/bootloader_random.o] Error 1
make[1]: *** [/home/esp-idf/make/project.mk:395:bootloader_support-build] Error 2
make: *** [/home/esp-idf/components/bootloader/Makefile.projbuild:31:/home/esp-idf/examples/protocols/https_request/build/bootloader/bootloader.bin] Error 2
I also tried xtensa-1.22.x-ext_ram_patch version exe files which were built from Cygwin(thanx rudi),it seems these files which were built in Cygwin could not be used in Msys2:
Code: Select all
$ make
3 [main] xtensa-esp32-elf-gcc (9896) D:\msys32\opt\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe: *** fatal error - cygheap base mismatch detected - 0x612E4408/0x61304400.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
1 [main] xtensa-esp32-elf-gcc (9996) D:\msys32\opt\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe: *** fatal error - cygheap base mismatch detected - 0x612E4408/0x61304400.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
WARNING: Failed to find Xtensa toolchain, may need to alter PATH or set one in the configuration menu
1 [main] xtensa-esp32-elf-gcc (7904) D:\msys32\opt\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe: *** fatal error - cygheap base mismatch detected - 0x612E4408/0x61304400.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
1 [main] xtensa-esp32-elf-gcc (9476) D:\msys32\opt\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe: *** fatal error - cygheap base mismatch detected - 0x612E4408/0x61304400.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
WARNING: Failed to find Xtensa toolchain, may need to alter PATH or set one in the configuration menu
CC src/bootloader_random.o
1 [main] xtensa-esp32-elf-gcc (9144) D:\msys32\opt\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe: *** fatal error - cygheap base mismatch detected - 0x612E4408/0x61304400.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
make[2]: *** [/home/esp-idf/make/component_wrapper.mk:177: src/bootloader_random.o] Segmentation fault
make[1]: *** [/home/esp-idf/make/project.mk:395:bootloader_support-build] Error 2
make: *** [/home/esp-idf/components/bootloader/Makefile.projbuild:31:/home/esp-idf/examples/protocols/https_request/build/bootloader/bootloader.bin] Error 2