FlexCase E/G

Calibration via UDS

  • Install blocks and set up sample code
  • Build and flash
  • Test flashed calibrations

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.
  • Download the latest FlexCaseFlash archive from the software page, extract the archive, and run setup.exe to install the flasher.

Install Simulink Library

  • Download the latest Simulink Library from the software page
  • Open installAudesseToolbox.m in MATLAB

  • Run script and make sure you get confirmation that the installation has completed
  • Close MATLAB

Set Up Sample File

  • Copy NVM_k3.slx from audesse_blocks_[version#]/sample_models to new folder
  • (Optional) Copy flxflashconfig from C:Program Files/FlexCaseFlash/resources/flashconfigs/k344 to same folder
  • Open Simulink file in MATLAB and make sure the configuration files are generated (can take several minutes depending on how powerful your computer is)

  • Ensure model opens correctly (note the EXT_Supply_EN) in the Dio block channel

 

Build and Flash

  • Build model (ctrl+b in Simulink window) and make sure output files are generated, including the .bin and .elf files
  • Open generated file, NVM_k3_calList.json, and note DID values and “UDS_APP_KEY” (app key)

  • If other build files are generated but the JSON is not, there is likely an issue with your python installation. Fix your python installation by pressing ctrl+d in Simulink and noting the python error message. You should see the following message upon successful generation of the JSON file:

  • Open FlexCaseFlash, click Open Project, and select the folder containing the flxflashconfig file (C:Program Files/FlexCaseFlash/resources/flashconfigs/k344 or the new folder you created, if you copied it)
  • Select Open under Flash Over CAN
  • Change binary to NVM_k3.bin and change bootloader key accordingly (bootloader key is different than app key)
  • Press Start Sequence to flash binary

 

Test Calibrations

  • Wire an LED or a noticeable indicator to an external supply (5V or VBATT, FCE pins shown for reference)
  • Click Open under Calibrate Over CAN
  • Make sure app key matches “UDS_APP_KEY” in NVM_k3_calList.json

  • Change DID 0xCF00 to 2.0 (period of external supply toggle), and click Start Sequence

  • Make sure the Read DID printout shows the value of 0xCF00 changed to 2.0
  • Change DID 0xCF01 (duty cycle) to 0.5, and note that the LED/indicator should toggle on/off every second

  • Change duty cycle or period and note changes in the speed or on time of the indicator

  • Power cycle the FlexCase and ensure that the last period and duty cycle were maintained over the power cycle