Search found 2 matches

by GerardoBB
Wed Jun 28, 2023 11:07 pm
Forum: ESP-IDF
Topic: esp_err.h ESP_ERROR_CHECK() problem
Replies: 2
Views: 1982

Re: esp_err.h ESP_ERROR_CHECK() problem

ESP_Sprite wrote:
Wed Jun 28, 2023 6:05 am
All the things wrapped in ESP_ERROR_CHECK are functions; they need to be called within a function, e.g. your app_main. You can't just plunk them anywhere in your C file.
Got it, thank you very much.
by GerardoBB
Wed Jun 28, 2023 4:25 am
Forum: ESP-IDF
Topic: esp_err.h ESP_ERROR_CHECK() problem
Replies: 2
Views: 1982

esp_err.h ESP_ERROR_CHECK() problem

I'm just starting with ESP-IDF, and I'm trying to build a simple UART communication script. This is my code: #include <stdio.h> #include <esp_err.h> #include <driver/uart.h> #include <driver/gpio.h> #include <freertos/FreeRTOS.h> #include <freertos/task.h> const uart_port_t uart_num = UART_NUM_0; ua...