Project

General

Profile

ESP32 reboots infinitely, but compilation of Waijung2 in ... » Compile_log.txt

Leonard GUO, 27 Jan 2023 17:51

 
1
Waijung 2: System information
2
  Computer: PCWIN64
3
  Operating System: Microsoft Windows 10 专业版
4
  Matlab: 9.9.0.2037887 (R2020b) Update 8
5
  Waijung 2 version: 22.12a
6
  Waijung 2 root: D:\waijung2
7
  Waijung 2 System Target File: esp32.tlc
8
Waijung 2: 'RTWVerbose' is: 'on'
9
Waijung 2: SimulationMode is: 'normal'
10
Waijung 2: Removing remaing source files from previous build
11
### Starting build procedure for: FCHEV_EMS_ESP32_with_dSPACE
12
End of entry
13
### Generating code and artifacts to 'Model specific' folder structure
14
### Generating code into build folder: D:\ESP32_slx\FCHEV_EMS_ESP32_with_dSPACE\FCHEV_EMS_ESP32_with_dSPACE_esp32
15
'Input Port 6' of 'FCHEV_EMS_ESP32_with_dSPACE/Energy_Menagement_Strategy/Multiport Switch2' is not connected.
16
Component:Simulink | Category:Block warning
17
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.
18
Component:Simulink | Category:Block warning
19
### Invoking Target Language Compiler on FCHEV_EMS_ESP32_with_dSPACE.rtw
20
### Using System Target File: D:\waijung2\targets\esp32\esp32.tlc
21
### Loading TLC function libraries
22
### Initial pass through model to cache user defined code
23
### Caching model source code
24
    ### Writing header file FCHEV_EMS_ESP32_with_dSPACE_types.h
25
    ### Writing source file FCHEV_EMS_ESP32_with_dSPACE.c
26
    ### Writing header file FCHEV_EMS_ESP32_with_dSPACE_private.h
27
    ### Writing header file FCHEV_EMS_ESP32_with_dSPACE.h
28
.
29
    ### Writing header file waijung2_hwdrvlib.h
30
    ### Writing source file waijung2_hwdrvlib.c
31
    ### Writing header file rtwtypes.h
32
    ### Writing header file rt_nonfinite.h
33
.
34
    ### Writing source file rt_nonfinite.c
35
    ### Writing header file rtGetInf.h
36
    ### Writing source file rtGetInf.c
37
    ### Writing header file rtGetNaN.h
38
.
39
    ### Writing source file rtGetNaN.c
40
    ### Writing source file FCHEV_EMS_ESP32_with_dSPACE_data.c
41
    ### Writing header file rtmodel.h
42
    ### Writing source file ert_main.c
43
.
44
### TLC code generation complete.
45
.
46
### Processing Template Makefile: D:\waijung2\targets\esp32\src\esp32.tmf
47
### Created makefile D:\ESP32_slx\FCHEV_EMS_ESP32_with_dSPACE\FCHEV_EMS_ESP32_with_dSPACE_esp32\FCHEV_EMS_ESP32_with_dSPACE.mk
48
### Building FCHEV_EMS_ESP32_with_dSPACE: .\FCHEV_EMS_ESP32_with_dSPACE.bat
49
 
50
D:\ESP32_slx\FCHEV_EMS_ESP32_with_dSPACE\FCHEV_EMS_ESP32_with_dSPACE_esp32>set MATLAB=C:\MATLAB\R2020b  
51
 
52
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"  
53
### BUILD_MODE              : real_time 
54
### PRODUCT                 : FCHEV_EMS_ESP32_with_dSPACE.out 
55
### SHRLIBTARGET            : 0 
56
### 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 
57
### MODELREF_TARGET_TYPE    : NONE 
58
### MAKEFILEBUILDER_TGT     : 0 
59
### STANDALONE_SUPPRESS_EXE : 0 
60
### Source FCHEV_EMS_ESP32_with_dSPACE.c done 
61
### Source FCHEV_EMS_ESP32_with_dSPACE_data.c done 
62
### Source ert_main.c done 
63
### Source rtGetInf.c done 
64
### Source rtGetNaN.c done
65
### Source rt_nonfinite.c done
66
### Source waijung2_hwdrvlib.c done
67
### Ending FCHEV_EMS_ESP32_with_dSPACE.out real_time
68
### Created FCHEV_EMS_ESP32_with_dSPACE.out successfully (or it was already up to date)
69
### Successful completion of build procedure for: FCHEV_EMS_ESP32_with_dSPACE
70
Waijung 2: Post processing started.
71
警告: 目录已存在。 [2 similar]
72
Waijung 2: Deleting pre-built src files.
73
Waijung 2: Copying required header and source files to the target build directory.
74
######## wj2_blockref checked
75
Waijung 2: Auto compile and download process started
76
[1/15] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/rtGetNaN.c.obj
77
[2/15] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/FCHEV_EMS_ESP32_with_dSPACE_data.c.obj 
78
[3/15] Performing build step for 'bootloader' 
79
[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" 
80
Bootloader binary size 0x62d0 bytes. 0xd30 bytes (12%) free.
81
[4/13] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/rt_nonfinite.c.obj 
82
[5/13] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/waijung2_hwdrvlib.c.obj 
83
[6/13] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/rtGetInf.c.obj
84
[7/13] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/ert_main.c.obj 
85
[8/13] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/FCHEV_EMS_ESP32_with_dSPACE.c.obj
86
[9/13] Linking C static library esp-idf\main\libmain.a
87
[10/13] Generating ld/sections.ld
88
[11/13] Linking CXX executable waijung2_esp32.elf
89
[12/13] Generating binary image from built executable 
90
esptool.py v3.2-dev 
91
Merged 2 ELF sections 
92
Generated D:/ESP32_slx/FCHEV_EMS_ESP32_with_dSPACE/FCHEV_EMS_ESP32_with_dSPACE_esp32_build_system/build/waijung2_esp32.bin
93
[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" 
94
waijung2_esp32.bin binary size 0x2d890 bytes. Smallest app partition is 0x100000 bytes. 0xd2770 bytes (82%) free. 
95
Executing action: all (aliases: build) 
96
Running ninja in directory d:\esp32_slx\fchev_ems_esp32_with_dspace\fchev_ems_esp32_with_dspace_esp32_build_system\build 
97
Executing "ninja all"... 
98
 
99
Project build complete. To flash, run this command: 
100
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 
101
or run 'idf.py -p (PORT) flash'
102
Waijung 2: Downloading to the target
103
[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" 
104
waijung2_esp32.bin binary size 0x2d890 bytes. Smallest app partition is 0x100000 bytes. 0xd2770 bytes (82%) free.
105
[2/5] Performing build step for 'bootloader' 
106
[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" 
107
Bootloader binary size 0x62d0 bytes. 0xd30 bytes (12%) free. 
108
[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"
109
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 
110
esptool.py v3.2-dev 
111
Serial port COM8 
112
Connecting.... 
113
Chip is ESP32-D0WD-V3 (revision 3) 
114
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None 
115
WARNING: Detected crystal freq 41.01MHz is quite different to normalized freq 40MHz. Unsupported crystal in use? 
116
Crystal is 40MHz 
117
MAC: b8:d6:1a:a7:b8:40 
118
Uploading stub... 
119
Running stub... 
120
Stub running... 
121
Configuring flash size... 
122
Flash will be erased from 0x00001000 to 0x00007fff... 
123
Flash will be erased from 0x00010000 to 0x0003dfff... 
124
Flash will be erased from 0x00008000 to 0x00008fff... 
125
Compressed 25296 bytes to 15811... 
126
Writing at 0x00001000... (100 %)
127
Wrote 25296 bytes (15811 compressed) at 0x00001000 in 1.9 seconds (effective 109.3 kbit/s)... 
128
Hash of data verified. 
129
Compressed 186512 bytes to 97513... 
130
Writing at 0x00010000... (16 %)
131
Writing at 0x0001c0d7... (33 %)
132
Writing at 0x0002189b... (50 %)
133
Writing at 0x00027449... (66 %)
134
Writing at 0x0002e9e4... (83 %)
135
Writing at 0x00037e42... (100 %)
136
Wrote 186512 bytes (97513 compressed) at 0x00010000 in 9.2 seconds (effective 161.8 kbit/s)... 
137
Hash of data verified. 
138
Compressed 3072 bytes to 103... 
139
Writing at 0x00008000... (100 %)
140
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 448.1 kbit/s)... 
141
Hash of data verified. 
142
 
143
Leaving... 
144
Hard resetting via RTS pin...
145
Executing action: flash 
146
Running ninja in directory d:\esp32_slx\fchev_ems_esp32_with_dspace\fchev_ems_esp32_with_dspace_esp32_build_system\build 
147
Executing "ninja flash"... 
148
Done
149
Waijung 2: Post processing completed.
150
Waijung 2: Auto compile and download process has been finished successfully
151
### 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'.
152
Build process completed successfully
153
 Build Summary  1
154
Elapsed: 0.66 sec
155
Top model targets built:
156

    
157
Model                        Action                       Rebuild Reason                                    
158
============================================================================================================
159
FCHEV_EMS_ESP32_with_dSPACE  Code generated and compiled  Code generation information file does not exist.  
160

    
161
1 of 1 models built (0 models already up to date)
162
Build duration: 0h 1m 41.111s
(2-2/2)