Chorus32-ESP32LapTimer icon indicating copy to clipboard operation
Chorus32-ESP32LapTimer copied to clipboard

Compiling on Platformio?

Open marcfon opened this issue 4 years ago • 11 comments

The ESP32LapTimer.ino file says to check the readme but the information there is quite sparse :)

UPDATE: Here is how I did it.

  • Pull Chorus32 from github
  • Install Atom
  • Install Platformio
  • Import Arduino project in Platformio
  • Specify the upload port in platformio.ini (eg. upload_port = /dev/cu.Repleo-CP2102-0001)
  • Start Platformio Terminal (shift+command+T)
  • Run pio run -e BOARD_OLD -t upload
  • Hold boot button (important on my board!)
  • Run pio run -e BOARD_OLD -t uploadfs
  • Hold boot button
  • Connect to Chorus32 LapTimer wifi
  • Open http://192.168.4.1/
  • You should now see the configuration page

Use BOARD_OLD if you are using this wiring schema and BOARD_DEFAULT if you're using the PCB v2.2 wiring schema.

marcfon avatar Apr 29 '20 15:04 marcfon

I need as well more information - how to use platformio!

mottex avatar Apr 29 '20 15:04 mottex

If you are running platformIO from the cli you can specify the env via the -e option, in case the port selection fails you can specify the port in the platformio.ini file for each environment See here: https://docs.platformio.org/en/latest/projectconf/section_env_upload.html#upload-port

pio run -e BOARD_OLD -t upload

s00500 avatar Apr 29 '20 16:04 s00500

Or use --upload-port on to specify in the run command as well :-) Hope I could help

s00500 avatar Apr 29 '20 16:04 s00500

I managed to build and upload the project using platformio using the steps described in the first post.

I haven't yet managed to specify the env target (BOARD_DEFAULT / BOARD_TTGO_LORA / BOARD_OLD) from the GUI. So need to use the CLI for now to build and upload.

marcfon avatar Apr 29 '20 19:04 marcfon

This is how to compile Chorus32 with Bluetooth support...

  1. Uncomment #define BluetoothEnabled in ESP32Laptimer.cpp
  2. Uncomment #define USE_BLUETOOTH in HardwareConfig.h
  3. Add board_build.partitions = huge_app.csv line to platformio.ini

marcfon avatar Apr 30 '20 13:04 marcfon

I won't recommend using Bluetooth. See #117

Smeat avatar Apr 30 '20 14:04 Smeat

I'm sure one day bluetooth will be stable and this information might become useful :)

Also wifi is broken on app on Android 10 so bluetooth might be the only alternative for some.

marcfon avatar May 01 '20 11:05 marcfon

But as of now, if you are using Bluetooth, the timer might crash any time, so I'd deem this unusable in the current state.

As for the Android problem: I should have a working fix by tommorrow

Smeat avatar May 01 '20 13:05 Smeat

@Smeat Thanks for pointing that out. And looking forward to beta testing the android version :)

marcfon avatar May 01 '20 14:05 marcfon

do we still need to change to BOARD_OLD in HardwareConfig.h?

Pamilias avatar Oct 04 '22 03:10 Pamilias

Depends on which hardware your are using:

Use BOARD_OLD if you are using this wiring schema and BOARD_DEFAULT if you're using the PCB v2.2 wiring schema.

Smeat avatar Oct 04 '22 07:10 Smeat