1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Question ODESC V4.2 DFU not working

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by lucasfrrocha, Feb 12, 2024.

  1. lucasfrrocha

    lucasfrrocha New Member

    Joined:
    Feb 12, 2024
    Messages:
    1
    Balance:
    16Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    DC motor, AC motor, Arduino, SimforceGT, Motion platform
    I bought an Odesc V4.2 board, and it's not entering DFU mode.
    In normal mode, my computer detects two entries with the name ODRIVE 3.6 Native Interface and one serial port.
    When I switch to DFU mode, the computer makes the sound as if something is being disconnected from the USB, and it doesn't connect anymore.(softlock, resets when pressing reset again, and goes backto normal mode)
    What could be the issue? When I try to connect through onedrivetool, it connects and shows the firmware (v0.0.0), but I can't give the DFU activation command through the program. Does anyone know what can be done?
    Code:
    In [11]: odrv0.config
    Out[11]:
    brake_resistance: 0.4699999988079071 (float)
    dc_bus_overvoltage_ramp_end: 25.68000030517578 (float)
    dc_bus_overvoltage_ramp_start: 25.68000030517578 (float)
    dc_bus_overvoltage_trip_level: 25.68000030517578 (float)
    dc_bus_undervoltage_trip_level: 8.0 (float)
    dc_max_negative_current: -9.999999974752427e-07 (float)
    dc_max_positive_current: inf (float)
    enable_ascii_protocol_on_usb: True (bool)
    enable_dc_bus_overvoltage_ramp: False (bool)
    enable_i2c_instead_of_can: False (bool)
    enable_uart: True (bool)
    gpio1_pwm_mapping:
      endpoint: None (object_ref)
      max: 0.0 (float)
      min: 0.0 (float)
    gpio2_pwm_mapping:
      endpoint: None (object_ref)
      max: 0.0 (float)
      min: 0.0 (float)
    gpio3_analog_mapping:
      endpoint: None (object_ref)
      max: 0.0 (float)
      min: 0.0 (float)
    gpio3_pwm_mapping:
      endpoint: None (object_ref)
      max: 0.0 (float)
      min: 0.0 (float)
    gpio4_analog_mapping:
      endpoint: None (object_ref)
      max: 0.0 (float)
      min: 0.0 (float)
    gpio4_pwm_mapping:
      endpoint: None (object_ref)
      max: 0.0 (float)
      min: 0.0 (float)
    max_regen_current: 0.0 (float)
    uart_baudrate: 115200 (uint32)
    upload_2024-2-12_19-36-29.png
    upload_2024-2-12_19-37-3.png
    upload_2024-2-12_19-38-38.png

    Attached Files:

  2. m50b20

    m50b20 Member

    Joined:
    Jan 4, 2024
    Messages:
    70
    Balance:
    70Coins
    Ratings:
    +54 / 1 / -0
    This boards do not have dedicated switch or jumper but have special button:

    • Connect board to PC via USB cable.
    • Connect external power. Controller will boot in normal mode.
    • Press and hold BOOT button.
    • Press RESET button - controller will reboot in DFU mode.
    • Flash firmware
    • Press RESET button - controller will boot in normal mode.
    • Informative Informative x 1
  3. tselehub

    tselehub New Member

    Joined:
    Dec 6, 2023
    Messages:
    24
    Balance:
    98Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF
    Plug the power with PRESSED boot button
  4. Francisco Junior

    Francisco Junior Member

    Joined:
    Aug 11, 2015
    Messages:
    53
    Location:
    Curitiba - Brasil
    Balance:
    285Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    I also have the same problem, I already followed the instructions but without success.

    Do I need to press the buttons for a specific time?
  5. PeterW

    PeterW alias Wickie

    Joined:
    Oct 21, 2018
    Messages:
    201
    Occupation:
    Dipl. Ing. Mb (FH)
    Location:
    Germany
    Balance:
    1,611Coins
    Ratings:
    +362 / 3 / -0
    My Motion Simulator:
    6DOF
    Hi,
    sometimes I am testing new actuator- concepts with the Odesc 4.2 board.
    You can Flash the firmware Super easy with a cheap st-link v2 and the stm32-stlink- Utility Software. Youtube will show you how to do.
    By the way: the Odesc 4.2is a great piece of Hardware!
    And in the Odrivetool you have to call it dev0 instead of odrv0
    Wickie
    • Informative Informative x 1
  6. Francisco Junior

    Francisco Junior Member

    Joined:
    Aug 11, 2015
    Messages:
    53
    Location:
    Curitiba - Brasil
    Balance:
    285Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Hi,

    Thanks for the tip.

    How is the connection made between the st-link and the odesc?