Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dingo35 committed Nov 22, 2024
1 parent 4c3c1ce commit 6586c6b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/building_flashing.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,27 @@ cd SmartEVSE-3.5/SmartEVSE
pio run
```

To enable the telnet server that allows you to online view the debug logs, add the compile flag like this:
```
PLATFORMIO_BUILD_FLAGS='-DDBG=1' pio run
```

Other compile flags:
* DDBG=0 : no logging (default)
* DDBG=2 : log via USB-C connector
* DMIN_CURRENT=5 ; decrease minimum allowed current from 6A to 5A ----> THIS IS NOT FOLLOWING THE PROTOCOLS SO AT YOUR OWN RISK !!!

For versions older than v3.6.0, build the spiffs filesystem:
* Compile spiffs.bin: `pio run -t buildfs`

If you get all kinds of mongoose compile errors (mg_....), that means that your python environment is not installed correctly.
If you execute:
```
python packfs.py
```
this should generate a fresh src/packed_fs.c file.


# Flashing the firmware
1. Almost always, even when your webserver seems not to be working, the http://ipaddress/update link will be working;
this is the simplest way to flash your firmware; with the "Choose file" option you can flash any firmware[.debug].bin you downloaded or built.
Expand Down

0 comments on commit 6586c6b

Please sign in to comment.