Closed ressu closed 1 month ago
Ah, I suspect that the event loop is closed before the command is sent. Commit 90eb71b610669aaaab5ed3705c5b6361ac50dbb6 should fix this.
Looks like that was it. I can now trigger bootloader on both machines without issues.
The latest version of flashtool.py seems to error out when trying to write to canbus. The error is visible when enabling verbose mode:
This is an issue introduced by the refactoring in 730fde48ab86ecb114ed1d6d930b53ba20e251bf.
The issue seems to trigger when creating a new task in the
send()
method inCanSocket
. If I add a bit of additional logging, we can see the following:Forcing a creation and opening of the socket in
_do_can_send()
sends the packet as expected, so this seems to be an issue on how asyncio and the socket that is opened inside therun()
method interact.I've reproduced this on 2 boards: