@DannyG86 can you please post your "platformio.ini" file? And also your #include and setup() code. I am on mac Big Sur v11.3 and can reliably program M5StickC, StickC Plus, Atom and Fire using PlatformIO.
Posts made by patf
RE: M5StickC/ATOM on MacOS Catalina can't upload/ ESP32: Timed out waiting for packet header solution (Solved)
Atom GPS kit hardware mod to enable sending GPS config commands
Hi, for some strange reason, in the Atom GPS kit, M5Stack did not connect the GPS's receive (Rx) signal to the ESP32. In my repo on Github I show how a very simple one wire mod connects the Rx signal and therefore enables sending of serial commands to the GPS. This is necessary if you want to turn of unneeded NMEA sentences.
I inlcude full source code which shows how to issue commands to the GPS to turn off all NMEA sentenes except for GGA and RMC, use TinyGPS++ to parse and format the GPS data, and log it to the SD card. Please note I don't use the M5 object, I directly inlcude all needed libraries.
There are photos showing how to do the hardware mod on the Github Readme file.
Program runs on StickC but won't turn back on after power cycle
I have a large program which I developed on a TinyPico, and now want to run it on the StickC.
It runs fine on M5StickC after flashing the first time. If I turn the stick off by holding the power button for > 6 seconds, it turns off ok. My problem is, if I then use the same button it will not turn back on. I've tried for a brief press, and up also > 2 seconds.
If I reflash the same program, it will not start.
The only way I can get it to run again is to flash any of the example Stick C programs, then flash my program again and it works until I power down again. My program does not use #include <M5StickC.h>. Does my program need to include this file and instantiate M5.begin(); for the power button to work ok?