M5Core2 icon indicating copy to clipboard operation
M5Core2 copied to clipboard

CORE2 stack overflow

Open fbritop opened this issue 1 year ago • 6 comments

I had no trouble with previous devices from CORE2 (2 test units), I did order 20 units to proceed, but none of them work. I have donde even a very simple Arduino Program with no luck

//#include <M5Core2.h>
//#include <M5Unified.h>
void setup() {
  Serial.begin(115200);
  //M5.begin();
  Serial.println("f(setup)");

}
void loop() {
  //M5.update();
}

__ It thorws this exception:

ERROR A stack overflow in task IDLE1 has been detected. abort() was called at PC 0x40088bfc on core 1

ELF file SHA256: 0000000000000000

Backtrace: 0x40088974:0x3ffba560 0x40088be5:0x3ffba580 0x40088bfc:0x3ffba5a0 0x4008a4de:0x3ffba5c0 0x4008be74:0x3ffba5e0 0x4008be2a:0xa5a5a5a5

Rebooting... __

fbritop avatar Mar 26 '23 22:03 fbritop

Obviously your simplest program is wrong, you did not include the header file Arduino.h

You need to add #include <Arduino.h> at the top

Tinyu-Zhao avatar Apr 02 '23 14:04 Tinyu-Zhao

You can use M5Burner to download the M5Core2 factory test program to check if the M5Core2 is damaged.

Tinyu-Zhao avatar Apr 02 '23 14:04 Tinyu-Zhao

Thanks But the problem relies that m5 boards library after an update is showing 2 boards. One of which does not work

You should check the board definition file for Arduino I think

Cheers

On Sun, Apr 2, 2023, 10:54 Tinyu @.***> wrote:

Obviously your simplest program is wrong, you did not include the header file Arduino.h

You need to add #include <Arduino.h> at the top

— Reply to this email directly, view it on GitHub https://github.com/m5stack/M5Core2/issues/126#issuecomment-1493363371, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXHTHLUYOW2B7M3J374JQLW7GHI7ANCNFSM6AAAAAAWIOEYHY . You are receiving this because you authored the thread.Message ID: @.***>

fbritop avatar Apr 02 '23 14:04 fbritop

In addition, M5Core2 and M5Unified cannot be used together, because they are both libraries that control the host device and can cause conflicts

M5Core2 library is specifically for M5Core2. M5Unified can basically control all the M5 host devices.

Tinyu-Zhao avatar Apr 02 '23 15:04 Tinyu-Zhao

[image: image.png]

On Sun, Apr 2, 2023 at 11:45 AM Tinyu @.***> wrote:

In addition, M5Core2 and M5Unified cannot be used together, because they are both libraries that control the host device and can cause conflicts

M5Core2 library is specifically for M5Core2. M5Unified can basically control all the M5 host devices.

— Reply to this email directly, view it on GitHub https://github.com/m5stack/M5Core2/issues/126#issuecomment-1493375937, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXHTHL5FUR7NTY5WZJ6N3LW7GNH3ANCNFSM6AAAAAAWIOEYHY . You are receiving this because you authored the thread.Message ID: @.***>

-- Felipe Eduardo Brito Pearson Ingeniero Informático

fbritop avatar Apr 02 '23 21:04 fbritop

[image: image.png]

On Sun, Apr 2, 2023 at 11:45 AM Tinyu @.***> wrote:

In addition, M5Core2 and M5Unified cannot be used together, because they are both libraries that control the host device and can cause conflicts

M5Core2 library is specifically for M5Core2. M5Unified can basically control all the M5 host devices.

— Reply to this email directly, view it on GitHub https://github.com/m5stack/M5Core2/issues/126#issuecomment-1493375937, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXHTHL5FUR7NTY5WZJ6N3LW7GNH3ANCNFSM6AAAAAAWIOEYHY . You are receiving this because you authored the thread.Message ID: @.***>

-- Felipe Eduardo Brito Pearson Ingeniero Informático

I can't see anything.

Tinyu-Zhao avatar Apr 02 '23 23:04 Tinyu-Zhao