Page 1 of 1

Freematics One+ Unable to Upload (Error code: -4)

Posted: Wed Oct 04, 2017 11:04 am
by kylebrochill
I just got a Freematics One+ unit earlier this week. Everything is a fresh install with latest files downloaded from https://github.com/stanleyhuangyc/Freematics

I am trying to follow the quick start guide and upload the datalogger sketch but am getting the same error every time:

Build Target: ESP32 (MCU: esp32)
Library path: C:\Users\Bob\Documents\Freematics\Software\Freematics-master\Freematics-master/libraries/FreematicsONE
Library path: hardware/arduino/esp32/libraries/Wire/src
Library path: hardware/arduino/esp32/libraries/SPI/src
Library path: hardware/arduino/esp32/libraries/WiFi/src
Referenced libraries: [FreematicsONE] [Wire] [SPI] [WiFi]

[Sketch]
Compiling datalogger.ino.cpp...
Error compiling source code.

The status bar reads:

"Uploading not successful (Error code: -4)

This happens with any sketch downloaded from the repository.
I have already tried using the libraries from the V4 folder

I believe I am connected, since I am able to upload a simple blinking light sketch using the Arduino Builder.

What is causing this to happen, and how do I fix it?

Re: Freematics One+ Unable to Upload (Error code: -4)

Posted: Wed Oct 04, 2017 8:58 pm
by stanley
You should use the code in firmware_v5.

Re: Freematics One+ Unable to Upload (Error code: -4)

Posted: Thu Oct 05, 2017 2:35 am
by kylebrochill
I've tried the datalogger code from both folders. Still no luck :(

Re: Freematics One+ Unable to Upload (Error code: -4)

Posted: Fri Oct 06, 2017 1:57 am
by stanley
If for some reason you can't work with Arduino Builder, you can still try PlatformIO or Arduino IDE.

Re: Freematics One+ Unable to Upload (Error code: -4)

Posted: Fri Oct 06, 2017 7:30 am
by kylebrochill
Yeah, I tried PlatformIO and everything seems to be working well with that. Thanks!!!!