[Solved] - Encoding hooverboard motors with rotary encoder

Do I need to put the odrive in dfu mode? (using the switches) because I got…

DfuError: Could not determine hardware version. Flashing precompiled firmware could lead to unexpected results. Please use an STLink/2 to force-update the firmware anyway. Refer to https://docs.odriverobotics.com/developer-guide for details.

Also, the command “odrv0.config.enable_uart_a = True” still gives me an AttributeError

Yes, you should put it in DFU mode. Sounds like your firmware is insanely old, haha.