FlexSEA Wiki

A WEARABLE ROBOTICS TOOLKIT

User Tools

Site Tools


actpackfirmware

Actuator Package Firmware Update

Please note that in many situations only Mn needs to be changed. Mn's connector is typically exposed, and it uses a 1-mm pitch FFC (Flexible Flat Cable) connector.

Full upgrade

If you are provided with three hex files, the order of operations is listed below. If you are new to this process please read the sections below and make sure that you fully understand each step.

High-level order of operations:

  1. Program Re
  2. Program Ex
  3. Program Mn

Detailed order of operations:

  1. Power the FlexSEA-Rigid circuit with a USB cable. Do not use battery power.
  2. Connect the FFC from the MiniProg3 to the Re connector and program it. See section "Ex or Re" below for details.
  3. Connect the FFC from the MiniProg3 to the Ex connector.
  4. Turn the circuit ON with the pushbutton. Make sure that the LEDs are ON.
  5. Program Ex then disconnect the programmer.
  6. Connect the ST-Link to Mn and program it. See section "Mn" below for details.
  7. Do a full power cycle (not just with the button, remove USB power).

For all the details please refer to the sections below.

Ex or Re

Ex and RE use Cypress Programmable System on Chip (PSoC) microcontrollers. If an update is needed, Dephy will provide you with a hex file. You will need three tools:

Before following the step-by-step guide make sure to have all of the tools listed above. We assume that the programmer is connected to your computer, that its drivers are installed, and that you have the correct programming adapter for the task at hand.

Step-by-step:

  1. Connect the FFC (Flat Flexible Cable) from the MiniProg3 to the appropriate Ex or Re connector on the Actuator Package. You will have to remove the enclosure. The FFC contacts have to face the PCB (ie. not visible from above).
  2. Power the circuit via USB - no battery.
  3. Ex only: Turn the device ON, otherwise Re will keep your device under reset and prevent connection. For Re the circuit can be on or off, as long as it's receiving power it's OK.
  4. Open Programmer and load the hex. Make sure that the settings match the following picture:
    • Note 1: You might have select your programmer under Port Selection.
    • Note 2: the screenshot shows 5V detected. Some circuits use 3V3. As long as 3V3 or 5V is detected you are good to go.
  5. Click the “Program ” icon on the toolbar.
  6. When it's done, power cycle.

Mn

Mn uses an STM32 microcontroller. To program it you will need three tools:

Before following the step-by-step guide make sure to have all of the tools listed above. We assume that the programmer is connected to your computer, that its drivers are installed, and that you have the correct programming adapter for the task at hand.

Step-by-step:

  1. Connect the 1mm FFC to the right connector. The connector is exposed, you do not need to remove the enclosure. The FFC contacts have to face the PCB (ie. not visible from above).
  2. Power the circuit via USB - no battery.
  3. Turn the device ON, otherwise Re will keep your device under reset and prevent connection.
  4. Open the STM32 ST-Link Utility and load the hex
  5. Click Program, then Start
  6. When it's done, power cycle.

If you are having trouble programming Mn please review the Settings and Option Bytes section of the Settings page.

Notes, conventions, tips and tricks

  • FlexSEA_Rigid is the circuit used for Actuator Packages and Dephy Exoskeletons.
    • Re, Ex and Mn are respectively Regulate, Execute and Manage, three sub-circuits of FlexSEA-Rigid. They each have a microcontroller that may need new firmware at some point.
  • If you receive a hex/bin file with “HWXX” in the name:
    • “HW” is short for Hardware version
    • The following numbers are the version: 01 is 0.1, 10 is 1.0, etc. It refers to the FlexSEA-Rigid PCB version.
  • Unless otherwise advised by Dephy, only flash a binary on the proper PCB (HW01 on Rigid 0.1)
  • Re can hold Ex and Mn in reset. To program Ex or Mn you have to turn Re on first (with the user switch).
actpackfirmware.txt · Last modified: 2020/07/13 18:00 by jfduval