Skip to content

Commit

Permalink
Final fixes for clean build from scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
janick committed Jan 17, 2023
1 parent d1d3260 commit 924f523
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ main/secrets.h
build*
backup
managed_components
dependencies.lock
sdkconfig

*~
*#*#

# Prerequisites
*.d
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ $ cp -r SquareLine/boards/* /Applications/Squareline_Studio.app/Contents/boards
Restart Squareline Studio if it is was already running.

You'll find the Squareline Studio project for this example in `SquareLine/SquareLine_Project.spj`.
When exporting your UI files, export them in the main/ui directory
When exporting your UI files, export them in the `main/ui` directory


## Building This Example
Expand All @@ -156,12 +156,12 @@ After cloning this respository:
1. Update the component submodules using the commands `git submodule init` and `git submodule update --progress`.
Be patient. This can take a while.

1. Set your target device using the command `idf.py set-target esp32s3`

1. Generate a self-signed certificate for the OTA https server using the command
`openssl req -x509 -newkey rsa:2048 -keyout server_certs/ca_key.pem -out server_certs/ca_cert.pem -days 365 -nodes`.
When prompted for the `Common Name (CN)`, enter the IP address of the server that the WT32-SC01 Plus will connect to.

1. Set your target device using the command `idf.py set-target esp32s3`

1. Copy the file `secrets.h` into the 'main' directory, and edit it to specify your WiFi credentials and OTA server certificate.
The certificate can be found in the file `server_certs/ca_cert.pem`.
ToDo: replace with menuconfig and get the certificate compiled into the binary directly.
Expand Down
4 changes: 2 additions & 2 deletions sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ CONFIG_ESPTOOLPY_FLASHSIZE="8MB"
# CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE is not set
# CONFIG_PARTITION_TABLE_TWO_OTA is not set
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions/partition-8MB.csv"
CONFIG_PARTITION_TABLE_FILENAME="partitions/partition-8MB.csv"
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions/partition-8MB-NoFactory.csv"
# CONFIG_PARTITION_TABLE_FILENAME is not set
# CONFIG_PARTITION_TABLE_OFFSET i not set
CONFIG_PARTITION_TABLE_MD5=y
# end of Partition Table
Expand Down

0 comments on commit 924f523

Please sign in to comment.