Can't startup thread

Hi,

My oDrive can’t start a thread when I turn on Power.
it can update the requested_state status

`* odrv0

  • Out[98]:
  • vbus_voltage = 12.0 (float)
  • ibus = 0.0 (float)
  • serial_number = 2086359B524B (int)
  • hw_version_major = 3 (int)
  • hw_version_minor = 6 (int)
  • hw_version_variant = 24 (int)
  • fw_version_major = 0 (int)
  • fw_version_minor = 5 (int)
  • fw_version_revision = 0 (int)
  • fw_version_unreleased = 1 (int)
  • user_config_loaded = True (bool)
  • brake_resistor_armed = False (bool)
  • brake_resistor_saturated = False (bool)
  • system_stats:
  • uptime = 0 (int)
  • min_heap_space = 0 (int)
  • min_stack_space_axis0 = 0 (int)
  • min_stack_space_axis1 = 0 (int)
  • min_stack_space_comms = 0 (int)
  • min_stack_space_usb = 0 (int)
  • min_stack_space_uart = 0 (int)
  • min_stack_space_can = 0 (int)
  • min_stack_space_usb_irq = 0 (int)
  • min_stack_space_startup = 0 (int)
  • stack_usage_axis0 = 0 (int)
  • stack_usage_axis1 = 0 (int)
  • stack_usage_comms = 0 (int)
  • stack_usage_usb = 0 (int)
  • stack_usage_uart = 0 (int)
  • stack_usage_usb_irq = 0 (int)
  • stack_usage_startup = 0 (int)
  • stack_usage_can = 0 (int)
  • usb: …
  • i2c: …
  • config:
  • brake_resistance = 0.4699999988079071 (float)
  • max_regen_current = 0.0 (float)
  • enable_uart = True (bool)
  • uart_baudrate = 115200 (int)
  • enable_i2c_instead_of_can = False (bool)
  • enable_ascii_protocol_on_usb = True (bool)
  • dc_bus_undervoltage_trip_level = 8.0 (float)
  • dc_bus_overvoltage_trip_level = 25.68000030517578 (float)
  • enable_dc_bus_overvoltage_ramp = False (bool)
  • dc_bus_overvoltage_ramp_start = 25.68000030517578 (float)
  • dc_bus_overvoltage_ramp_end = 25.68000030517578 (float)
  • dc_max_negative_current = -9.999999974752427e-07 (float)
  • dc_max_positive_current = inf (float)
  • gpio1_pwm_mapping: …
  • gpio2_pwm_mapping: …
  • gpio3_pwm_mapping: …
  • gpio4_pwm_mapping: …
  • gpio3_analog_mapping: …
  • gpio4_analog_mapping: …
  • axis0:
  • error = 0x0000 (int)
  • step_dir_active = False (bool)
  • current_state = 0 (int)
  • requested_state = 2 (int)
  • loop_counter = 0 (int)
  • lockin_state = 0 (int)
  • is_homed = False (bool)
  • config: …
  • motor: …
  • controller: …
  • encoder: …
  • sensorless_estimator: …
  • trap_traj: …
  • min_endstop: …
  • max_endstop: …
  • watchdog_feed()
  • clear_errors()
  • axis1:
  • error = 0x0000 (int)
  • step_dir_active = False (bool)
  • current_state = 0 (int)
  • requested_state = 2 (int)
  • loop_counter = 0 (int)
  • lockin_state = 0 (int)
  • is_homed = False (bool)
  • config: …
  • motor: …
  • controller: …
  • encoder: …
  • sensorless_estimator: …
  • trap_traj: …
  • min_endstop: …
  • max_endstop: …
  • watchdog_feed()
  • clear_errors()
  • can:
  • error = 0x0000 (int)
  • config: …
  • can_protocol = 0 (int)
  • set_baud_rate(baudRate: int)
  • test_property = 0 (int)
  • test_function(delta: int)
  • get_oscilloscope_val(index: int)
  • get_adc_voltage(gpio: int)
  • save_configuration()
  • erase_configuration()
  • reboot()
  • enter_dfu_mode()`

i’m using 24VDC power and firmware version : 5.0RC
thank you

Does it work with the master branch?

it’'s an error when Odrive can’t connect to the encoder SPI (AS4017). I removed pullup resistor on the encoder and it works normally. Thank you

1 Like