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:
    78
    Balance:
    88Coins
    Ratings:
    +59 / 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:
    226
    Occupation:
    Dipl. Ing. Mb (FH)
    Location:
    Germany
    Balance:
    1,741Coins
    Ratings:
    +384 / 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?
  7. William Fanelli

    William Fanelli New Member

    Joined:
    Nov 20, 2024
    Messages:
    3
    Balance:
    28Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino
    I have same problem, someone find a solution about DFU mode? Or StLink2 is a must?
  8. m50b20

    m50b20 Member

    Joined:
    Jan 4, 2024
    Messages:
    78
    Balance:
    88Coins
    Ratings:
    +59 / 1 / -0
    I have no problems with DFU, but Stlink is much easier
  9. William Fanelli

    William Fanelli New Member

    Joined:
    Nov 20, 2024
    Messages:
    3
    Balance:
    28Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino
    Not so easy. I bought a st-link v2, upgraded and connected to odesc, but don't work. Do you have suggest?
  10. m50b20

    m50b20 Member

    Joined:
    Jan 4, 2024
    Messages:
    78
    Balance:
    88Coins
    Ratings:
    +59 / 1 / -0
    Which software did you try ? which utility?
  11. William Fanelli

    William Fanelli New Member

    Joined:
    Nov 20, 2024
    Messages:
    3
    Balance:
    28Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino
    Ok, I soved. at first, I used STM32CubeProg, ant it DON'T WORK.
    I tried old STLink utility, an this tools work but don't load .elf firmware (need to be HEX or BIN).
    But after some search, I discovered that with STM32CubeProg i can load .elf and save .hex, so, after this passage I was able to flash my firmware.
    • Like Like x 1
    • Informative Informative x 1
  12. m50b20

    m50b20 Member

    Joined:
    Jan 4, 2024
    Messages:
    78
    Balance:
    88Coins
    Ratings:
    +59 / 1 / -0