Trying to Use the Aduino IDE to program M5 Stack devices. Specifically the M5CoreS3.
I have followed the M5 instructions to set up the IDE but I keep getting errors saying the header M5 Stack.h is missing. I have found conflicting sources directing me to Github for updated files. I cannot see how to do what they want. I have spent weeks trying to find out how to get this header.
I have several M5 docs and hints from the web but nothing I do works.
Is there somebody that can direct me to a source that can walk me through setting up the IDE for this?
Hi @alodine. I'm going to ask you to provide the full verbose output from a compilation.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
Open the sketch in Arduino IDE.
Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open.
Check the box next to "Show verbose output during: ☐ compile" in the "Preferences" dialog.
Click the "OK" button.
The "Preferences" dialog will close.
Select Sketch > Verify/Compile from the Arduino IDE menus.
Wait for the compilation to fail.
You will see a "Compilation error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
Open a reply here on this forum topic by clicking the "Reply" button.
Click the <CODE/> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the compilation output into the code block.
Move the cursor outside of the code block markup before you add any additional text to your reply.
Click the "Reply" button to publish the post.
In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here.
Select the .txt file you saved from the "Open" dialog.
Click the "Open" button.
The dialog will close.
Click the "Reply" button to publish the post.
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.
One definite advantage of using the M5Stack board family is that it lists only the M5 boards, maybe forty of them. M5CoreS3 is fifth on the version I have installed.
Otherwise, it's mostly easier to use the generic and more up-to-date esp32 (by Espressif Systems) board, which is now listed (but not installed) out-of-the-box. So install that with the Board Manager. The latest/current version is 3.3.11. You can have both.
The downside: the M5Stack boards are somewhere among the bajillion other variants -- right after OLIMEX if you're just scrolling down the pull menu. You might find it easier to use Select other board and port at the bottom when clicking the board/port control in the toolbar: that opens a dialog box with a search function. Typing "cores" should get you close.
The instructions also have you install the M5Unified library, which has M5GFX as a dependency. The current versions of those are 0.2.20 and 0.2.27 respectively. Once that is done, the docs have you build the latter's BarGraph example.
About a dozen headers match the general M5*.h name pattern, but there is no M5Stack.h -- no examples or libraries should be asking for it.
While M5Stack used to favor board-specific libraries, those have been deprecated in favor of M5Unified, which works on top of the esp32/M5Stack board.