[core] Prepare for project name change
This commit is contained in:
@@ -13,7 +13,7 @@ ESPHome can be flashed in few different ways, depending on your needs.
|
||||
|
||||
=== "CLI"
|
||||
|
||||
The flasher program built-in LibreTuya is also available for ESPHome.
|
||||
The flasher program built-in LibreTiny is also available for ESPHome.
|
||||
|
||||
- use `python -m esphome run yourdevice.yml` to recompile AND upload the firmware
|
||||
- use `python -m esphome upload yourdevice.yml` to upload without recompiling
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Flashing PlatformIO projects
|
||||
|
||||
PlatformIO projects developed with LibreTuya can be flashed just like any other PIO project.
|
||||
PlatformIO projects developed with LibreTiny can be flashed just like any other PIO project.
|
||||
|
||||
!!! abstract
|
||||
All binary files generated by PlatformIO will be in `.pio/build/<my_board>/`. The methods described below may require you to get a file from that directory.
|
||||
@@ -9,7 +9,7 @@ PlatformIO projects developed with LibreTuya can be flashed just like any other
|
||||
|
||||
## Built-in flasher
|
||||
|
||||
LibreTuya has a built-in firmware uploader, based on [ltchiptool](tools/ltchiptool.md). Pressing `Upload` in PlatformIO IDE does all the work for you.
|
||||
LibreTiny has a built-in firmware uploader, based on [ltchiptool](tools/ltchiptool.md). Pressing `Upload` in PlatformIO IDE does all the work for you.
|
||||
|
||||
If you have more than one COM port, configure your PIO project first:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ This feature allows to upload code using UART, without needing to ground the CEN
|
||||
It is enabled by default (using the `LT_AUTO_DOWNLOAD_REBOOT` option). It works by listening to incoming UART data, and checking if it matches a command that the flashing program would send. If it does, a chip reboot is performed and the uploading process starts.
|
||||
|
||||
!!! note
|
||||
ADR will only work if there's already a recent build of LibreTuya flashed to the device (and if the device doesn't bootloop or freeze immediately).
|
||||
ADR will only work if there's already a recent build of LibreTiny flashed to the device (and if the device doesn't bootloop or freeze immediately).
|
||||
|
||||
## Beken 72xx
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ If your device doesn't have a profile yet, it will probably not work. You can co
|
||||
|
||||
### Firmware building
|
||||
|
||||
1. [Compile ESPHome](../../projects/esphome.md), or your custom firmware based on LibreTuya.
|
||||
1. [Compile ESPHome](../../projects/esphome.md), or your custom firmware based on LibreTiny.
|
||||
2. Get the firmware binary, named `bk7231x_app.ota.ug.bin` from the build directory (`.pio/build/<board>/` or `.esphome/build/<board>/.pioenvs/<board>/`).
|
||||
3. Put it in the `custom-firmware` directory of tuya-cloudcutter.
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ It is a good idea to dump the stock firmware (full flash contents) of your devic
|
||||
If you want to flash custom firmware, or restore stock firmware from a previously dumped file, follow the steps below.
|
||||
|
||||
!!! info
|
||||
LibreTuya generates multiple firmware files in the build directory. **You usually want to flash the `.uf2` file**, but since ltchiptool can detect file types, you can choose a different firmware file and it'll tell you if that works.
|
||||
LibreTiny generates multiple firmware files in the build directory. **You usually want to flash the `.uf2` file**, but since ltchiptool can detect file types, you can choose a different firmware file and it'll tell you if that works.
|
||||
|
||||
1. Choose `Write flash`. Click `Browse` and select a valid firmware file. The file type and chip type will be auto-detected, along with correct flash offset and length. No need to worry about overwriting the bootloader anymore!
|
||||
2. Connect the chip to your PC, according to the [chip connection guides](../chip-connection/SUMMARY.md). Select the COM port that your UART adapter is using.
|
||||
@@ -135,7 +135,7 @@ Tags:
|
||||
- FIRMWARE: arduinotest
|
||||
- VERSION: 22.08.01
|
||||
- OTA_VERSION: 01
|
||||
- DEVICE: LibreTuya
|
||||
- DEVICE: LibreTiny
|
||||
- BUILD_DATE: 6d08e862
|
||||
- LT_HAS_OTA1: 01
|
||||
- LT_HAS_OTA2: 00
|
||||
|
||||
Reference in New Issue
Block a user