Skip to content

IDF Change from V4.1.1 --> V5.2.1 #29

@prime571113

Description

@prime571113

I slightly modified sqlite3 for working with idf v5.2.1
1. DIR: components/esp32-idf-sqlite3

esp32.c

add : #include <esp_random.h>

CMakeLists.txt

  change :                        PRIV_REQUIRES console spiffs spi_flash)
         add spi_flash

2. DIR : examples/esp32-idf-sqlite3-examples/spiffs

CMakeList.txt

     change:  
        #include($ENV{IDF_PATH}/tools/cmake/idf.cmake)     
        include($ENV{IDF_PATH}/tools/cmake/project.cmake)

main/CMakeLists.txt

    change : 
          1 set(COMPONENT_SRCS "spiffs.c")
            2 set(COMPONENT_ADD_INCLUDEDIRS "")
            3 
            4 #comment it :idf_build_component(esp32-idf-sqlite3)
            5 #add spi_flash
            6 idf_component_register(SRCS "${COMPONENT_SRCS}"
            7                        REQUIRES esp32-idf-sqlite3 spiffs spi_flash esp_timer
            8                       )

I tested spiffs example at examples/esp32-idf-sqlite3-examples/spiffs under IDF V5.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions