Page 1 of 1

Difficulty compiling to M5Stack Dial

Posted: Tue Jan 20, 2026 3:06 pm
by Arix
I have created a program in FC V11 to run on a M5Stack Dial but I am having difficulty compiling to the target device (M5Stack Dial).

In an attempt to identify the cause, I reverted to a basic 1Hz Flasher test program. This too will not compile.

Would anyone have solution?

I suspect my setup is the likely cause but trying to identify the reason is proving tricky.

When trying to compile to Hex the following error code is reported.
Build Failed.jpg
Build Failed.jpg (80.57 KiB) Viewed 54 times


If I open the ‘mtxesp32_s3_sdkconfig’ folder there is no ‘CMakeLists.txt’ file.
mtxesp32_s3_sdkconfig.jpg
mtxesp32_s3_sdkconfig.jpg (25.44 KiB) Viewed 54 times
I note also that the other folders such ‘asmtxesp32_c3_sdkconfig’ within the FC_ESP folder are empty.
mtxesp32_c3_sdkconfig.jpg
mtxesp32_c3_sdkconfig.jpg (17.43 KiB) Viewed 54 times
Are these folders populated when the ESP Tool chain is installed or are they populated during the first successful compilation process?

I am using Flowcode v11.0.0.08 Build Oct 17 2025, and the full library is up to date,
Flowcode_Compiler_ESP_5.3a is installed
During installation I disabled my virus checker to be sure it was not interfering with the toolchain installation.
I am running flowcode on a desk top machine operating Windows 10.
I will provide the Flowcode 1Hz program I am using and the complete compiler message report in the next post, in case they provide clues to the cause.
Many thanks in advance
Martin

Re: Difficulty compiling to M5Stack Dial

Posted: Tue Jan 20, 2026 3:09 pm
by Arix
Attached is the 1Hz Flasher program and the complete compiler error message text.

Kind regards

Martin

Re: Difficulty compiling to M5Stack Dial

Posted: Tue Jan 20, 2026 3:48 pm
by BenR
Hello,

I'm not aware of this issue, there should be files placed there for you so I'll investigate and see if I can replicate it.

The menuconfig file is there so obviously the compile setup script is somewhat working.

For now you can use my files as a base and that should allow you to compile.

Here are my files, once these are in place in the C:\FC_ESP folder it should hopefully allow Flowcode to compile to the S3 devices correctly.
mtxesp32_s3_sdkconfig.zip
(35.32 KiB) Downloaded 4 times
The files are copied from here on your PC so maybe first base is to check there are files here.

C:\ProgramData\MatrixTSL\FlowcodeV11\FCD\ESP\Batch

I imagine other families will also have the same problem, anyway I'll investigate and let us know how you get on.

Re: Difficulty compiling to M5Stack Dial

Posted: Tue Jan 20, 2026 4:18 pm
by Steve-Matrix
(edit: Ben beat me to it!)

Those folders are populated when a compilation takes place.

I've tried compiling your project and it compiles ok on my PC.

Comparing the msg.txt file, yours has 4 "The system cannot find the file specified" errors near the start after the "Building: 1Hz flash ..." line. This might be related to the following lines in the "esp32_build.bat" file:

Code: Select all

@IF NOT EXIST "%DOS_BUILD_DIR%\Makefile"            COPY Makefile.txt        "%DOS_BUILD_DIR%\Makefile"            > NUL
@IF NOT EXIST "%DOS_BUILD_DIR%\CMakeLists.txt"      COPY CMakeLists.txt      "%DOS_BUILD_DIR%"                     > NUL
@IF NOT EXIST "%DOS_BUILD_DIR%\main\component.mk"   COPY component.mk        "%DOS_BUILD_DIR%\main"                > NUL
@IF NOT EXIST "%DOS_BUILD_DIR%\sdkconfig"           COPY %CONFIG%.txt        "%DOS_BUILD_DIR%\sdkconfig"           > NUL
You can find this file in the C:\ProgramData\MatrixTSL\FlowcodeV11\FCD\ESP\Batch\ folder and you could try adding some debug messages (e.g. "echo my_message") just before and after these lines to see if those are the lines causing the issue.

If they are, then the previous line "@PUSHD %~dp0" might be setting the current folder wrong. Although I don't know why this should be the case. The command "echo %cd%" shows the current folder (add it just after the 4 lines above and it should print "C:\ProgramData\MatrixTSL\FlowcodeV11\FCD\ESP\Batch" in the msg.txt output).

Re: Difficulty compiling to M5Stack Dial

Posted: Tue Jan 20, 2026 11:16 pm
by Arix
Thank you Ben & Steve.

Following Steve's instructions and adding the debug messages it does appear to be those four lines causing the issue. Adding "echo %cd%" does print "C:\ProgramData\MatrixTSL\FlowcodeV11\FCD\ESP\Batch" in the msg.txt output, so it is pointing to the correct folder.

If I add the files that Ben kindly supplied I am able to complie to the M5Stack Dial device. I even added a simple display routine to the program and it worked correctly (its so satisifying when that happens :P ), which is a step forward. Although, the underlying issue of the compiler failing to automatically generate the files is still there.

After completing the above I then went back to my main project. Which failed to compile but for different reasons e.g. syntax errors. I will try to resolve these errors but I might need to ask for more help later. At least now have a baseline to work from.

Martin