Skip to content
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

Softbricking controller by uploading false lisp-code #775

Open
Tomblarom opened this issue Oct 26, 2024 · 0 comments
Open

Softbricking controller by uploading false lisp-code #775

Tomblarom opened this issue Oct 26, 2024 · 0 comments

Comments

@Tomblarom
Copy link

Tomblarom commented Oct 26, 2024

I played around with lisp a little bit and used a false syntax, which softbricked my controller. It was not a big issue, because I'm currently reflashing it over and over again for development, but for normal users this situation might be very frustrating. I used an VESC Express to connect via VESC Tool 6.06 (3bbc685) over CAN. I compiled the firmware using the latest bldc-master (c01d583).

This is the script which softbricked my controller:

(loopwhile t
    (print (get-adc 6))
    (sleep 0.2)
)

Correct would have been:

(loopwhile t {
    (print (get-adc 6))
    (sleep 0.2)
})

image

Unplugging the VESC Express restored the frozen VESC Tool and I reflashed the firmware using SWD. However, VESC Tool keept freezing and I had to do a full chip erase, before flashing once again.. It also was not possible to access through SWD during the freeze-situation.

I'm using usbipd together with WSL2 Ubuntu and a generic STM32 flasher. During the freeze, the device unbinds itself and WSL USB Manager 5.5.0 also freezes. 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant