Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation Error #23

Open
zejdajan opened this issue Aug 1, 2023 · 1 comment
Open

Compilation Error #23

zejdajan opened this issue Aug 1, 2023 · 1 comment

Comments

@zejdajan
Copy link

zejdajan commented Aug 1, 2023

Hi, I succesfully flashed ESP via Mongoose OS.
Now I am trying same thing via Arduino IDE 2.1.1. on Windows
I have installed mdash lib v1.2.16, I am trying to flash the "minimal example"
During the compilation, I am getting this error:

`d:\Projekty\Arduino\libraries\mDash\src\mDash.c: In function 'enable_wdt':
d:\Projekty\Arduino\libraries\mDash\src\mDash.c:85:3: error: implicit declaration of function 'esp_task_wdt_add'; did you mean 'esp_flash_read'? [-Werror=implicit-function-declaration]
esp_task_wdt_add(xTaskGetIdleTaskHandleForCPU(CPU_CORE));
^~~~~~~~~~~~~~~~
esp_flash_read
d:\Projekty\Arduino\libraries\mDash\src\mDash.c: In function 'disable_wdt':
d:\Projekty\Arduino\libraries\mDash\src\mDash.c:88:3: error: implicit declaration of function 'esp_task_wdt_delete'; did you mean 'esp_timer_delete'? [-Werror=implicit-function-declaration]
esp_task_wdt_delete(xTaskGetIdleTaskHandleForCPU(CPU_CORE));
^~~~~~~~~~~~~~~~~~~
esp_timer_delete
cc1.exe: some warnings being treated as errors

exit status 1

Compilation error: exit status 1`

Could you help me please?

@zejdajan
Copy link
Author

zejdajan commented Aug 1, 2023

It seems that library is missing this include: #include <esp_task_wdt.h>
After adding it to the mDash.c file it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant