Comments (14)
ltchiptool will look:
- in Platformio packages, if you install LT with Platformio
- in ltchiptool itself, if you install it from pip (it has a copy of the data it needs)
- in the current working directory, where you execute the command
from ltchiptool.
You need to have LibreTiny installed for this so that it finds the board IDs. It usually comes with ltchiptool when you install from pip, but if you install from source instead you need LT as well.
from ltchiptool.
I am installing ltchiptool wiht pip:
sudo pip install ltchiptool
However I always get that error.
I have installed LibreTiny too and I think it works OK:
% sudo python3 -m esphome usage: __main__.py [-h] [-v] [-q] [-s key value] command ... __main__.py: error: the following arguments are required: command
and
% sudo python3 -m esphome wizard yourdevice.yml
Hi there!
I'm the wizard of ESPHome :)
And I'm here to help you get started with ESPHome.
In 4 steps I'm going to guide you through creating a basic configuration file for your custom ESP8266/ESP32 firmware. Yay!
============= STEP 1 =============
_____ ____ _____ ______
/ ____/ __ \| __ \| ____|
| | | | | | |__) | |__
| | | | | | _ /| __|
| |___| |__| | | \ \| |____
\_____\____/|_| \_\______|
===================================
First up, please choose a name for your node.
It should be a unique name that can be used to identify the device later.
For example, I like calling the node in my living room livingroom.
But this is where all stops. Running the python3 -m ltchiptool command only gets me the same error (regardless whats after -b (including bk7231n or bk7231t):
Error: Invalid value for '-b' / '--board': Board cb2s does not exist
I don't know what I am doing wrong so your assistance is still required.
from ltchiptool.
Try ltchiptool -vv list boards
and post the output.
from ltchiptool.
Here it is
`+------+------+-------------------+-------------+
| Name | Code | MCU / Flash / RAM | Family name |
+------+------+-------------------+-------------+
+------+------+-------------------+-------------+
(END)
`
from ltchiptool.
Well, you're installing ltchiptool as sudo but running it without sudo.
Uninstall all versions of ltchiptool (pip uninstall ltchiptool
and sudo pip uninstall ltchiptool
), then install it without sudo and run the boards command again.
It should look like this, if it finds the LibreTiny directory:
~ λ ltchiptool -vv list boards
D: Found PlatformIO Package (v1.2.0) - C:\Users\Kuba\.platformio\platforms\libretiny
D: Found Local data snapshot (v1.0.2) - D:\Dev\tuya\tool-ltchiptool\ltchiptool
+--------------------------------+----------------------------+-----------------------------+---------------+
| Name | Code | MCU / Flash / RAM | Family name |
+--------------------------------+----------------------------+-----------------------------+---------------+
| BW12 | bw12 | RTL8710BX / 2 MiB / 256 KiB | realtek-ambz |
| BW15 | bw15 | RTL8720CF / 2 MiB / 256 KiB | realtek-ambz2 |
.....
from ltchiptool.
I don't believe it was that simple :)
Thank you for helping me with his - I now get a list of boards.
I will try and covert the firmware later. Will reply here with the result.
from ltchiptool.
This the command I used that worked for me (for the N version)
'/home/XXXX/.local/bin/ltchiptool' uf2 write -b generic-bk7231n-qfn32-tuya -o /tmp/OpenBK7231N_1.17.205.uf2 'OpenBK7231N_1.17.205.rbl=device:download'
from ltchiptool.
This is not correct. Flashing this will brick your device. You're trying to flash N firmware on a T device, that will not work. The bootloader doesn't check if this is valid if you create the UF2 file this way.
from ltchiptool.
Yes correct - I was meant to type N version. Corrected now.
from ltchiptool.
Is there any easy way to help ltchiptool know where the libretiny package is? I did however manage to get it to find it by extracting libretiny into the same folder as ltchiptool on my Windows PC and running python3.11 -m ltchiptool uf2 write -b generic-bk7231t-qfn32-tuya -o OpenBeken.uf2 "OpenBK7231T_1.17.230.rbl=device:download"
from ltchiptool.
I'm having the issue described above - I just installed ltchiptool with "pip install ltchiptool
", and it installed it in my .local/ directory. When I run the "ltchiptool -vv list boards
" command, I get:
+------+------+-------------------+-------------+
| Name | Code | MCU / Flash / RAM | Family name |
+------+------+-------------------+-------------+
+------+------+-------------------+-------------+
But then after I hit Q to exit less, I get this message (username redacted):
D: Found Local data snapshot (v1.3.0) - /home/<username>/.local/lib/python3.10/site-packages/ltchiptool
Which strongly implies that it found it. The board.py, enums.py, and family.py files are in the models/ directory under that path. Board.py, at least, has data in it; it doesn't appear to be corrupted.
I tried giving it a -L parameter but no path I try results in success, either. (For what it's worth, I also tried it with sudo after uninstalling the normal user copy, and it didn't work then, either. I removed that and went back to the user installed version, no improvement.)
Running kubuntu 22.04. Debian version is bookworm-sid. Thanks for any suggestions!
from ltchiptool.
For anyone who is stuck and needs the files another user posted in the OpenBeken forums a link to the UF2 files:
https://github.com/BenJamesAndo/OpenBeken_uf2_firmware/releases/tag/1.17.230
from ltchiptool.
For anyone who is stuck and needs the files another user posted in the OpenBeken forums a link to the UF2 files:
https://github.com/BenJamesAndo/OpenBeken_uf2_firmware/releases/tag/1.17.230
Thanks. Turned out libretiny was better for my application after all!
from ltchiptool.
Related Issues (20)
- Help with a Midea SmartKit Dongle HOT 10
- malware detected ?? HOT 2
- Chip Type - Unrecognized (0x48405F31) HOT 6
- Firmware Dump Analysis HOT 2
- Tuya Storage decryption HOT 13
- Unrecognized chip 0x540A8B75 HOT 36
- v4.11.0 throws errors ... HOT 5
- RuntimeError: Error: 28841002: No permissions. Your subscription to cloud development plan has expired. HOT 7
- ltchiptool-v4.11.1.exe triggers MCAfee Virus threat ti!EBCF3BF55DBF - 4.11.0 does not trigger HOT 1
- Unknown bootloader CRC - 0x2739019F - please report this on GitHub issues! HOT 9
- Unknown bootloader CRC - 0xB7BFA0CE - please report this on GitHub issues HOT 7
- Using Tuya API - subscription cloud development plan has expired. HOT 1
- ltchiptool.gui.base.zc is deprecated ... HOT 2
- Failed to write flash
- Error writing ESPhome kickstart uf2 with ltchiptool v4.11.1 HOT 3
- Non-zero status code: BkFlashRead4KResp(status=6, start=0x0, data=bytes(1)) HOT 30
- Hung in ambztool for RTL8710BX HOT 4
- question - need socket interface HOT 2
- Unknown bootloader CRC - 0x0939FCDA - please report this on GitHub issues HOT 11
- Feature request: Extract/preserve power meter calibration. HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ltchiptool.