|
|
5 лет назад | |
|---|---|---|
| examples | 5 лет назад | |
| include | 5 лет назад | |
| port | 5 лет назад | |
| private_include | 5 лет назад | |
| src | 5 лет назад | |
| test | 5 лет назад | |
| .gitignore | 6 лет назад | |
| .gitlab-ci.yml | 5 лет назад | |
| CMakeLists.txt | 6 лет назад | |
| README.md | 5 лет назад |
Serial flasher component provides portable library for flashing ESP32, ESP32-S2, ESP8266 from other host microcontroller. Espressif SoCs are normally programmed via serial interface (UART) and port layer for given host microcontroller has to be implemented, if not available. Details can be found in section below.
In order to support new target, following function has to be implemented by user:
Following functions are part of serial_io.h header for convenience, however, user does not have to strictly follow function signatures, as there are not called directly from library.
Prototypes of all function mentioned above can be found in serial_io.h.
Please refer to ports in port directory. Currently, only ESP32 port is available.
Apart from writing port (if not available), user has to provide loader_config_user.h header file and add its include path into build system. By defining appropriate macros, default configuration can be overwritten. As for now, slave target to be flashed (one of Espressif SoCs) and flash integrity verification can be configured. In case header file remains empty, esp-serial-flasher is compiled for ESP32 target by default.
At this point, component can only be integrated with IDF. Proper CMakeList.txt file is to be done.
Size of new binary image has to be known before flashing.