FlexSeries

CAN Flasher

  • Connect flashing wire harness
  • Install flashing software
  • Flash compiled code

Prerequisites (Windows)

  • Ensure you have a PCAN-USB device, and that the device drivers are installed.
  • Ensure you have bootloader software loaded on your hardware. Please contact us if you are unsure of your bootloader status.
  • If applicable, uninstall previous versions of FlexCaseFlash at “C:/Program Files/FlexCaseFlash/Uninstall FlexCaseFlash.exe”

Limitations

The CAN Flasher Rev 1.3.1 has the following limitations. Future revisions are planned to add features which remove these limitations.

  • If using included Simulink sample to build binaries for FlexCase S, samples are only compatible with MBDT 4.3.0 for S32K1
  • For FlexCase E/G, the sample models for Simulink are available seperately in the software page, compatible with MBDT 1.4.0 for S32K3
  • For FlexCase S, the baud rate of the CAN bus which is used for flashing the bootloader is static. You will have to use the Pro version of the FlexCase hardware or a dedicated flasher to change the bootloader CAN bus baud rate.
  • For FlexCase S 144/142 versions, CAN0 Message Buffer 0 cannot be used for user functions (reserved for bootloader request message). Other message buffers on CAN0 and CAN1 are fully available for user functions.
  • There is limited binary file checking implemented on the flasher. You will need to verify which version of MCU you have in order to flash the correct version. Attempting to flash the incorrect version will render the hardware inoperable until the bootloader is restored. See our guide on determining your MCU version here.

Assemble Hardware

Partial or full termination of the CAN bus is usually required for the devices to communicate.

FlexCase S / FlexBench

Connect CAN0 from the FlexCase to the PCAN-USB device, and connect the PCAN-USB device to your computers USB port.

Upon powering up, a low 0.5 second beep from the diagnostic buzzer indicates that the FlexCase has entered bootloader mode and is ready for flashing over CAN. The bootloader will also send a message over CAN every 5 seconds that indicates the hardware variant. The FlexCaseFlash program will also attempt to enter bootloader mode before flashing.

FlexCase E / FlexCase G

Connect CAN2 from the FlexCase to the PCAN-USB device, and connect the PCAN-USB device to your computers USB port.

Install FlexCaseFlash

  • Uninstall any previous versions of FlexCaseFlash at C:/Program Files/FlexCaseFlash/
  • Download the latest FlexCaseFlash archive from the software page
  • Extract the archive, and run setup.exe to install the flasher. Use the default settings in the installer.

Flash a Pre-compiled File

  • Click Open Project and select the folder C:/Program Files/FlexCaseFlash/resources/flashconfigs and then select the folder corresponding to your hardware.
  • (Optional) For convenience, make a copy of the flxflashconfig file in the folder corresponding to your hardware, and move it to the folder where you will be generating or storing application binaries. This will allow edits to the configuration to be saved by the user.

 

WARNING: Selecting the incorrect hardware or modifying the project file will render the hardware inoperable until the bootloader is restored.

 

  • Open the Flash Schedule on the right side of the project information screen.

 

  • Click the red Connect settings button at the top-right of the screen. In the popup, click Connect without modifying the default options and exit the popup. The settings button should now be green.

 

  • Ensure that the binary file match your hardware. Invalid file paths display in red text, valid paths in black text.
  • The first payload field is the default AES security key, which is tied to the bootloader software
  • The second field is the application binary to be flashed over CAN.

 

Hardware-Specific: Flashing, Building, and Modifying Application Firmware

WARNING: Extra care must be taken when making changes to applications that will be flashed through FlexCaseFlash. If the hardware is rendered inoperable due to incorrect settings and you do not have a means of restoring the bootloader, your hardware will have to be shipped to Audesse for repairs at your expense.

  • If making changes to sample models using Simulink, ensure that the following MathWorks products are installed: MATLAB, Simulink, MATLAB Coder, Simulink Coder, Embedded Code
  • Choose the tab below corresponding to your hardware variant for further instructions

Common: Restoring Bootloader

In the event that the FlexCase becomes unresponsive to new flash attempts, the bootloader may have to be recovered to continue use. First, double check the Limitations section at the beginning of this tutorial with reference to your application software to ensure you have not programmed interfaces required for bootloader function.

Restoring the bootloader requires either a pro version or a seperate JTAG flashing tool. The bootloader can be flashed the same way described in the quick start guide. Only certain versions of bootloader will be available in the software downloads. Please contact us for more details.