Hello,
I am trying to get a JTAG working with my esp32 wroom 32 with a simple blink program, but i cannot get it to work without errors. Can somebody help me I tried searching on Google but no luck on how to solve my problem.
This is the error message:
This is my ini file:
[env:upesy_wroom]
platform = espressif32
board = upesy_wroom
framework = espidf
monitor_speed = 115200
debug_tool = esp-prog
upload_protocol = esp-prog
debug_init_break = tbreak setup
debug_port = COM7
upload_port = COM7
This is my code:
#include <driver/gpio.h>
// Include FreeRTOS for delay
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
int app_main() {
// Configure pin
gpio_config_t io_conf;
io_conf.intr_type = GPIO_INTR_DISABLE;
io_conf.mode = GPIO_MODE_OUTPUT;
io_conf.pin_bit_mask = (1ULL << GPIO_NUM_2);
io_conf.pull_down_en = 0;
io_conf.pull_up_en = 0;
gpio_config(&io_conf);
// Main loop
while(true) {
gpio_set_level(GPIO_NUM_2, 0);
vTaskDelay(500 / portTICK_PERIOD_MS);
gpio_set_level(GPIO_NUM_2, 1);
vTaskDelay(500 / portTICK_PERIOD_MS);
}
}
I have installed Zidag and the needed drivers so that should not be the problem.