implicit declaration of function
Posted: Fri Jun 09, 2023 7:14 am
Dear all, I am trying to make working this example code for the slave: https://esp32tutorials.com/esp32-i2c-co ... Y2RHFZRQj8
But when trying to Build I receive the following error:
C:/Users/konec/sniffer_test2/main/main.c:51:5: error: implicit declaration of function 'gpio_pad_select_gpio'; did you mean 'esp_rom_gpio_pad_select_gpio'? [-Werror=implicit-function-declaration]
51 | gpio_pad_select_gpio(LED_PIN);
| ^~~~~~~~~~~~~~~~~~~~
| esp_rom_gpio_pad_select_gpio
C:/Users/konec/sniffer_test2/main/main.c:49:14: warning: unused variable 'on_command' [-Wunused-variable]
49 | uint8_t on_command[] = "LED_ON";
| ^~~~~~~~~~
cc1.exe: some warnings being treated as errors
[8/102] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D C:\Users\konec\sniffer_test2\build\bootloader\esp-idf\esptool_py && c:\Espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe C:/Espressif/frameworks/esp-idf-v5.0.2-2/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 C:/Users/konec/sniffer_test2/build/bootloader/bootloader.bin"
Bootloader binary size 0x6700 bytes. 0x900 bytes (8%) free.
[24/101] Building C object esp-idf/protocomm/CMakeFiles/__idf_protocomm.dir/src/security/security1.c.obj
ninja: build stopped: subcommand failed.
* The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command ninja " terminated with exit code: 1.
Could someone help me what am I doing wrong, please ?
But when trying to Build I receive the following error:
C:/Users/konec/sniffer_test2/main/main.c:51:5: error: implicit declaration of function 'gpio_pad_select_gpio'; did you mean 'esp_rom_gpio_pad_select_gpio'? [-Werror=implicit-function-declaration]
51 | gpio_pad_select_gpio(LED_PIN);
| ^~~~~~~~~~~~~~~~~~~~
| esp_rom_gpio_pad_select_gpio
C:/Users/konec/sniffer_test2/main/main.c:49:14: warning: unused variable 'on_command' [-Wunused-variable]
49 | uint8_t on_command[] = "LED_ON";
| ^~~~~~~~~~
cc1.exe: some warnings being treated as errors
[8/102] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D C:\Users\konec\sniffer_test2\build\bootloader\esp-idf\esptool_py && c:\Espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe C:/Espressif/frameworks/esp-idf-v5.0.2-2/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 C:/Users/konec/sniffer_test2/build/bootloader/bootloader.bin"
Bootloader binary size 0x6700 bytes. 0x900 bytes (8%) free.
[24/101] Building C object esp-idf/protocomm/CMakeFiles/__idf_protocomm.dir/src/security/security1.c.obj
ninja: build stopped: subcommand failed.
* The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command ninja " terminated with exit code: 1.
Could someone help me what am I doing wrong, please ?