Skip to content
Snippets Groups Projects
Commit e77e5816 authored by Carlo Guarnieri Calo' Carducci's avatar Carlo Guarnieri Calo' Carducci
Browse files

docs: update build instructions

parent fc79bdf2
No related branches found
No related tags found
No related merge requests found
......@@ -50,12 +50,21 @@ The firmware architecture can be divided in 3 sub-blocks called in the main in t
- invoke mqtt callbacks
### Building
In order to compile and build the code for a specific entity, define the compilation target by replacing the placeholder `ENTITY` with the correct entity name inside `common/legos_libs.h`.
Select the desired compilation target from the LEGOS menu.
```
cd <project-dir>
idf.py menuconfig
```
**Example**:
- compiling branch firmware
- Line 8: {- #define ENTITY -}
- Line 8: {+ #define BRANCH +}
Build and flash the code for the target entity. Replace port with the programmer port (eg. COM3)
```
idf.py -p <port> -b 921600 build flash
```
Open the debug terminal if required.
```
idf.py monitor
```
## Repository structure
All the entities in LEGOS share a common behavior as IoT devices, which is customized for the specific profile using libraries arranged in separate component folders:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment