ESP_LOG

iancoull
Posts: 2
Joined: Mon Feb 27, 2023 12:48 am

ESP_LOG

Postby iancoull » Mon Feb 27, 2023 1:17 am

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

MicroController
Posts: 1708
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: ESP_LOG

Postby MicroController » Mon Feb 27, 2023 9:10 pm

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))

iancoull
Posts: 2
Joined: Mon Feb 27, 2023 12:48 am

Re: ESP_LOG

Postby iancoull » Tue Feb 28, 2023 12:26 am

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

Who is online

Users browsing this forum: No registered users and 70 guests