Waijung 2: System information Computer: PCWIN64 Operating System: Microsoft Windows 10 专业版 Matlab: 9.9.0.2037887 (R2020b) Update 8 Waijung 2 version: 22.12a Waijung 2 root: D:\waijung2 Waijung 2 System Target File: esp32.tlc Waijung 2: 'RTWVerbose' is: 'on' Waijung 2: SimulationMode is: 'normal' Waijung 2: Removing remaing source files from previous build ### Starting build procedure for: FCHEV_EMS_ESP32_with_dSPACE End of entry ### Generating code and artifacts to 'Model specific' folder structure ### Generating code into build folder: D:\ESP32_slx\FCHEV_EMS_ESP32_with_dSPACE\FCHEV_EMS_ESP32_with_dSPACE_esp32 'Input Port 6' of 'FCHEV_EMS_ESP32_with_dSPACE/Energy_Menagement_Strategy/Multiport Switch2' is not connected. Component:Simulink | Category:Block warning Source 'FCHEV_EMS_ESP32_with_dSPACE/ADC' specifies that its sample time (-1) is back-inherited. You should explicitly specify the sample time of sources. You can disable this diagnostic by setting the 'Source block specifies -1 sample time' diagnostic to 'none' in the Sample Time group on the Diagnostics pane of the Configuration Parameters dialog box. Component:Simulink | Category:Block warning ### Invoking Target Language Compiler on FCHEV_EMS_ESP32_with_dSPACE.rtw ### Using System Target File: D:\waijung2\targets\esp32\esp32.tlc ### Loading TLC function libraries ### Initial pass through model to cache user defined code ### Caching model source code ### Writing header file FCHEV_EMS_ESP32_with_dSPACE_types.h ### Writing source file FCHEV_EMS_ESP32_with_dSPACE.c ### Writing header file FCHEV_EMS_ESP32_with_dSPACE_private.h ### Writing header file FCHEV_EMS_ESP32_with_dSPACE.h . ### Writing header file waijung2_hwdrvlib.h ### Writing source file waijung2_hwdrvlib.c ### Writing header file rtwtypes.h ### Writing header file rt_nonfinite.h . ### Writing source file rt_nonfinite.c ### Writing header file rtGetInf.h ### Writing source file rtGetInf.c ### Writing header file rtGetNaN.h . ### Writing source file rtGetNaN.c ### Writing source file FCHEV_EMS_ESP32_with_dSPACE_data.c ### Writing header file rtmodel.h ### Writing source file ert_main.c . ### TLC code generation complete. . ### Processing Template Makefile: D:\waijung2\targets\esp32\src\esp32.tmf ### Created makefile D:\ESP32_slx\FCHEV_EMS_ESP32_with_dSPACE\FCHEV_EMS_ESP32_with_dSPACE_esp32\FCHEV_EMS_ESP32_with_dSPACE.mk ### Building FCHEV_EMS_ESP32_with_dSPACE: .\FCHEV_EMS_ESP32_with_dSPACE.bat D:\ESP32_slx\FCHEV_EMS_ESP32_with_dSPACE\FCHEV_EMS_ESP32_with_dSPACE_esp32>set MATLAB=C:\MATLAB\R2020b D:\ESP32_slx\FCHEV_EMS_ESP32_with_dSPACE\FCHEV_EMS_ESP32_with_dSPACE_esp32>"C:\MATLAB\R2020b\bin\win64\gmake" -f FCHEV_EMS_ESP32_with_dSPACE.mk GENERATE_ASAP2=0 OPTS="-DTID01EQ=0" ### BUILD_MODE : real_time ### PRODUCT : FCHEV_EMS_ESP32_with_dSPACE.out ### SHRLIBTARGET : 0 ### MODULES : FCHEV_EMS_ESP32_with_dSPACE.c FCHEV_EMS_ESP32_with_dSPACE_data.c ert_main.c rtGetInf.c rtGetNaN.c rt_nonfinite.c waijung2_hwdrvlib.c rt_main.c ### MODELREF_TARGET_TYPE : NONE ### MAKEFILEBUILDER_TGT : 0 ### STANDALONE_SUPPRESS_EXE : 0 ### Source FCHEV_EMS_ESP32_with_dSPACE.c done ### Source FCHEV_EMS_ESP32_with_dSPACE_data.c done ### Source ert_main.c done ### Source rtGetInf.c done ### Source rtGetNaN.c done ### Source rt_nonfinite.c done ### Source waijung2_hwdrvlib.c done ### Ending FCHEV_EMS_ESP32_with_dSPACE.out real_time ### Created FCHEV_EMS_ESP32_with_dSPACE.out successfully (or it was already up to date) ### Successful completion of build procedure for: FCHEV_EMS_ESP32_with_dSPACE Waijung 2: Post processing started. 警告: 目录已存在。 [2 similar] Waijung 2: Deleting pre-built src files. Waijung 2: Copying required header and source files to the target build directory. ######## wj2_blockref checked Waijung 2: Auto compile and download process started [1/15] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/rtGetNaN.c.obj [2/15] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/FCHEV_EMS_ESP32_with_dSPACE_data.c.obj [3/15] Performing build step for 'bootloader' [1/1] cmd.exe /C "cd /D D:\ESP32_slx\FCHEV_EMS_ESP32_with_dSPACE\FCHEV_EMS_ESP32_with_dSPACE_esp32_build_system\build\bootloader\esp-idf\esptool_py && D:\waijung2\targets\esp32\setup\.espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe D:/waijung2/targets/esp32/setup/esp_idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 D:/ESP32_slx/FCHEV_EMS_ESP32_with_dSPACE/FCHEV_EMS_ESP32_with_dSPACE_esp32_build_system/build/bootloader/bootloader.bin" Bootloader binary size 0x62d0 bytes. 0xd30 bytes (12%) free. [4/13] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/rt_nonfinite.c.obj [5/13] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/waijung2_hwdrvlib.c.obj [6/13] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/rtGetInf.c.obj [7/13] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/ert_main.c.obj [8/13] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/FCHEV_EMS_ESP32_with_dSPACE.c.obj [9/13] Linking C static library esp-idf\main\libmain.a [10/13] Generating ld/sections.ld [11/13] Linking CXX executable waijung2_esp32.elf [12/13] Generating binary image from built executable esptool.py v3.2-dev Merged 2 ELF sections Generated D:/ESP32_slx/FCHEV_EMS_ESP32_with_dSPACE/FCHEV_EMS_ESP32_with_dSPACE_esp32_build_system/build/waijung2_esp32.bin [13/13] cmd.exe /C "cd /D D:\ESP32_slx\FCHEV_EMS_ESP32_with_dSPACE\FCHEV_EMS_ESP32_with_dSPACE_esp32_build_system\build\esp-idf\esptool_py && D:\waijung2\targets\esp32\setup\.espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe D:/waijung2/targets/esp32/setup/esp_idf/components/partition_table/check_sizes.py --offset 0x8000 partition --type app D:/ESP32_slx/FCHEV_EMS_ESP32_with_dSPACE/FCHEV_EMS_ESP32_with_dSPACE_esp32_build_system/build/partition_table/partition-table.bin D:/ESP32_slx/FCHEV_EMS_ESP32_with_dSPACE/FCHEV_EMS_ESP32_with_dSPACE_esp32_build_system/build/waijung2_esp32.bin" waijung2_esp32.bin binary size 0x2d890 bytes. Smallest app partition is 0x100000 bytes. 0xd2770 bytes (82%) free. Executing action: all (aliases: build) Running ninja in directory d:\esp32_slx\fchev_ems_esp32_with_dspace\fchev_ems_esp32_with_dspace_esp32_build_system\build Executing "ninja all"... Project build complete. To flash, run this command: D:\waijung2\targets\esp32\setup\.espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe ..\..\..\waijung2\targets\esp32\setup\esp_idf\components\esptool_py\esptool\esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build\bootloader\bootloader.bin 0x8000 build\partition_table\partition-table.bin 0x10000 build\waijung2_esp32.bin or run 'idf.py -p (PORT) flash' Waijung 2: Downloading to the target [1/5] cmd.exe /C "cd /D D:\ESP32_slx\FCHEV_EMS_ESP32_with_dSPACE\FCHEV_EMS_ESP32_with_dSPACE_esp32_build_system\build\esp-idf\esptool_py && D:\waijung2\targets\esp32\setup\.espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe D:/waijung2/targets/esp32/setup/esp_idf/components/partition_table/check_sizes.py --offset 0x8000 partition --type app D:/ESP32_slx/FCHEV_EMS_ESP32_with_dSPACE/FCHEV_EMS_ESP32_with_dSPACE_esp32_build_system/build/partition_table/partition-table.bin D:/ESP32_slx/FCHEV_EMS_ESP32_with_dSPACE/FCHEV_EMS_ESP32_with_dSPACE_esp32_build_system/build/waijung2_esp32.bin" waijung2_esp32.bin binary size 0x2d890 bytes. Smallest app partition is 0x100000 bytes. 0xd2770 bytes (82%) free. [2/5] Performing build step for 'bootloader' [1/1] cmd.exe /C "cd /D D:\ESP32_slx\FCHEV_EMS_ESP32_with_dSPACE\FCHEV_EMS_ESP32_with_dSPACE_esp32_build_system\build\bootloader\esp-idf\esptool_py && D:\waijung2\targets\esp32\setup\.espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe D:/waijung2/targets/esp32/setup/esp_idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 D:/ESP32_slx/FCHEV_EMS_ESP32_with_dSPACE/FCHEV_EMS_ESP32_with_dSPACE_esp32_build_system/build/bootloader/bootloader.bin" Bootloader binary size 0x62d0 bytes. 0xd30 bytes (12%) free. [2/3] cmd.exe /C "cd /D D:\waijung2\targets\esp32\setup\esp_idf\components\esptool_py && D:\waijung2\targets\esp32\setup\.espressif\tools\cmake\3.20.3\bin\cmake.exe -D IDF_PATH="D:/waijung2/targets/esp32/setup/esp_idf" -D SERIAL_TOOL="D:/waijung2/targets/esp32/setup/.espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe D:/waijung2/targets/esp32/setup/esp_idf/components/esptool_py/esptool/esptool.py --chip esp32" -D SERIAL_TOOL_ARGS="--before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY="D:/ESP32_slx/FCHEV_EMS_ESP32_with_dSPACE/FCHEV_EMS_ESP32_with_dSPACE_esp32_build_system/build" -P D:/waijung2/targets/esp32/setup/esp_idf/components/esptool_py/run_serial_tool.cmake" esptool.py esp32 -p COM8 -b 115200 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 bootloader/bootloader.bin 0x10000 waijung2_esp32.bin 0x8000 partition_table/partition-table.bin esptool.py v3.2-dev Serial port COM8 Connecting.... Chip is ESP32-D0WD-V3 (revision 3) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None WARNING: Detected crystal freq 41.01MHz is quite different to normalized freq 40MHz. Unsupported crystal in use? Crystal is 40MHz MAC: b8:d6:1a:a7:b8:40 Uploading stub... Running stub... Stub running... Configuring flash size... Flash will be erased from 0x00001000 to 0x00007fff... Flash will be erased from 0x00010000 to 0x0003dfff... Flash will be erased from 0x00008000 to 0x00008fff... Compressed 25296 bytes to 15811... Writing at 0x00001000... (100 %) Wrote 25296 bytes (15811 compressed) at 0x00001000 in 1.9 seconds (effective 109.3 kbit/s)... Hash of data verified. Compressed 186512 bytes to 97513... Writing at 0x00010000... (16 %) Writing at 0x0001c0d7... (33 %) Writing at 0x0002189b... (50 %) Writing at 0x00027449... (66 %) Writing at 0x0002e9e4... (83 %) Writing at 0x00037e42... (100 %) Wrote 186512 bytes (97513 compressed) at 0x00010000 in 9.2 seconds (effective 161.8 kbit/s)... Hash of data verified. Compressed 3072 bytes to 103... Writing at 0x00008000... (100 %) Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 448.1 kbit/s)... Hash of data verified. Leaving... Hard resetting via RTS pin... Executing action: flash Running ninja in directory d:\esp32_slx\fchev_ems_esp32_with_dspace\fchev_ems_esp32_with_dspace_esp32_build_system\build Executing "ninja flash"... Done Waijung 2: Post processing completed. Waijung 2: Auto compile and download process has been finished successfully ### Simulink cache artifacts for 'FCHEV_EMS_ESP32_with_dSPACE' were created in 'D:\ESP32_slx\FCHEV_EMS_ESP32_with_dSPACE\FCHEV_EMS_ESP32_with_dSPACE.slxc'. Build process completed successfully Build Summary 1 Elapsed: 0.66 sec Top model targets built: Model Action Rebuild Reason ============================================================================================================ FCHEV_EMS_ESP32_with_dSPACE Code generated and compiled Code generation information file does not exist. 1 of 1 models built (0 models already up to date) Build duration: 0h 1m 41.111s