Hi all,
I’m having issues with getting sketches to upload and run correctly using PlatformIO. The hardware I’m using is Heltec Cubecell (asrmicro650x)
The code would build fine, without errors. Upload would indicate success and I can verify that the old firmware on my board really does get deleted (Blink code I uploaded with Arduino IDE stops blinking the LED)
But after PlatformIO upload, the device does not get past bootloader. Not sure if the problem is with PlatformIO or with Heltec support for asrmicro650x
This is my .ini file:
[env:cubecell_node]
platform = asrmicro650x
framework = arduino
board = cubecell_node
monitor_speed = 115200
board_build.arduino.lorawan.region = EU868
board_build.arduino.lorawan.adr = ON
board_build.arduino.lorawan.debug_level = FREQ_AND_DIO
This is my code:
#include <Arduino.h>
void setup()
{
// initialize LED digital pin as an output.
pinMode(RGB, OUTPUT);
}
void loop()
{
// turn the LED on (HIGH is the voltage level)
digitalWrite(RGB, HIGH);
// wait for a second
delay(1000);
// turn the LED off by making the voltage LOW
digitalWrite(RGB, LOW);
// wait for a second
delay(1000);
}
And this is the upload output:
Auto-detected: /dev/ttyUSB0
Uploading .pio/build/cubecell_node/firmware.cyacd
Initialising bootloader.
Silicon ID 0x256a11b5, revision 0.
Verifying rows.
Array 0: first row 34, last row 511.
Starting upload.
Uploading ( 10 / 100 )
Uploading ( 20 / 100 )
Uploading ( 30 / 100 )
Uploading ( 40 / 100 )
Uploading ( 50 / 100 )
Uploading ( 60 / 100 )
Uploading ( 70 / 100 )
Uploading ( 80 / 100 )
Uploading ( 90 / 100 )
Uploading ( 100 / 100 )
Checksum verifies OK.
Rebooting.
Total upload time 3.24s
======================= [SUCCESS] Took 4.38 seconds =========================Terminal will be reused by tasks, press any key to close it.