How to config as5047p SPI

when I set encoder mode spi_abs_ams,there is error. Can anyone help me? Thank you very much!
Downloading json data from ODrive… (this might take a while)
Reconnected to ODrive 207E39A24D4D as odrv0
In [15]: odrv0.axis0.encoder.config.mode = ENCODER_MODE_SPI_ABS_AMS

error Traceback (most recent call last)
File :1, in <cell line: 1>()
----> 1 odrv0.axis0.encoder.config.mode = ENCODER_MODE_SPI_ABS_AMS

File D:\software\python-3.10.2\lib\site-packages\fibre\remote_object.py:252, in RemoteObject.setattr(self, name, value)
250 if isinstance(attr, RemoteProperty):
251 if attr._can_write:
→ 252 attr.set_value(value)
253 else:
254 raise Exception(“Cannot write to property {}”.format(name))

File D:\software\python-3.10.2\lib\site-packages\fibre\remote_object.py:76, in RemoteProperty.set_value(self, value)
75 def set_value(self, value):
—> 76 buffer = self._codec.serialize(value)
77 # TODO: Currenly we wait for an ack here. Settle on the default guarantee.
78 self._parent.channel.remote_endpoint_operation(self._id, buffer, True, 0)

File D:\software\python-3.10.2\lib\site-packages\fibre\remote_object.py:27, in StructCodec.serialize(self, value)
25 def serialize(self, value):
26 value = self._target_type(value)
—> 27 return struct.pack(self._struct_format, value)

error: ubyte format requires 0 <= number <= 255

hmm, this could be a back/forwards compatibility bug. Are you running the latest version of the firmware and odrivetool? Maybe you updated the firmware without updating odrivetool?

Thank you very much. I think my odrivetool is the latest version. Is it possible that my firmware is not the latest?