openevse_esp32_firmware icon indicating copy to clipboard operation
openevse_esp32_firmware copied to clipboard

Initial attempt at porting to the ESP32-S3

Open jeremypoulter opened this issue 2 years ago • 4 comments

jeremypoulter avatar Aug 11 '23 21:08 jeremypoulter

Test Results

42 tests  +6   42 :white_check_mark: +6   1s :stopwatch: ±0s  1 suites ±0    0 :zzz: ±0   1 files   ±0    0 :x: ±0 

Results for commit 6c0fb63d. ± Comparison against base commit d1b68646.

:recycle: This comment has been updated with latest results.

github-actions[bot] avatar Aug 11 '23 21:08 github-actions[bot]

For what it is worth, I made an environment for the ESP32-C3 devkit that seems to be working just fine after a month of use. I am using a more recent espressif32 release though, as the C3 isn't supported on 6.0.1 I believe

[env]
- platform = [email protected]
+ platform = [email protected]

This is the environment definition. I chose GPIO6 for RAPI TX and GPIO7 for RAPI RX somewhat arbitrarily, just because they aren't ADC pins or the USB DP/DN pins, JTAG pin, or UART0 TX/RX.

[env:esp32-c3-devkitc-02]
board = esp32-c3-devkitc-02
lib_deps =
  ${common.lib_deps}
  ${common.neopixel_lib}
build_flags =
  ${common.build_flags}
  ${common.src_build_flags}
  ${common.debug_flags}
  -D RAPI_PORT=Serial1
  -D TX1=6
  -D RX1=7
  -D NEO_PIXEL_PIN=8
  -D NEO_PIXEL_LENGTH=1
  -D WIFI_PIXEL_NUMBER=1

Log messages come out the USB port, the RGB LED color cycles on boot, and my OpenEVSE works just fine with it after I rolled back the firmware from 8.2.3 (this firmware really should be pulled down since nothing supports BOOTLOCK so it effectively soft bricks the device, it also likes to reboot the atmega every few days). I believe my OpenEVSE is a v2.5? (2014 it was listed as "OpenEVSE 50A Deluxe Charge Station Combo - Quick Kit with RGB LCD/RTC / OpenEVSE Artwork")

EDIT: Although the ESP Info on the firmware page shows "UNKOWNr3 1 core WiFi BLE" due to ESPAL not supporting anything except the basic ESP32

CapnBry avatar Nov 17 '23 17:11 CapnBry

Thanks for the feedback, would you be able to add a separate PR for that board? Will have to get a C3 to test...

jeremypoulter avatar Nov 17 '23 17:11 jeremypoulter

Thanks for the feedback, would you be able to add a separate PR for that board? Will have to get a C3 to test...

Yeah sure, can do

CapnBry avatar Nov 17 '23 18:11 CapnBry