This repository was archived by the owner on Feb 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Creating Standalone Application
mikhailjonesagility edited this page Jun 12, 2018
·
16 revisions
The process of compiling a Simulink model to run as a standalone application on a flash drive is described in detail in this Simulink documentation page. The procedure is summarized below, along with some workarounds required for our use-case to work with r2017b.
- Follow the procedure in Setting Up Development PC
- Create a bootable flash drive with FreeDOS using the Rufus tool (use the following settings)
- MBR partition scheme for BIOS or UEFI
- FAT32 file system
- 8192 bytes cluster size
- Create bootable disk using FreeDOS
- Add this file to the FreeDOS USB drive to enable long file names: doslfn.com
- Copy this file to the FreeDOS USB drive. Make sure to rename it to AUTOEXEC.BAT This replaces the AUTOEXEC.BAT file generated by Simulink Real-Time. It will never change from build to build, so make sure you never overwrite it with the generated file when you build a model.
- Select Stand Alone mode for the boot configuration in the Simulink Real-Time Explorer for the CassieV3 target (make sure to save the change)
- Make sure graphics mode is unchecked and USB support is checked under Target Settings
- Build the model that will be loaded onto Cassie (for example, model.slx)
- After the build completes, copy the following 3 files from the model_slrt_emb folder (listed below) to the flash drive (this folder can be found in the directory where the generated code is saved) DO NOT copy autoexec.bat
- xpcboot.com
- slrtkrnl.rtb
- model.mldatx
- Set the target computer's BIOS settings to boot first from the flash drive (This has already been done by Agility, and is only required for setting up new targets)
- Plug the flash drive into the target computer USB port and power on
- Introduction
- Limitation of Liability
- Warning Symbols in this Manual
- General Precautions
- Mechanical Precautions
- Maintenance Precautions
- Research and Development Precautions
- Battery Safety
- Mechanical Overview
- Electrical Overview