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.
If I open the ‘mtxesp32_s3_sdkconfig’ folder there is no ‘CMakeLists.txt’ file.
I note also that the other folders such ‘asmtxesp32_c3_sdkconfig’ within the FC_ESP folder are empty.
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
Difficulty compiling to M5Stack Dial
-
Arix
- Posts: 14
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 9:53 pm
- Has thanked: 3 times
- Been thanked: 10 times
Re: Difficulty compiling to M5Stack Dial
Attached is the 1Hz Flasher program and the complete compiler error message text.
Kind regards
Martin
Kind regards
Martin
- Attachments
-
- 1Hz flash.msg.txt
- (3.86 KiB) Downloaded 3 times
-
- 1Hz flash.fcfx
- (8.99 KiB) Downloaded 4 times
-
BenR
- Matrix Staff
- Posts: 2097
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 556 times
- Been thanked: 740 times
Re: Difficulty compiling to M5Stack Dial
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.
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.
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
Steve-Matrix
- Matrix Staff
- Posts: 1703
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 247 times
- Been thanked: 402 times
Re: Difficulty compiling to M5Stack Dial
(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:
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).
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" > NULIf 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
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
), 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
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
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