Page 1 of 1

ESP_LOG

Posted: Mon Feb 27, 2023 1:17 am
by iancoull
Hi Forum

Im new to ESP32 programming
I have compiled and downloaded a few projects successfully using vscode and platformio

my platformio.ini includes:
platform = espressif32
board = az-delivery-devkit-v4
framework = espidf

i have added #include "esp_log.h" to a working project currently measuring temperature and humidity
ihave created a tag
static char tag[] = "test_ST7920";

i have called
ESP_LOGD(tag, "All done!\n");
in app_main

the project uploads and runs succesfully on my dev kit

I start a second terminal and paste
idf.py flash monitor

i get an error message
Please use idf.py only in an ESP-IDF shell environment.
any help would be great

Re: ESP_LOG

Posted: Mon Feb 27, 2023 9:10 pm
by MicroController
Did you run the export.sh script in your terminal? (https://docs.espressif.com/projects/esp ... set-up-env) (or export.bat in Windows (https://docs.espressif.com/projects/esp ... and-prompt))

Re: ESP_LOG

Posted: Tue Feb 28, 2023 12:26 am
by iancoull
Thank you very much that has got me further down the road. It pays to read carefully I thought this had only to be done only once.
Much appreciated. :D