Skip to content

Commit 6586c6b

Browse files
author
dingo35
committed
update docs
1 parent 4c3c1ce commit 6586c6b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/building_flashing.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,27 @@ cd SmartEVSE-3.5/SmartEVSE
1212
pio run
1313
```
1414

15+
To enable the telnet server that allows you to online view the debug logs, add the compile flag like this:
16+
```
17+
PLATFORMIO_BUILD_FLAGS='-DDBG=1' pio run
18+
```
19+
20+
Other compile flags:
21+
* DDBG=0 : no logging (default)
22+
* DDBG=2 : log via USB-C connector
23+
* DMIN_CURRENT=5 ; decrease minimum allowed current from 6A to 5A ----> THIS IS NOT FOLLOWING THE PROTOCOLS SO AT YOUR OWN RISK !!!
24+
1525
For versions older than v3.6.0, build the spiffs filesystem:
1626
* Compile spiffs.bin: `pio run -t buildfs`
1727

28+
If you get all kinds of mongoose compile errors (mg_....), that means that your python environment is not installed correctly.
29+
If you execute:
30+
```
31+
python packfs.py
32+
```
33+
this should generate a fresh src/packed_fs.c file.
34+
35+
1836
# Flashing the firmware
1937
1. Almost always, even when your webserver seems not to be working, the http://ipaddress/update link will be working;
2038
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.

0 commit comments

Comments
 (0)