[SOLVED] Problems getting PlatformIO to play nice

I prefer PlatformIO over Arduino IDE but I’m unable to get a valid sketch uploaded to any of my CubeCell devices successfully.

I’m testing with the examples from github, they build without errors, upload without errors, but after uploading they will not boot up. I’m only getting the following message over serial:

Copyright @ 2019 Heltec Automation.All rights reserved.

No LED activity, no messages over LoRaWAN.
If I upload the same sketch using Arduino IDE, it works correctly.

This is my platformio.ini file:

[env:cubecell_gps]
platform = asrmicro650x
framework = arduino
board = cubecell_gps
monitor_speed = 115200
board_build.arduino.lorawan.region = EU868
board_build.arduino.lorawan.adr = ON
board_build.arduino.lorawan.debug_level = FREQ_AND_DIO

I spotted your post on TTN forum earlier, I use platformio with heltec devices and have no issues.

Are you getting the same even with a basic ‘hello world’ demo? best guess is that it looks like its not getting past the bootloader code. Have you got more than one device to test?

Below is my platform.ini setup.

[env:cubecell_node]
platform = https://github.com/HelTecAutomation/platform-asrmicro650x.git
board = cubecell_node
framework = arduino

platform_packages =
framework-arduinoasrmicro650x@~1.2.0

monitor_speed = 115200
board_build.arduino.lorawan.region = EU868
board_build.arduino.lorawan.class = CLASS_A
board_build.arduino.lorawan.netmode = OTAA
board_build.arduino.lorawan.adr = OFF
board_build.arduino.lorawan.uplinkmode = UNCONFIRMED
board_build.arduino.lorawan.net_reserve = OFF
board_build.arduino.lorawan.rgb = DEACTIVE
board_build.arduino.lorawan.debug_level = NONE
board_build.arduino.lorawan.at_support = ON

3 Likes

Thank you @jezd for trying to help me.
I switched over to your .ini and HTCC-AB02A module.
Tried using the absolutely basic “Blink” example - no change.

At the same time I see no errors on PlatformIO side.

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.

It was a rookie mistake when setting up a new PlatformIO Project. Everything is working as its supposed to :slight_smile:

1 Like