Hi @axwell!
Thanks for the report!
Could you please try to build and run your project with previous framework version? Just replace old one in the PlatformIO home directory: /home/user/.platformio/packages/framework-arduinosam (Unix) C:\Users\user\.platformio\packages\framework-arduinosam (Windows)
When I use IDE to build the code to a DUE, nothings shows up after upload; however, if I use a terminal and just type in `platoformio run -t upload" it works fine.
So just to recap:
Is this issue related to a corrupted firmware generated by PlatformIO or related to the broken terminal in IDE? @axwell@Hex Could you please upload sketch mentioned in the first post and run command pio serialports monitor --baud 9600 directly in IDE terminal? Does it work properly?
I don’t think the terminal is bad, The test is I upload the code from a regular terminal and let the DUE run for a second, then I open a Serial monitor from the IDE and It will read the correct values.
I have the exact same issue here on Linux Mint 1.8 and Arduino DUE board.
I have platformio 2.11.0 with platforms:
toolchain-gccarmnoneeabi: version 3
framework-arduinosam: version 16
tool-bossac: version 3
tool-openocd: version 1
tool ldscripts: version 23
I have the udev rules installed too.
I did these steps:
I opened the Blinky example in Arduino IDE 1.6.9 and uploaded the sketch to my Arduino DUE. It worked as expected, the led was blinking.
I issued the command “pio init --ide eclipse --board due” in a new folder. The command completed successfully.
In Eclipse I imported the newly created project and created a source file with name main.cpp.
I copy pasted the code from Arduino IDE to main.cpp and added #include “Arduino.h” at the top of the file
Double clicked build target and the source got compiled ([SUCCESS] Took 1.95 seconds) creating .pioenvs/due/firmware.elf file.
Double clicked upload target and a lot of similar messages appeared along with the DUE’s TX/RX led blinking rapidly:
go(addr=0x20001020)
read(addr=0x20002000,size=0x100)
writeWord(addr=0x20001028,value=0x20002000)
writeWord(addr=0x2000102c,value=0x82500)
readWord(addr=0x400e0a08)=0x1
then the command finished with success message
Then however nothing happened in the sense that the Arduino DUE’s led stopped blinking the way it did when I uploaded the code with Arduino IDE.
I tried different sources too, with Serial, but nothing happened, no communication at all. It appears to me as if the binaries created were not good for due and while it can be uploaded it could not be run but I’m not quite sure.
Hi @csgyuri! Could you please try latest development version of PlatformIO?
# uninstall existing version
pip uninstall platformio
# install the latest development version of PlatformIO
pip install -U https://github.com/platformio/platformio/archive/develop.zip
Hello I am having the same problem, upload successful but then nothing in the serial terminal. I have verified that the serial monitor works by uploading a sketch via arduino IDE and then viewing the output in the platformio serial monitor. I believe the issue may lie in the fact that the code uploaded is not being run at boot.
I am using platformio-ide version 2.0.0-beta.7 & platformio-ide-terminal version 2.5.3.
I tried using the framework arduinosam 15 but due to the changes in the package management system it didn’t detect that version and re downloaded the latest version.
Looks like i am experiencing this exact issue. Upgraded to 3.5.2b1, but that did not help. Running on a Teensy 3.2. Everything was working just fine, until all of a sudden it wasn’t. By all indications the code is nor running on the uC. Example code runs just fine from the arduino IDE