Build firmware for external spiram

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
davidbogatec
Posts: 10
Joined: Tue Feb 04, 2020 3:23 pm

Build firmware for external spiram

Post by davidbogatec » Wed Feb 12, 2020 7:29 am

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

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Build firmware for external spiram

Post by jimmo » Sat Feb 15, 2020 5:07 am

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..

davidbogatec
Posts: 10
Joined: Tue Feb 04, 2020 3:23 pm

Re: Build firmware for external spiram

Post by davidbogatec » Mon Feb 17, 2020 9:32 am

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

Post Reply