Espressif 32 dev/platform v1.9.0: ULP programming, ESP-IDF 3.2.2

We are pleased to announce the next release v1.9.0 of Espressif 32 development platform.

34

What’s New

See Espressif32 Release Notes for details.

Documentation

:arrow_right: Espressif 32 — PlatformIO latest documentation

Examples

:arrow_right: platform-espressif32/examples at develop · platformio/platform-espressif32 · GitHub

Update

  • PlatformIO IDE – please navigate to PIO Home > Platforms > Updates
  • PlatformIO Core – please run a next CLI command $ pio update

Regards,
The PlatformIO Team

3 Likes

Dear @ivankravets
I working on creating a component which uses ULP for coming up back from deep sleep mode based on ADC value. Following is tree of component directory:

├── CMakeLists.txt
├── component.mk
├── include
│   └── sleep_mode_management.h
├── Kconfig.projbuild
├── sleep_mode_management.c
└── ulp
    └── adc.S

The CMakeLists.txt contents are following

idf_component_register(SRCS "sleep_mode_management.c" 
                    INCLUDE_DIRS "include" 
                    REQUIRES soc nvs_flash ulp driver)
                    
# ULP support additions to component CMakeLists.txt.
#
# 1. The ULP app name must be unique (if multiple components use ULP).
set(ulp_app_name ulp_adc)
#
# 2. Specify all assembly source files.
#    Files should be placed into a separate directory (in this case, ulp/),
#    which should not be added to COMPONENT_SRCS.
set(ulp_s_sources "ulp/adc.S")
#
# 3. List all the component source files which include automatically
#    generated ULP export file, ${ulp_app_name}.h:
set(ulp_exp_dep_srcs "sleep_mode_management.c")
#
# 4. Call function to build ULP binary and embed in project using the argument
#    values above.
ulp_embed_binary(${ulp_app_name} ${ulp_s_sources} ${ulp_exp_dep_srcs})

Unfortunately, I’m facing the problem of ulp_adc.h not found. I have upgraded to the version of 3.2.2 of ESP-IDF. Can you please guide me how can I fix this issue.

Where is that file in ESP-IDF? I can’t find it in File Finder · GitHub.

You probably mean platform-espressif32 version 3.2.2, which gives you ESP-IDF v4.3.

I have created my own component. Therefore you can not find it on Github repository. According to the documentation of ESP-IDF.
Yes, by 3.2.2 I means platform-espressif32 version.

So the ulp_adc.h is in your project folder? I don’t see it in