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

Inquiry and support for Freematics products
Post Reply
kylebrochill
Posts: 4
Joined: Wed Oct 04, 2017 10:56 am

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

Post 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?
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

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

Post by stanley »

You should use the code in firmware_v5.
kylebrochill
Posts: 4
Joined: Wed Oct 04, 2017 10:56 am

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

Post by kylebrochill »

I've tried the datalogger code from both folders. Still no luck :(
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

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

Post by stanley »

If for some reason you can't work with Arduino Builder, you can still try PlatformIO or Arduino IDE.
kylebrochill
Posts: 4
Joined: Wed Oct 04, 2017 10:56 am

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

Post by kylebrochill »

Yeah, I tried PlatformIO and everything seems to be working well with that. Thanks!!!!
Post Reply