Please enable JavaScript to view this site.

Waijung 2 User Guide

How this block appears in a Simulink model?

waijung2_target_setup_block_1

What can be configured?

waijung2_target_setup_block_3
waijung2_target_setup_block_2
waijung2_target_setup_block_4

Configuration Parameter

Selectable Option/Value

Description

Toolchain

Not configurable

By default: ESP-IDF

Operating system

Not configurable

By default: FreeRTOS

Simulink manages build system

Check--Uncheck

This parameter is not configurable. By default, it is Checked

Project path

 

The folder in which the build files will be generated. If Simulink manages build system is Checked, the build files will be generated in the same directory as the model file.

Project version

 

The project version consists of a prefix (first text box) with a maximum of 16 characters and a suffix (second text box) of maximum 15 characters. For the suffix only numbers are allowed.

Import external source files to the Waijung2 build folder

Check--Uncheck

 

Folder path to src files (.c, .cpp)

Browse for the relevant files using browse button

 

Folder path to header file (.h)

Browse for the relevant files using browse button

 

Build Options

Generate code--Deploy to hardware--External mode simulation--Processor-in-the-loop (PIL) simulation

If:

Generate code - When the build button is pressed, the C code will be generated.

Deploy to hardware - When the build button is pressed, the C code will be generated, compiled, and uploaded to the target microcontroller board.

External mode simulation - Run the Simulink model in External mode in ESP32. Go to External mode in ESP32 for more details

Processor-in-the-loop (PIL) simulation - Run the Simulink model in PIL in ESP32. Go to Processor-in-the-loop simulation in ESP32 for more details

Default xTaskCreate_stack depth

 

Enter the stack size of the tasks that will be created by Waijung 2 depending on the number of unique sample times specified in the model file.

Base task priority

0

This parameter is not configurable. By default, it is set at 0

Highest (maximum) priority

0 to configMAX_PRIORITIES

This value can be found in FreeRTOSConfig.h file

ESP32 Family

ESP32--ESP32S2--ESP32S3--ESP32C3

Select the ESP32 family. More details can be found here.

ESP32 Flash Size

4MB--8MB--16MB

Select the flash memory size of the ESP32 board in use.

COM Port

All available COM ports will be displayed

Select the COM port of the ESP32 device.

Flash baudrate

115200--230400--460800--921600--1500000

 

Start serial monitor on CMD after build

Check--Uncheck

Enable or disable opening the serial monitor on CMD to monitor the serial messages from ESP32. This will only available when build options is set to Deploy to hardware

Monitor baudrate

115200--230400--460800--921600

Baudrate to monitor the serial data

Advanced configuration

Check--Uncheck

Check to modify the default partition table

Edit partition table

Check--Uncheck

Able to manipulate the partition settings

Remove partition

 

used to remove partition

Add partition

 

used to add partition

When to use this block?

It is mandatory to use this block in every model file created using Waijung 2 block set for the ESP32 target.

This block can be used to set up the Simulink code generation environment for the ESP32 target. All generated source files will be copied to the Project path directory which is the directory where the current Simulink model file is created.

 

Copyright 2024 Aimagin Co.,Ltd. Rev.1680