core2 not working
-
Hello,
I have a core2 with which I have had problems since day 1. I had thrown it out, but now I'm giving it a ... try.
I've compiled and uploaded many programs that come with the M5core2 library, but I haven't been able to get anything to work.For example the program: In arduino ide: examples ->ESPInsights -> DiagnosticsSmokeTest.
the compiler throws following errors, but compiles and uploads ok
WARNING: Category '' in library ESP Insights is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library ESP RainMaker is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library WiFiProv is not valid. Setting to 'Uncategorized'
Sketch uses 905821 bytes (13%) of program storage space. Maximum is 6553600 bytes.
Global variables use 46408 bytes (1%) of dynamic memory, leaving 4475576 bytes for local variables. Maximum is 4521984 bytes.
esptool.py v4.5.1
Serial port /dev/ttyACM0
Connecting....upload goes ok, but the core2 does not show any sign of life.
the serial console output:
..ets Jul 29 2019 12:21:46rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0and then an endless line of dots are shown on the serial console. No sign of life on the core2
can anyone tell me what's wrong here ?
-
I'm not an expert at this, but perhaps I can help some...
I think you are using an ESP32 for a board.
First of all, did you install the M5Stack boards on your Arduino IDE? Reference this link:
https://docs.m5stack.com/en/arduino/arduino_boardMake sure that you select the board correctly in the IDE:
Tools/Board/M5Stack/M5Core2
Make sure that you have the correct Comm Port. Open your Device Manager, unplug the USB cable from the M5Stack and see which Comm Port goes away. Plug it back in and use that Comm Port Number for the M5Core2.I'd suggest starting with one of the Examples from the IDE:
File/Examples/M5Core2 (you may have to scroll al LONG way down). Make sure you can load one of the example files to get started. I'd suggest you look under "M5Unified".Try to do all of your development using
#include <M5Unified.h>
There may be some examples that have
#include <M5Core2.h>
but these are no longer supported. All of the support is going in the the M5Unified branch so they don't have to support so many other products.
I hope this helps.
Sir Michael
-
@SirMichael I have done all that. As I wrote, I did start from an example in the IDE. The program compiles fine and gets loaded onto the core2, which it would not do if I'd choosen the wrong com port. I've even posted the output the core2 sent to the serial console, which would not happen if I'd choosen the wrong port.
So no, your answer is not helpful, it mentions stuff I've done and described in my question. -
@jbruggem Your first post shows that
- you haven't configured Arduino to configure code for the M5Stack Core2 which uses a different core and pin config to a base esp32.
- The example you are using is not an M5Stack demo,
- Arduino is missing Libraries.
All these errors point back to not have the M5Stack Core2 board type selected.