Page 1 of 1

Build firmware for external spiram

Posted: Wed Feb 12, 2020 7:29 am
by davidbogatec
I need to build a firmware for WROVER with ULAB module and have access to the external SPIRAM.
I've managed to flash the firmware with ULAB module, but i don't know how to build a firmware able to access the external ram
as the official GENERIC-SPIRAM : esp32spiram-idf3-20191220-v1.12.bin.

Any idea?

thanks

david

Re: Build firmware for external spiram

Posted: Sat Feb 15, 2020 5:07 am
by jimmo
davidbogatec wrote:
Wed Feb 12, 2020 7:29 am
I've managed to flash the firmware with ULAB module, but i don't know how to build a firmware able to access the external ram
When you run the makefile (with the path set to the ulab module), you can specify which board you're targeting.

i.e.

Code: Select all

make BOARD=GENERIC_SPIRAM ..other args..

Re: Build firmware for external spiram

Posted: Mon Feb 17, 2020 9:32 am
by davidbogatec
Hi Jimmo, thanks for the prompt reply.
When i try to build with make board=generic_spiram i have the following error

make BOARD=GENERIC_SPIRAM
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Building with ESP IDF v3
GEN build-GENERIC_SPIRAM/sdkconfig.h
mkdir -p build-GENERIC_SPIRAM/bootloader//home/bogatec/esp32/esp-idf/components/bootloader/subproject/main/
mkdir -p build-GENERIC_SPIRAM/bootloader//home/bogatec/esp32/esp-idf/components/bootloader_support/src/
mkdir -p build-GENERIC_SPIRAM/bootloader//home/bogatec/esp32/esp-idf/components/log/
mkdir -p build-GENERIC_SPIRAM/bootloader//home/bogatec/esp32/esp-idf/components/micro-ecc/micro-ecc/
mkdir -p build-GENERIC_SPIRAM/bootloader//home/bogatec/esp32/esp-idf/components/soc/esp32/
mkdir -p build-GENERIC_SPIRAM/bootloader//home/bogatec/esp32/esp-idf/components/soc/src/
mkdir -p build-GENERIC_SPIRAM/bootloader//home/bogatec/esp32/esp-idf/components/spi_flash/
CC /home/bogatec/esp32/esp-idf/components/bootloader_support/src/bootloader_clock.c
xtensa-esp32-elf-gcc: error: unrecognized command line option '-mfix-esp32-psram-cache-issue'
make: *** [Makefile:954: build-GENERIC_SPIRAM/bootloader//home/bogatec/esp32/esp-idf/components/bootloader_support/src/bootloader_clock.o] Error 1

any idea?
thanks for your support