🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    core2 not working

    Arduino
    3
    4
    28
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jbruggem
      last edited by

      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:46

      rst: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 0x400805f0

      and 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 ?

      1 Reply Last reply Reply Quote 0
      • S
        SirMichael
        last edited by

        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_board

        Make 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

        J 1 Reply Last reply Reply Quote 1
        • J
          jbruggem @SirMichael
          last edited by

          @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.

          ajb2k3A 1 Reply Last reply Reply Quote 0
          • ajb2k3A
            ajb2k3 @jbruggem
            last edited by

            @jbruggem Your first post shows that

            1. you haven't configured Arduino to configure code for the M5Stack Core2 which uses a different core and pin config to a base esp32.
            2. The example you are using is not an M5Stack demo,
            3. Arduino is missing Libraries.

            All these errors point back to not have the M5Stack Core2 board type selected.

            UIFlow, so easy an adult can learn it!
            If I don't know it, be patient!
            I've ether not learned it or am too drunk to remember it!
            Author of the WIP UIFlow Handbook!
            M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

            1 Reply Last reply Reply Quote 1
            • First post
              Last post