Cannot compile custom at command code

retrospect
Posts: 1
Joined: Fri Jan 24, 2025 8:09 am

Cannot compile custom at command code

Postby retrospect » Fri Jan 24, 2025 9:58 am

I have followed the tutorial for creating a custom at command for the esp-at project as described here:

https://docs.espressif.com/projects/esp ... mands.html

However, whenever I run python build.py build (Yes I'm on windows), it does not even compile the c, header and CMakeLists file. How do I get it recognized? I currently use Hercules to test and send the command to the ESP32-C3 directly.
Attachments
at_custom.c
(2.48 KiB) Downloaded 227 times

ferrero
Posts: 18
Joined: Tue Nov 05, 2024 3:11 am

Re: Cannot compile custom at command code

Postby ferrero » Thu Jan 30, 2025 5:38 am

You should add ESP_AT_CMD_SET_INIT_FN(esp_at_custom_cmd_register, 1); into your app_main.
And all your custom files should be added into cmake file of component where this files is placed.
https://docs.espressif.com/projects/esp ... ystem.html

esp-at
Espressif staff
Espressif staff
Posts: 335
Joined: Mon May 09, 2022 3:00 am

Re: Cannot compile custom at command code

Postby esp-at » Tue Mar 18, 2025 3:30 am

have you set up the environment variables according to:
https://docs.espressif.com/projects/esp ... -variables

if this issue still exists, please provide the full compile logs.

Who is online

Users browsing this forum: No registered users and 1 guest