-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: 'Namespace' object has no attribute 'force_speed' #162
Comments
Looks like another regression caused by #155 |
I've built an image with the proposed fix, please try |
According to @alesms, my proposal does not heal the issue. This attempt was just a shot in the dark, thus it needs further investigation by @Ayush1325 and/or @JelmerT. I changed my PR to draft status meanwhile. |
Found the problem. The force_speed property was originally set if # Remove default value
parser.add_argument('-b', '--baud', type=int, help='Baud speed (default = 500000)')
..
force_speed = False
if args.baud:
force_speed = True
else:
args.baud = 500000 I apologize for the regressions. |
Fix for JelmerT#162 Signed-off-by: Ayush Singh <[email protected]>
Fix for JelmerT#162 Signed-off-by: Ayush Singh <[email protected]>
Fix for #162 Signed-off-by: Ayush Singh <[email protected]>
The container image is updated. |
Thanks for the update! retested and this appears to be working, as it completed the update, but it still errors out at the end: wes@tantive-iv:~$ sudo docker run --rm --device /dev/ttyUSB0:/dev/ttyUSB0 -e FIRMWARE_URL=https://github.com/Koenkk/Z-Stack-firmware/raw/master/coordinator/Z-Stack_3.x.0/bin/CC1352P2_CC2652P_launchpad_coordinator_20230507.zip ckware/ti-cc-tool -ewv --bootloader-sonoff-usb -V |
Looks like another regression caused by #155. Could you please check if |
Could you please check if |
Apologies if I was unclear, the firmware update completed successfully, so the error that I posted was some unrelated and I guess cosmetic issue. Closing this issue out. |
Thanks, @wesgeorge! Nonetheless, it would be nice if you could test whether |
Attempting to flash a sonoff 3p using both the standalone python scripts and the docker command, and running into the same error.
Here's the output of a verbose run:
sudo docker run --rm --device /dev/ttyUSB0:/dev/ttyUSB0 -e FIRMWARE_URL=https://github.com/Koenkk/Z-Stack-firmware/raw/master/coordinator/Z-Stack_3.x.0/bin/CC1352P2_CC2652P_launchpad_coordinator_20230507.zip ckware/ti-cc-tool -ewv -p 0 --bootloader-sonoff-usb -V
Downloading firmware from https://github.com/Koenkk/Z-Stack-firmware/raw/master/coordinator/Z-Stack_3.x.0/bin/CC1352P2_CC2652P_launchpad_coordinator_20230507.zip
Firmware source: 'CC1352P2_CC2652P_launchpad_coordinator_20230507.zip'
Firmware file: 'CC1352P2_CC2652P_launchpad_coordinator_20230507.hex'
sonoff
Opening port /dev/ttyUSB0, baud 500000
Reading data from CC1352P2_CC2652P_launchpad_coordinator_20230507.hex
Firmware file: Intel Hex
Connecting to target...
*** sending synch sequence
Got 0 additional bytes before ACK/NACK
*** GetChipId command (0x28)
Got 0 additional bytes before ACK/NACK
*** received 6 bytes
*** GetStatus command (0x23)
Got 0 additional bytes before ACK/NACK
*** received 3 bytes
Command Successful
Version 0x3202F000
Unrecognized chip ID. Trying CC13xx/CC26xx
*** Mem Read (0x2A)
Got 0 additional bytes before ACK/NACK
*** received 6 bytes
*** GetStatus command (0x23)
Got 0 additional bytes before ACK/NACK
*** received 3 bytes
Command Successful
*** Mem Read (0x2A)
Got 0 additional bytes before ACK/NACK
*** received 6 bytes
*** GetStatus command (0x23)
Got 0 additional bytes before ACK/NACK
*** received 3 bytes
Command Successful
*** Mem Read (0x2A)
Got 0 additional bytes before ACK/NACK
*** received 6 bytes
*** GetStatus command (0x23)
Got 0 additional bytes before ACK/NACK
*** received 3 bytes
Command Successful
*** Mem Read (0x2A)
Got 0 additional bytes before ACK/NACK
*** received 6 bytes
*** GetStatus command (0x23)
Got 0 additional bytes before ACK/NACK
*** received 3 bytes
Command Successful
*** Mem Read (0x2A)
Got 0 additional bytes before ACK/NACK
*** received 6 bytes
*** GetStatus command (0x23)
Got 0 additional bytes before ACK/NACK
*** received 3 bytes
Command Successful
*** Mem Read (0x2A)
Got 0 additional bytes before ACK/NACK
*** received 6 bytes
*** GetStatus command (0x23)
Got 0 additional bytes before ACK/NACK
*** received 3 bytes
Command Successful
*** Mem Read (0x2A)
Got 0 additional bytes before ACK/NACK
*** received 6 bytes
*** GetStatus command (0x23)
Got 0 additional bytes before ACK/NACK
*** received 3 bytes
Command Successful
CC1350 PG2.0 (7x7mm): 352KB Flash, 20KB SRAM, CCFG.BL_CONFIG at 0x00057FD8
Primary IEEE Address: 00:12:4B:00:25:8D:D7:40
Traceback (most recent call last):
File "/usr/local/bin/cc2538-bsl.py", line 1150, in
if args.force_speed != 1 and device.has_cmd_set_xosc:
^^^^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'force_speed'
ERROR: 'Namespace' object has no attribute 'force_speed'
The text was updated successfully, but these errors were encountered: