Again, maybe a naive suggestion (from a chaotic mind)
When compiling a Flowcode chart to an ESP32-Wroom I need to push a button on the ESP32 DEV-board to upload the program.
- Sometimes, during compiling my attention is drawn to another thing and I forget to push the button
- Sometimes there is a serial monitor still running so the program can't get access to the COM-port.
- ..
In these cases I need to start compiling again which takes a while, and this is annoying because the compiling was done a few seconds ago and nothing changed.
The only thing is that the upload wasn't finished.
Would it be a option to have a function in FC that uploads the last generated files without compiling again?
Would look like this:
Upload same b
-
- Posts: 250
- http://meble-kuchenne.info.pl
- Joined: Tue Dec 08, 2020 5:11 pm
- Has thanked: 75 times
- Been thanked: 52 times
-
- Matrix Staff
- Posts: 1269
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 169 times
- Been thanked: 285 times
Re: Upload same b
Thanks for the suggestion. I have added it to my list and this should be a relatively easy addition to make.
-
- Matrix Staff
- Posts: 1269
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 169 times
- Been thanked: 285 times
Re: Upload same b
You could use the "User-defined tools" facility of Flowcode v10 (in the Build menu) to create your own button to do this. I have done this for my projects.
By clicking the "Customise" button and then selecting the "User Tools" tab in the Options screen, I created a button called "ESP32_PROG" with the following settings:
The "Use ShellExecute" needs to be ticked. Here's that screen, showing the button on the toolbar under "Build":
I have copied the existing "esp32_prog.bat" file and made a few changes to the numbers used when the batch file is referring to its parameters, then resaved it as "esp32_prog_st.bat". You can find this file in your "%PROGRAMDATA%\MatrixTSL\FlowcodeV10\FCD\ESP\Batch" folder. Here are the edits:
Hopefully this works for you too.
By clicking the "Customise" button and then selecting the "User Tools" tab in the Options screen, I created a button called "ESP32_PROG" with the following settings:
Code: Select all
Command:
$(fcddir)\ESP\Batch\esp32_prog_st.bat
Arguments:
$(compileresp) "$(target)" "$(srcdir)" $(comport) 115200
Initial Folder:
$(srcdir)
I have copied the existing "esp32_prog.bat" file and made a few changes to the numbers used when the batch file is referring to its parameters, then resaved it as "esp32_prog_st.bat". You can find this file in your "%PROGRAMDATA%\MatrixTSL\FlowcodeV10\FCD\ESP\Batch" folder. Here are the edits:
Code: Select all
@SET TOOLS_DIR=%~2
@SET TARGET=%~3
@SET OUT_DIR=%~4
@SET PORT=%~5
@SET BAUD=%~6