question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The debugging of the Arduino Framework fails with FTDI Chip and ESP WROVER KIT

See original GitHub issue

What kind of issue is this?

  • Feature Request. Start by telling us what problem you’re trying to solve. Often a solution already exists! Don’t send pull requests to implement new features without first getting our support. Sometimes we leave features out on purpose to keep the project small.

  • PlatformIO Core. If you’ve found a bug, please provide an information below.

You can erase any parts of this template not applicable to your Issue.


Configuration

Operating system: Windows 7 (the bug has been seen also on Win 8.1)

PlatformIO Version (platformio --version): PlatformIO, version 3.6.1a5 (upgraded to dev version)

Description of problem

The debugging of the Arduino Framework fails with FTDI Chip and ESP WROVER KIT

Steps to Reproduce

  1. Open arduino blinky example with esp wrover kit (see platformio.ini)
  2. Configure FTDI Chip as debugger as described in the forum: https://community.platformio.org/t/esp32-pio-unified-debugger/4541/78 (Normally the debugger sould work with ESP-IDF)
  3. Put a breakpoint in line 15 pinMode(LED_BUILTIN, OUTPUT);
  4. start debug session
  5. Put a breakpoint in line 21 digitalWrite(LED_BUILTIN, HIGH);
  6. Push F5

Actual Results

Instead of stopping a the breakpoint line 21, it stopps in the ASM code below image

If you push start again it never stops, an the led does not blink

Expected Results

It should stops at the line 21

If problems with PlatformIO Build System:

The content of platformio.ini:

[env:esp wrover kit]
platform = espressif32
framework = arduino
board = esp-wrover-kit
monitor_speed = 115200
build_flags =
	; https://docs.espressif.com/projects/esp-idf/en/latest/get-started/get-started-wrover-kit.html#rgb-led
	-D LED_BUILTIN=2
debug_tool = ftdi

Source file to reproduce issue:

/*
 * Blink
 * Turns on an LED on for one second,
 * then off for one second, repeatedly.
 */

#include <Arduino.h>

// Set LED_BUILTIN if it is not defined by Arduino framework
// #define LED_BUILTIN 2

void setup()
{
  // initialize LED digital pin as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop()
{
  // turn the LED on (HIGH is the voltage level)
  digitalWrite(LED_BUILTIN, HIGH);
  // wait for a second
  delay(500);
  // turn the LED off by making the voltage LOW
  digitalWrite(LED_BUILTIN, LOW);
   // wait for a second
  delay(1000);
}

Additional info

More info about this bug in the forum: https://community.platformio.org/t/esp32-pio-unified-debugger/4541/57

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:26 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ivankravetscommented, Feb 7, 2019
  1. I added a breakpoint on the line loopTaskWDTEnabled = false; and pressed “Continue”

No, please set breakpoint at void loopTask(void *pvParameters). You should stop at setup();, line 20 in main.cpp

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to use FTDI Chip to debug ESP-WROVER-KIT
Able to download firmware but unable to debug. According to doc from platformio and doc from espressif, directly connecting the board to the ......
Read more >
Need help with JTAG on ESP-WROVER-KIT-VE - ESP32 Forum
Hi, I try to use the JTAG debugger on my ESP-WROVER-KIT-VE in an Arduino and the esp-idf environment with Visual Studio Code and...
Read more >
ESP-WROVER-KIT V4.1 Getting Started Guide - ESP32
This guide shows how to get started with the ESP-WROVER-KIT V4.1 development ... This chip enables to use JTAG for direct debugging of...
Read more >
The Internet of Things with ESP32
Created by Espressif Systems, ESP32 is a low-cost, low-power system on a chip (SoC) series with Wi-Fi & dual-mode Bluetooth capabilities!
Read more >
Getting started with the Espressif ESP32-DevKitC and the ESP ...
To establish a serial connection between your host machine and the ESP32-WROVER-KIT, you must install the FTDI virtual COM port driver. You can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found