Cannot build esp-rainmaker\examples\switch>

ytan86
Posts: 9
Joined: Thu Aug 15, 2019 3:02 am

Cannot build esp-rainmaker\examples\switch>

Postby ytan86 » Tue Aug 11, 2020 12:44 am

Hi there,

I'm trying to build an example rainmaker project (switch), but I encountered some errors.
Anyone encountered this? I'm using v4.0.1 on Windows 10.
  1. C:/msys32/home/y.tan/esp/esp-rainmaker/components/led_strip/src/led_strip_rmt_ws2812.c: In function 'led_strip_new_rmt_ws2812':
  2. C:/msys32/home/y.tan/esp/esp-rainmaker/components/led_strip/src/led_strip_rmt_ws2812.c:148:17: error: implicit declaration of function 'rmt_get_counter_clock'; did you mean 'rmt_get_source_clk'? [-Werror=implicit-function-declaration]
  3.      STRIP_CHECK(rmt_get_counter_clock((rmt_channel_t)config->dev, &counter_clk_hz) == ESP_OK,
  4.                  ^~~~~~~~~~~~~~~~~~~~~
  5. C:/msys32/home/y.tan/esp/esp-rainmaker/components/led_strip/src/led_strip_rmt_ws2812.c:26:15: note: in definition of macro 'STRIP_CHECK'
  6.          if (!(a))                                                                 \
  7.                ^

ESP_Piyush
Posts: 309
Joined: Wed Feb 20, 2019 7:02 am

Re: Cannot build esp-rainmaker\examples\switch>

Postby ESP_Piyush » Tue Aug 11, 2020 12:15 pm

Hello,

Please use the master branch of esp-idf. RainMaker uses some new code which isn't available on 4.0 or 4.1 releases/branches. We will add some "compatibility mode" config option soon to support these.

Regards,
Piyush

ytan86
Posts: 9
Joined: Thu Aug 15, 2019 3:02 am

Re: Cannot build esp-rainmaker\examples\switch>

Postby ytan86 » Wed Aug 12, 2020 11:11 pm

Hi Piyush,

Thanks for the reply. It works now. For the record, I am using the following:
ESP-IDF Tools 2.3
Python 3.8 (64bit)
Git 2.16.2.windows.1
ESP-IDF master (development branch)
  1. Python 3.8.2
  2. Using Git in C:\Program Files\Git\cmd\
  3. git version 2.16.2.windows.1
  4. Setting IDF_PATH: C:\Users\y.tan\Desktop\esp-idf-2
  5.  
  6. Adding ESP-IDF tools to PATH...
  7. Not using an unsupported version of tool cmake found in PATH: 3.6.1.
  8.     C:\Users\y.tan\.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\bin
  9.     C:\Users\y.tan\.espressif\tools\xtensa-esp32s2-elf\esp-2020r2-8.2.0\xtensa-esp32s2-elf\bin
  10.     C:\Users\y.tan\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin
  11.     C:\Users\y.tan\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin
  12.     C:\Users\y.tan\.espressif\tools\cmake\3.16.4\bin
  13.     C:\Users\y.tan\.espressif\tools\openocd-esp32\v0.10.0-esp32-20200709\openocd-esp32\bin
  14.     C:\Users\y.tan\.espressif\tools\ninja\1.10.0\
  15.     C:\Users\y.tan\.espressif\tools\idf-exe\1.0.1\
  16.     C:\Users\y.tan\.espressif\tools\ccache\3.7\
  17.     C:\Users\y.tan\.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64
  18.     C:\Users\y.tan\.espressif\python_env\idf4.3_py3.8_env\Scripts
  19.     C:\Users\y.tan\Desktop\esp-idf-2\tools

Who is online

Users browsing this forum: No registered users and 23 guests