yuriar

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: ESP32 WROVER PSRAM #27701
    yuriar
    Participant

    Hi, I found the problem, It was a hardware issue. We are allocating the pin io16 and it is connected internally in the CS of the PSRAM.
    I managed to get the VS Code + IDF V3.3 working on the same project with Visual Studio + visualgdb. That is lighting fast as I don’t need to generate any extra script and I can load only the application layer once the bootloader is settled down.  Sorry for saying that but it was 10 seconds against almost 1 minute to compile a simple change and load an application.

    The PSRAM is working from the sdkconfig generated from visualgdb.

     

    • This reply was modified 4 years, 9 months ago by yuriar.
    • This reply was modified 4 years, 9 months ago by yuriar.
    Attachments:
    You must be logged in to view attached files.
    in reply to: ESP32 WROVER PSRAM #27646
    yuriar
    Participant

    Hi,

    I tried to use the release/v4.0 and I couldn’t get the blink led example compiled.

    The terminal came back with this:

    make: *** No rule to make target ‘check_python_dependencies’, needed by ‘defconfig’. Stop.
    ————————————————————-
    Command exited with code 2
    Executable: c:\sysgcc\esp32\usr\bin\bash.exe
    Arguments: –login -c “export IDF_PATH=/esp-idf/v4.0 && export BATCH_BUILD=1 && export PATH=/mingw32/bin:/usr/bin:$PATH && export -n PYTHONHOME && export LANG=en_US && cd /c/users/me/source/repos/EmbeddedProject13/EmbeddedProject13 && make defconfig BUILD_DIR_BASE=’/c/users/me/source/repos/EmbeddedProject13/EmbeddedProject13/VisualGDBCache/EmbeddedProject13-Debug-VisualGDB/CodeSenseDir’ SDKCONFIG=’/c/users/me/source/repos/EmbeddedProject13/EmbeddedProject13/sdkconfig-debug’ V=0”
    Directory:
    Command-line action failed
    Project configuration failed: System.IO.FileNotFoundException: Could not find file ‘c:\users\me\source\repos\EmbeddedProject13\EmbeddedProject13\sdkconfig-debug’.
    File name: ‘c:\users\me\source\repos\EmbeddedProject13\EmbeddedProject13\sdkconfig-debug’
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
    at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
    at kw.a.s_2(tq1 a)
    at ta.l(String a)
    at ta.n_2()
    at uq2.g()

     

    As soon as switch back to Release/v3.2 works right away.

    Please let me know if I am doing something wrong.

     

    Also, did you have time to help me out with the external memory allocation? Or if I can keep the same sdkconfig from make menuconfig?

    Attachments:
    You must be logged in to view attached files.
    in reply to: ESP32 WROVER PSRAM #27631
    yuriar
    Participant

    Hi,

    That is exactly what is happing. It works without the visualgdb.

    So what is the right configuration to get the PSRAM using visualgdb and be able to allocate big buffers? Using visual studio code + Espressif SDK I have no problem.

    I need this working in visual studio and visualgdb because the company uses this environment.

    I think there are two ways, either I use the sdkconfig created by the make config from the IDF instead the one created by visualgdb UI, or I find a way to get the same configuration file from the visualgdb UI.

    Also, I noticed visual gdb supports IDF version 3.2 and the latest so far is 4.1. When do you think we can have 4.1 SDK?

    in reply to: ESP32 WROVER PSRAM #27622
    yuriar
    Participant

    Hello,

    I’m having a similar problem. I am using the latest toolchain and I’m trying to use the external SPI ram memory but something isn’t working quite right.

    I have done all possible combinations of PSram in the visualGDB settings but I can’t get the external memory working properly.

    When I run the application I can see the external memory is tested and recognized by the system, however, it always returns a null pointer when I try to use the external memory.

     

    For example, using this configuration bellow I can check that the heap increased and I have extra memory. But when I try to do a simple test like allocating 15KB, the ESP32 return null.

    #
    # ESP32-specific
    #
    CONFIG_ESP32_DEFAULT_CPU_FREQ_80=
    CONFIG_ESP32_DEFAULT_CPU_FREQ_160=
    CONFIG_ESP32_DEFAULT_CPU_FREQ_240=y
    CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ=240
    CONFIG_SPIRAM_SUPPORT=y

    #
    # SPI RAM config
    #

    CONFIG_SPIRAM_BOOT_INIT=y
    CONFIG_SPIRAM_IGNORE_NOTFOUND=
    CONFIG_SPIRAM_USE_MEMMAP=
    CONFIG_SPIRAM_USE_CAPS_ALLOC=
    CONFIG_SPIRAM_USE_MALLOC=y
    CONFIG_SPIRAM_TYPE_AUTO=y
    CONFIG_SPIRAM_TYPE_ESPPSRAM32=
    CONFIG_SPIRAM_TYPE_ESPPSRAM64=
    CONFIG_SPIRAM_SIZE=-1
    CONFIG_SPIRAM_SPEED_40M=
    CONFIG_SPIRAM_SPEED_80M=y
    CONFIG_SPIRAM_MEMTEST=y
    CONFIG_SPIRAM_CACHE_WORKAROUND=y
    CONFIG_SPIRAM_BANKSWITCH_ENABLE=y
    CONFIG_SPIRAM_BANKSWITCH_RESERVE=8
    CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=16384
    CONFIG_WIFI_LWIP_ALLOCATION_FROM_SPIRAM_FIRST=
    CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=32768
    CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY=y
    CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=

     

    I’m using esp32-cam which has 4MB PSRAM, I just can’t use it.

    When I use make menuconfig, the external memory works and I can allocate anything without any problem.

    I can’t just easily import my sdkconfig from my make menuconfig. Is there a way that I can use a pre-defined sdkconfig instead of the graphical one? I have the right configuration but I can’t get the same thing from the visualGDB interface. Also, every time when I compile it, my configuration file gets overwritten.

    Attachments:
    You must be logged in to view attached files.
Viewing 4 posts - 1 through 4 (of 4 total)