Gpio mode problem

hi guys can you help me about this. i cant also enter dfu

In [1]: odrv0.config.gpio4_mode = GPIO_MODE_PWM

AttributeError Traceback (most recent call last)
/usr/local/lib/python3.8/dist-packages/odrive/pyfibre/fibre/ in
----> 1 odrv0.config.gpio4_mode = GPIO_MODE_PWM

/usr/local/lib/python3.8/dist-packages/odrive/pyfibre/fibre/ in setattr(self, key, value)
671 def setattr(self, key, value):
672 if self.sealed and not hasattr(self, key):
→ 673 raise AttributeError(“Attribute {} not found”.format(key))
674 object.setattr(self, key, value)

AttributeError: Attribute gpio4_mode not found

also on DFU

~$ sudo odrivetool dfu
ODrive control utility v0.5.2.post0
Waiting for ODrive…
Found ODrive 206439585030 (v3.6-56V) with firmware v0.5.1-dev
Checking online for newest firmware… found v0.5.2
Downloading firmware v0.5.2…
Saving configuration to /tmp/odrive-config-206439585030.json…
The file /tmp/odrive-config-206439585030.json already exists. Do you want to override it? [Y/n] Y
Traceback (most recent call last):
File “/usr/local/bin/odrivetool”, line 148, in
odrive.dfu.launch_dfu(args, logger, app_shutdown_token)
File “/usr/local/lib/python3.8/dist-packages/odrive/”, line 471, in launch_dfu
update_device(device, firmware, logger, cancellation_token)
File “/usr/local/lib/python3.8/dist-packages/odrive/”, line 356, in update_device
odrive.configuration.backup_config(device, None, logger)
File “/usr/local/lib/python3.8/dist-packages/odrive/”, line 77, in backup_config
with open(filename, ‘w’) as file:
PermissionError: [Errno 13] Permission denied: ‘/tmp/odrive-config-206439585030.json’

I’m trying to Remote controlled my hoverboard motor

Looks like you’ll have to update. Not sure why you’re getting a permission denied error with sudo but might want to fix that first…

1 Like

What OS are you on?
What’s the output of ls -la /tmp/odrive-config-206439585030.json?
After getting this output you can delete the file and try DFU again.

1 Like

Im using ubuntu. Thanks you for the response

rw-r–r-- 1 root root 8979 Aug 24 14:56 /tmp/odrive-config-206439585030.json

There is no gpio_mode when I press tab after the config.