bigtreetech / bigtreetech/BTT-Pi
Can U2C module not connecting to SB2240
- Dominant language
- No language data
- Stars
- 200
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I have followed the manual for the SB2240, but when I try to flash the SB2240 via Can I get flash error
ERROR:root:Flash Error
Traceback (most recent call last):
File "/home/biqu/CanBoot/scripts/flash_can.py", line 493, in run_query
self.cansock.bind((intf,))
OSError: [Errno 19] No such device
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/biqu/CanBoot/scripts/flash_can.py", line 621, in main
loop.run_until_complete(sock.run_query(intf))
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/biqu/CanBoot/scripts/flash_can.py", line 495, in run_query
raise FlashCanError("Unable to bind socket to can0")
FlashCanError: Unable to bind socket to can0
Please advise to fix.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with scripts/flash_can.py around run_query at lines 493-495, where binding to can0 fails with "No such device". Check how the SB2240 and U2C are expected to expose can0, then reproduce the flash command from the manual. Done means the interface binds successfully and the SB2240 flash completes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100