Loading into memory

To load the target application into target device memory:
  1. Open the command prompt and switch to the {S32DS installation path}\S32DS\S32FlashTool\bin directory.
  2. Run the S32FlashTool.exe file with the following options:
    Table 1. Loading options
    Option Description
    -t [name] Specifies an embedded application program that will be loaded to the target device.
    -a [name] Specifies the memory-specific application that will be loaded to the target device. The application algorithm manages memory and allows you to perform some additional actions, for example reading and writing to memory.
    -i [uart | can | eth] Specifies the communication interface. Options:
    • uart - Universal Asynchronous Receiver-Transmitter (UART). The target device must be connected using UART0.
    • can - Controller Area Network (CAN). The target device must be connected using CAN0.
    • eth - The Ethernet connection is currently unavailable for supported boards.
    -p [devicename] Specifies the communication device name.
    • For UART connection:
      • on Windows - the COM port, for example COM35.
      • on Linux - the device name, for example /dev/ttyUSB0. Make sure you have permission to access the device.
    • For CAN connection - the CAN device name, for example vector.
    -sd Enables working with the Secure Digital (SD) card.
    -mmc Enables working with the Multi Media Card (MMC).

For example, to load your application to flash memory:

S32FlashTool.exe -t ../targets/S32V234.bin -a ../flash/Cypress_S26KL512S2_algo.bin -i uart -p COM35
To load your application to the SD card:
S32FlashTool.exe -t ../targets/S32V234.bin -a ../flash/EMMC_SD_algo.bin -i uart -p COM35 -sd