Forums » Req. WJ2(ESP32) support »
esp32c3 compiling problem
Added by Suphichaya Youngsubtargul (โอปอ) about 2 years ago
hi
What I am doing wrong?
With esp32 compiling process gets completed, but on esp32c3 there are some errors.
Log file attached.
Best regards Arek
Replies (13)
RE: esp32c3 compiling problem - Added by Suphichaya Youngsubtargul (โอปอ) about 2 years ago
Hi Arkadiusz,
Thank you for reaching out.
May I please know which Waijung 2 version are you using?
Also, I can't find any attached file. Could you try attaching again please?
--
Parth Maheshwari
Application Engineer
RE: esp32c3 compiling problem - Added by Suphichaya Youngsubtargul (โอปอ) about 2 years ago
is adding txt files forbidden here?
RE: esp32c3 compiling problem - Added by Suphichaya Youngsubtargul (โอปอ) about 2 years ago
I received your log file and your error is related to the ESP camera library.
Kindly download this patch file from our User Guide https://waijung2-doc.aimagin.com/patch-files.html
Please install it and try again. Do keep us updated on whether your problem is resolved, thank you.
--
Parth Maheshwari
Application Engineer
RE: esp32c3 compiling problem - Added by Suphichaya Youngsubtargul (โอปอ) about 2 years ago
hi - still error
C:/Users/aReK/w/waijung2/targets/esp32/setup/esp_idf/components/esp32-camera/driver/cam_hal.c
C:/Users/aReK/w/waijung2/targets/esp32/setup/esp_idf/components/esp32-camera/driver/cam_hal.c:18:10: fatal error: ll_cam.h: No such file or directory
#include "ll_cam.h"
ll_cam.h is missing
I am not going to use camera - can I bypass this driver?
RE: esp32c3 compiling problem - Added by Suphichaya Youngsubtargul (โอปอ) about 2 years ago
Please give me a few days to get back to you on this, my apologies for the delay and any inconvenience it may cause.
Thank you in advance for your patience.
--
Parth Maheshwari
Application Engineer
RE: esp32c3 compiling problem - Added by Suphichaya Youngsubtargul (โอปอ) about 2 years ago
Test adding .txt.
RE: esp32c3 compiling problem - Added by Suphichaya Youngsubtargul (โอปอ) about 2 years ago
Please see above. I just tested and .txt can be added.
RE: esp32c3 compiling problem - Added by Suphichaya Youngsubtargul (โอปอ) about 2 years ago
recent error:
IC:/Users/aReK/w/waijung2/targets/esp32/setup/esp_idf/components/spi_flash/include -march=rv32imc -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Wno-error=format= -nostartfiles -Wno-format -Og -fmacro-prefix-map=C:/Users/aReK/Documents/run/esptest2_esp32_build_system=. -fmacro-prefix-map=C:/Users/aReK/w/waijung2/targets/esp32/setup/esp_idf=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.4-beta1-177-ge104dd7f27-dirt\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -g3 -fno-stack-protector -mlongcalls -nostdlib -Wpointer-arith -Wno-error=unused-value -Wno-error=unused-label -Wno-error=char-subscripts -Wno-error=maybe-uninitialized -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-value -Wno-unused-function -Wno-missing-field-initializers -Wno-extra -Wno-type-limits -Wno-cast-function-type -Wno-maybe-uninitialized -Wno-char-subscripts -MMD -c -DF_CPU=240000000L -DESP32 -DCORE_DEBUG_LEVEL=0 -DNDEBUG -MD -MT esp-idf/esp32-idf-sqlite3/CMakeFiles/__idf_esp32-idf-sqlite3.dir/esp32.c.obj -MF esp-idf\esp32-idf-sqlite3\CMakeFiles\__idf_esp32-idf-sqlite3.dir\esp32.c.obj.d -o esp-idf/esp32-idf-sqlite3/CMakeFiles/__idf_esp32-idf-sqlite3.dir/esp32.c.obj -c C:/Users/aReK/w/waijung2/targets/esp32/setup/esp_idf/components/esp32-idf-sqlite3/esp32.c
riscv32-esp-elf-gcc.exe: error: unrecognized command line option '-mlongcalls'
RE: esp32c3 compiling problem - Added by Suphichaya Youngsubtargul (โอปอ) about 2 years ago
after deleting camera driver still: riscv32-esp-elf-gcc.exe: error: unrecognized command line option '-mlongcalls' error
RE: esp32c3 compiling problem - Added by Suphichaya Youngsubtargul (โอปอ) about 2 years ago
solved :)
Top model targets built:
Model Action Rebuild Reason =========================================================================================
esptest2 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 6m 50.116s
by removing "-mlongcalls" as not supported by riscv32-esp-elf
now testing the uC
best regards Arek
RE: esp32c3 compiling problem - Added by Suphichaya Youngsubtargul (โอปอ) about 2 years ago
and adc block?
Waijung 2: System informationComputer: PCWIN64
Operating System: Microsoft Windows 10 Home
Matlab: 9.11.0.1873467 (R2021b) Update 3
Waijung 2 version: 22.8a
Waijung 2 root: C:\Users\aReK\w\waijung2
Waijung 2 System Target File: esp32.tlc
Waijung 2: 'RTWVerbose' is: 'on'
Waijung 2: SimulationMode is: 'external'
Waijung 2: Removing remaing source files from previous build
- Starting build procedure for: esptest2
End of entry - Invoking custom build hook: CodeGenEntry
- Generating code and artifacts to 'Model specific' folder structure
- Generating code into build folder: C:\Users\aReK\Documents\run\esptest2_esp32
- Invoking custom build hook: CodeGenBeforeTLC
- Invoking Target Language Compiler on esptest2.rtw
- Using System Target File: C:\Users\aReK\w\waijung2\targets\esp32\esp32.tlc ### Loading TLC function libraries
- Initial pass through model to cache user defined code
- Caching model source code
Error: File: C:\Users\aReK\w\waijung2\targets\esp32\src\blocks\esp32_adc.tlc Line: 82 Column: 16
The specified index (1) was out of the range 0 - 0
Main program:
> [00] C:\Users\aReK\w\waijung2\targets\esp32\src\blocks\esp32_adc.tlc:<NONE>(82)
[01] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\blocks\gensfun.tlc:Outputs(1558)
[02] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commentlib.tlc:generateNonExprOutput(178)
[03] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:OpaqueTLCBlockFcn(5027)
[04] C:\Users\aReK\Documents\run\esptest2_esp32\tlc\s0_b0_h7ido_Outputs.tlc:OutputsForTID(13)
[05] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenRateGroupedCodeFromModule(5919)
[06] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenerateCodeFromModule(5621)
[07] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcn(292)
[08] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodyFcnCache(558)
[09] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcnEntry(667)
[10] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commonbodlib.tlc:FcnGenBodySysCache(1897)
[11] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commonbodlib.tlc:SLibGenBodyCache(6480)
[12] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\formatwide.tlc:<NONE>(76)
Error: File: C:\Users\aReK\w\waijung2\targets\esp32\src\blocks\esp32_adc.tlc Line: 82 Column: 16
The specified index (2) was out of the range 0 - 0
Main program:
> [00] C:\Users\aReK\w\waijung2\targets\esp32\src\blocks\esp32_adc.tlc:<NONE>(82)
[01] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\blocks\gensfun.tlc:Outputs(1558)
[02] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commentlib.tlc:generateNonExprOutput(178)
[03] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:OpaqueTLCBlockFcn(5027)
[04] C:\Users\aReK\Documents\run\esptest2_esp32\tlc\s0_b0_h7ido_Outputs.tlc:OutputsForTID(13)
[05] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenRateGroupedCodeFromModule(5919)
[06] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenerateCodeFromModule(5621)
[07] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcn(292)
[08] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodyFcnCache(558)
[09] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcnEntry(667)
[10] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commonbodlib.tlc:FcnGenBodySysCache(1897)
[11] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commonbodlib.tlc:SLibGenBodyCache(6480)
[12] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\formatwide.tlc:<NONE>(76)
Error: File: C:\Users\aReK\w\waijung2\targets\esp32\src\blocks\esp32_adc.tlc Line: 82 Column: 16
The specified index (3) was out of the range 0 - 0
Main program:
> [00] C:\Users\aReK\w\waijung2\targets\esp32\src\blocks\esp32_adc.tlc:<NONE>(82)
[01] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\blocks\gensfun.tlc:Outputs(1558)
[02] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commentlib.tlc:generateNonExprOutput(178)
[03] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:OpaqueTLCBlockFcn(5027)
[04] C:\Users\aReK\Documents\run\esptest2_esp32\tlc\s0_b0_h7ido_Outputs.tlc:OutputsForTID(13)
[05] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenRateGroupedCodeFromModule(5919)
[06] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenerateCodeFromModule(5621)
[07] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcn(292)
[08] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodyFcnCache(558)
[09] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcnEntry(667)
[10] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commonbodlib.tlc:FcnGenBodySysCache(1897)
[11] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commonbodlib.tlc:SLibGenBodyCache(6480)
[12] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\formatwide.tlc:<NONE>(76)
Error: File: C:\Users\aReK\w\waijung2\targets\esp32\src\blocks\esp32_adc.tlc Line: 82 Column: 16
The specified index (4) was out of the range 0 - 0
Main program:
> [00] C:\Users\aReK\w\waijung2\targets\esp32\src\blocks\esp32_adc.tlc:<NONE>(82)
[01] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\blocks\gensfun.tlc:Outputs(1558)
[02] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commentlib.tlc:generateNonExprOutput(178)
[03] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:OpaqueTLCBlockFcn(5027)
[04] C:\Users\aReK\Documents\run\esptest2_esp32\tlc\s0_b0_h7ido_Outputs.tlc:OutputsForTID(13)
[05] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenRateGroupedCodeFromModule(5919)
[06] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenerateCodeFromModule(5621)
[07] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcn(292)
[08] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodyFcnCache(558)
[09] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcnEntry(667)
[10] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commonbodlib.tlc:FcnGenBodySysCache(1897)
[11] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commonbodlib.tlc:SLibGenBodyCache(6480)
[12] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\formatwide.tlc:<NONE>(76) - Build procedure for esptest2 aborted due to an error.
?
RE: esp32c3 compiling problem - Added by Suphichaya Youngsubtargul (โอปอ) about 2 years ago
ok - solved: %assign nbrpin = 8 to %assign nbrpin = 5 in esp32_adc.tlc