Hi.
Terminal output when i hit the “upload”:
> Executing task: platformio run --target upload <
Processing esp32dev (platform: https://github.com/platformio/platform-espressif32.git#feature/stage; board: esp32dev; framework: arduino)
---------------------------------------------------------------------------------------------------------------------
Platform Manager: Installing git+https://github.com/platformio/platform-espressif32.git#feature/stage
git version 2.25.1
Cloning into '/~/.platformio/.cache/tmp/pkg-installing-_ptimlz7'...
warning: Could not find remote branch feature/stage to clone.
fatal: Remote branch feature/stage not found in upstream origin
Error: VCS: Could not process command ['git', 'clone', '--recursive', '--depth', '1', '--branch', 'feature/stage', 'https://github.com/platformio/platform-espressif32.git', '/~/.platformio/.cache/tmp/pkg-installing-_ptimlz7']
The terminal process "platformio 'run', '--target', 'upload'" terminated with exit code: 1.
USER path now replaced with “~”.
I’m a N00B to PlatformIO.
Using Ubuntu 20.04 with Visual Studio Code 1.50.1
Trying to update my “freematics ONE+(Espressif ESP32 main controller)” with an updated config.
in the platformio.ini but the branch feature/stage you reference does not exist. What are you trying to do? Sure that standard platform = espressif32 isn’t what you want?
Thank you for your reply.
What i want is to change the config.h file of the Freematics ONE+, and to be safe, i wanted to do it “by the book”. More specific, i need to change the WIFI_SSID, WIFI_PASSWORD and SERVER_HOST.
The code on the Freematics is: https://github.com/stanleyhuangyc/Freematics.git
So i have cloned that one, and edited the config.h.
Then i try to upload, and get the output in my first post.
So i don’t think i want the standard platform, tho i’m not sure
Pleas uncomment the first and comment the second line.
Okay, usually the src_dir is src/, but you remap it to the root of the project… Can you show project file structure, or better, the complete project in a github repo or something? This might be a problem because then stuff like lib/ is also suddendly in the src_dir.
Looking for upload port…
Error: Please specify upload_port for environment or use global --upload-port option.
For some development platforms it can be a USB flash drive (i.e. /media//)
*** [upload] Explicit exit, status 1
And cant find the file where i should edit that one…
edit:
Also under the “Problems” tab in VSCode:
Cannot find “‘~’/Ymse/Freematics/firmware_v5/telelogger/include”.
Ah okay I get the full picture now. You cloned the repo (which contains a bazillion sketches), and you want to upload the firmware_v5/telelogger sketch.
Yeah all seems to compile fine now, after your feedback.
the board is connected, but i’m strugling to verify what port.
VS only finds one device, at /dev/ttyS0 ‘ttyS0’
and after:
sudo usermod -a -G dialout $USER
sudo usermod -a -G plugdev $USER
I can start monitoring on ttyS0:
— Available ports:
— 1: /dev/ttyS0 ‘ttyS0’
— Enter port index or full name: 1
— Miniterm on /dev/ttyS0 115200,8,N,1 —
— Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H —
ctrl+c works, the others give no change. So it might not be the board im monitoring…
edit:
i can still “monitor” ttyS0 after i unplug it. And dmesg gives no new output when plugging/unplugging the board…
This is usually a hardware COM port on your motherboard. ESP8266’s with USB-to-serial converter chips (such as FTDIs, CH340G, …) should show up as /dev/ttyACM0 or /dev/ttyUSB0.
Then your board is dead. What exact board do you have? Pictures, link? Does the board at least have a power LED that lights up? Are you working in a VM and forgot to pass through the device?
And it has a indicator led, wich was first blinking, then on. So i was wondering if it had enough power, plugged it in the OBD port of my car(12v), and my laptop. But still no dice. Was using a new usb cable, also used for my phone. Just to rule out the cable, i got an old one in my car(well used with tape on). And suddenly it popped up in dmesg! Holy macaroni, i just needed to use an old usb cable…
So now it updated fine, and i just need to get the config for wifi and carstat server correct.