ArmPi Ultra Technical Question

Product and Purchase

  • Product model: ArmPi Ultra
  • Purchase channel: Hiwonder Website

Hi Support,

I have a question: On the ArmPi Ultra STM32 core board, can opening the CH340 serial port toggle STM32 reset through DTR or RTS? Is there a supported way to prevent that while keeping the stock firmware and serial protocol? If not, is there a different firmware version I should try/flash? Currently, opening the port with zero packets moved the arm before the port closed, and the supplied source documents command a similar pose at boot.

I would like to command that homed motors do not reset unless there is a need for initialization (ex. power cycle), as it forces the arm into a default state everytime I connect. Having the ability to change that would be extremely valuable for multi day programming and use.

Yes. On the ArmPi Ultra STM32 Core Module V1.0, the CH340X modem-control lines are part of the USB programming circuit that controls reset and boot selection. A DTR/RTS transition when the host opens the port can reset the STM32 without any serial packets. The move you saw is consistent with the arm returning to its startup pose.

Keep the stock firmware and match the supplied SDK’s open sequence first. In ros_robot_controller_sdk.py, Board.__init__ creates the serial object without opening it, sets rts = False and dtr = False, then selects the device and calls open(). Set both lines before opening, not afterward. Some host drivers can still briefly toggle the lines at open, so this is not a guaranteed reset lockout.

If the arm still moves when the port opens, keep one controller process connected during your programming session and reconnect your application to that process rather than reopening the CH340 port. This avoids repeated port opens without changing the firmware or serial protocol. Keep the arm’s travel area clear when testing.

There’s no documented stock setting to skip the startup pose after an STM32 reset, and no documented alternate ArmPi Ultra firmware for that behavior. I’d keep the stock firmware rather than reflash for this issue.


If this reply was helpful, you can mark it as the solution using the button below.