I am a total newbe to this kind of programming and I use Windows 7 64 bit.
I have the ESP32 DevKit V1 and I used the instructions to set up eclipse from here:
http://esp-idf.readthedocs.io/en/latest ... ndows.html
Afterwards I wanted to build and flash the following code:
Code: Select all
/* Blink Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "sdkconfig.h"
/* Can run 'make menuconfig' to choose the GPIO to blink,
or you can edit the following line and set a number here.
*/
#define BLINK_GPIO CONFIG_BLINK_GPIO
void blink_task(void *pvParameter)
{
/* Configure the IOMUX register for pad BLINK_GPIO (some pads are
muxed to GPIO on reset already, but some default to other
functions and need to be switched to GPIO. Consult the
Technical Reference for a list of pads and their default
functions.)
*/
gpio_pad_select_gpio(BLINK_GPIO);
/* Set the GPIO as a push/pull output */
gpio_set_direction(BLINK_GPIO, GPIO_MODE_OUTPUT);
while(1) {
/* Blink off (output low) */
gpio_set_level(BLINK_GPIO, 0);
vTaskDelay(1000 / portTICK_PERIOD_MS);
printf("LED OFF");
/* Blink on (output high) */
gpio_set_level(BLINK_GPIO, 1);
vTaskDelay(1000 / portTICK_PERIOD_MS);
printf("LED ON");
}
}
void app_main()
{
xTaskCreate(&blink_task, "blink_task", configMINIMAL_STACK_SIZE, NULL, 5, NULL);
}
http://www.lucadentella.it/en/2016/12/1 ... 3-eclipse/
This instruction is pretty similar to the upper one, except for the Build Settings.
After cleaning, I builded the project manually and received the following error:
"warning, -s option given but default rule can be matched"
And four warnings that my include paths for the library headers are wrong, though I double checked them and they seem right. (I've attached a picture showing them).
When I now try to flash the code, I get the following error:
"make: *** [/home/LP/esp-idf/components/esptool_py/Makefile.projbuild:53: flash] Error 1"
Any suggestion what could be the problem? I checked the settings like IDF-path etc. several times but cannot find any mistake.
I am helpful for everything cause I totally stuck.
Kind regards
slev1n