I can not activate GPIO analog read

Hi,

I want to use a thermistor for reading the motor teperature. But I can not activate the GPIO4 analog read. I updreaded the ODrivetool and the Odrive firmeware.

Here my output of the Odrivetool.


ODrive control utility v0.5.2.post0
Website: https://odriverobotics.com/
Docs: https://docs.odriverobotics.com/
Forums: https://discourse.odriverobotics.com/
Discord: https://discord.gg/k3ZZ3mS
Github: https://github.com/madcowswe/ODrive/

Please connect your ODrive.
You can also type help() or quit().

Connected to ODrive 207839A14D4D as odrv0
In [1]: odrv0.config.gpio4_analog_mapping = GPIO_MODE_ANALOG_IN
---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
/usr/local/lib/python3.9/dist-packages/odrive/pyfibre/fibre/shell.py in <module>
----> 1 odrv0.config.gpio4_analog_mapping = GPIO_MODE_ANALOG_IN

/usr/local/lib/python3.9/dist-packages/odrive/pyfibre/fibre/libfibre.py in __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)
    675 
    676     #def __del__(self):

/usr/local/lib/python3.9/dist-packages/odrive/pyfibre/fibre/libfibre.py in __set__(self, instance, val)
    643             return self._get_obj(instance).exchange(val)
    644         else:
--> 645             raise Exception("this attribute cannot be written to")
    646 
    647 class EmptyInterface():

Exception: this attribute cannot be written to

Hmm… I don’t see anything about setting that analog mapping in the Thermistor docs? Thermistors | ODrive