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

    M5 Stack Core2 Firmware Stops Working on Reboot

    PRODUCTS
    2
    2
    2.7k
    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.
    • C
      codewitch
      last edited by

      If I unplug my core2 from USB and let the battery go, when I turn it back on my video and sound no longer works, but my firmware is still running. I can tell because it's dumping to the serial port.
      I can "fix" it by using M5 Burner, burning the factory firmware, and then reburning my hardware. This isn't usable like this.
      Is my unit defective? What gives?
      Here's a reproduction. It must be compiled under Platform IO.
      https://github.com/codewitch-honey-crisis/empty_m5stack_core2

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        Hello @codewitch

        good news - your M5Core2 most likely is not defective. For me the issue is happening independently of whether M5Core2 is running from USB or battery. It always happens after a complete power loss. The reason it is not working as expected is that for some functions dealing with voltages you declared the parameter as float but then call them with big non float values. Here is what I changed in m5core2_power.cpp to make it work:

        //--fm  Wire1.begin(22,23);
          Wire1.begin(21,22);
        
        //--fm  mcu_voltage(3350);
          mcu_voltage(3.350);
          
        //--fm  lcd_voltage(2800);
          lcd_voltage(2.800);
          
        //--fm  ldo_voltage(2, 3300);  //Periph power voltage preset (LCD_logic, SD card)
          ldo_voltage(2, 3.300);  //Periph power voltage preset (LCD_logic, SD card)
          
        //--fm  ldo_voltage(3, 2000);  //Vibrator power voltage preset
          ldo_voltage(3, 2.000);  //Vibrator power voltage preset
        

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

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