I’m trying to move my project from Arduino IDE to PlatoformIO, but I’m having some trouble. It’s for a NodeMCUv2 board. It compiles and works fine on the board using Arduino IDE, but not when compiled using PlatformIO. I’m using PlatformIDE for Atom, on Linux Mint.
I created a new project, pasted the code from my sketch into src/main.cpp, added a private library at lib/, and this is my platform.ini:
[env:nodemcuv2] platform = espressif8266 board = nodemcuv2 framework = arduino build_flags = !python git_rev_macro.py lib_deps = Crypto=https://github.com/intrbiz/arduino-crypto
It compiles without any errors and seems to upload without any problems as well, but using the serial monitor to check if it works, all I see is:
— Miniterm on /dev/ttyUSB0 115200,8,N,1 —
— Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H —
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
It appears it is not running anything after booting. The binaries produced are different. Don’t know what else to do to troubleshoot this.
Thanks in advance