platformio / platformio-docs

PlatformIO Documentation
https://docs.platformio.org
Apache License 2.0
240 stars 325 forks source link

Updated version in example and added include #205

Closed gudnimg closed 3 years ago

gudnimg commented 3 years ago

https://docs.platformio.org/en/latest/plus/debug-tools/avr-stub.html

Updated the library dependancy version in example to avoid confusion. This commit also adds another "app_api.h" include to follow the official documentation example

I was tinkering with this the other day and was confused about what the latest version was :)

I wasn't sure to include is this point about attachInterrupt, but I will mention it here:

The debugger needs to handle the INTx interrupt which is in conflict with the attachInterrupt function in Arduino software library. Small modification of the Arduino library code is required to build the program. This is described in Step 6 section of this document.

This point in the platformio documentation

One external interrupt pin must be reserved for the debugger.

May be good enough, but I was a bit surprised a modification to the Arduino library is needed.

valeros commented 3 years ago

Thanks!