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

    UIFlow2.0 Tab5

    UIFlow
    5
    11
    1.9k
    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.
    • H
      Handcannon
      last edited by

      Since the last 2 updates I can not get any thing to work on PortA. Relays, Lights any sensors. If I go back 2 updates and burn it, it all works fine.
      Did something change?

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

        Hello @Handcannon

        yes, I see that too. It seems that the latest versions (2.3.5 and 2.3.6) have power to port A disabled. E.g. port A has no power.

        Please find my example in the UIFlow2 Project Zone which manually turns on power to port A: M5Tab5_Enable_Ext5V_EnvIV_Test_UIFlow2.3.6

        I created an issue on github for this issue.

        Thanks
        Felix

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

        R 1 Reply Last reply Reply Quote 0
        • H
          Handcannon
          last edited by

          Thanks, that worked awesome. Good news I was half right in trying to turn it on. Bad news I was just half way right.
          Wonder why they turned it off?

          1 Reply Last reply Reply Quote 0
          • H
            Handcannon
            last edited by

            Tab5 still will not load and run a App from the menu. Any M5UI Apps I have in the menu list. Apps that have been made only in M5GFX will load and run from the Apps list menu. Any thoughts. Thanks in advance.

            felmueF K 2 Replies Last reply Reply Quote 0
            • felmueF
              felmue @Handcannon
              last edited by felmue

              Hello @Handcannon

              M5Tab5 UIFlow v2.3.6-hotfix solves the no power on port A issue.

              Thanks
              Felix

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

              R 2 Replies Last reply Reply Quote 0
              • K
                KaiWWW @Handcannon
                last edited by

                @Handcannon UiFlow2 is not responding when I press "RUN" after upgrade to v2.3.6 hotfix2. Any idea why it happens? Thank you!

                T 1 Reply Last reply Reply Quote 0
                • T
                  Tandu @KaiWWW
                  last edited by

                  Hi everyone, I flashed UIFlow 2.3.7 onto my Tab 5 using mburner. Afterwards, it starts up and the backlight is on. I can also access it from UIFlow via USB and Wi-Fi. However, it doesn't launch any programs after the successful transfer. What could be the problem? Nothing seems to be happening on the Tab 5. Thanks, Thomas

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    Tandu @Tandu
                    last edited by

                    When I flash back the demo, it works perfectly. Programs transferred with the Arduino IDE also work, only UIFlow 2 doesn't.

                    1 Reply Last reply Reply Quote 0
                    • R
                      RPI25 @felmue
                      last edited by

                      Hi @felmue
                      I was having the same issue with my Core 2 not powering Port A but my Nano C6 still works on V2.3.7 if that helps.
                      The screen, UI etc work on the Core 2 but the Port A just doesn't do anything.
                      Thanks.

                      1 Reply Last reply Reply Quote 0
                      • R
                        RPI25 @felmue
                        last edited by

                        @felmue
                        Ok I can now confirm that Core 2 V2.3.6 hotfix doesn't power port A so I am going back to V2.3.5 to check that - I think it still works.
                        Core 2:
                        V2.3.7 - Doesn't power port A (if that is the problem)
                        V2.3.6 hotfix - Doesn't power port A (if that is the problem)
                        V2.3.6 - Doesn't power port A (if that is the problem)

                        1 Reply Last reply Reply Quote 0
                        • R
                          RPI25 @felmue
                          last edited by

                          @felmue said in UIFlow2.0 Tab5:

                          Hello @Handcannon

                          yes, I see that too. It seems that the latest versions (2.3.5 and 2.3.6) have power to port A disabled. E.g. port A has no power.

                          Please find my example in the UIFlow2 Project Zone which manually turns on power to port A: M5Tab5_Enable_Ext5V_EnvIV_Test_UIFlow2.3.6

                          I created an issue on github for this issue.

                          Thanks
                          Felix

                          I tried recreating your M5Tab5 script for the Core 2 and got these results:
                          (I realise that the RGB Unit doesn't use I2C but for port A to work I think I need to set it up in the same way anyway.)
                          The code:

                          import os, sys, io
                          import M5
                          from M5 import *
                          import m5ui
                          import lvgl as lv
                          from unit import RGBUnit
                          from hardware import I2C
                          from hardware import Pin
                          import time
                          
                          
                          
                          page0 = None
                          switch0 = None
                          i2c0 = None
                          rgb_0 = None
                          
                          
                          bytearrayone = None
                          
                          
                          def setup():
                            global page0, switch0, i2c0, rgb_0, bytearrayone
                          
                            M5.begin()
                            Widgets.setRotation(1)
                            m5ui.init()
                            page0 = m5ui.M5Page(bg_c=0xffffff)
                            switch0 = m5ui.M5Switch(x=130, y=105, w=60, h=30, bg_c=0xe7e3e7, bg_c_checked=0x2196f3, circle_c=0xffffff, parent=page0)
                          
                            page0.screen_load()
                            bytearrayone = bytearray(1)
                            i2c0 = I2C(0, scl=Pin(33), sda=Pin(32), freq=100000)
                            i2c0.readfrom_mem_into(0x43, 0x03, bytearrayone)
                            # set PI4IO P2 (Ext5V enable) as output
                            print(hex(myByteArr[0]))
                            myByteArr[0] |= 0x04
                            print(hex(myByteArr[0]))
                            i2c0.writeto_mem(0x43, 0x03, bytearrayone)
                            i2c0.readfrom_mem_into(0x43, 0x05, bytearrayone)
                            # set PI4IO P2 (Ext5V enable) to high
                            print(hex(myByteArr[0]))
                            myByteArr[0] |= 0x04
                            print(hex(myByteArr[0]))
                            i2c0.writeto_mem(0x43, 0x05, bytearrayone)
                            time.sleep(1)
                            rgb_0 = RGBUnit((33, 32), 3)
                          
                          
                          def loop():
                            global page0, switch0, i2c0, rgb_0, bytearrayone
                            M5.update()
                            rgb_0.set_brightness(100)
                            if switch0.has_state(lv.STATE.CHECKED):
                              rgb_0.set_color(0, 0x6600cc)
                            else:
                              rgb_0.set_color(0, 0x000000)
                          
                          
                          if __name__ == '__main__':
                            try:
                              setup()
                              while True:
                                loop()
                            except (Exception, KeyboardInterrupt) as e:
                              try:
                                m5ui.deinit()
                                from utility import print_error_msg
                                print_error_msg(e)
                              except ImportError:
                                print("please update to latest firmware")
                          
                          

                          1st attempt:

                          E (725096) i2c: i2c driver install error
                          E (725128) i2c: i2c driver install error
                          E (725275) i2c: i2c driver install error
                          Traceback (most recent call last):
                            File "<stdin>", line 49, in <module>
                            File "<stdin>", line 25, in setup
                          OSError: [Errno 116] ETIMEDOUT
                          

                          2nd attempt:

                          E (740623) i2c: i2c driver install error
                          E (740655) i2c: i2c driver install error
                          
                          A fatal error occurred. The crash dump printed below may be used to help
                          determine what caused it. If you are not already running the most recent
                          version of MicroPython, consider upgrading. New versions often fix bugs.
                          
                          To learn more about how to debug and/or report this crash visit the wiki
                          page at: https://github.com/micropython/micropython/wiki/ESP32-debugging
                          
                          MPY version : v1.25.0-dirty on 2025-09-30
                          IDF version : v5.4.2-dirty
                          Machine     : M5STACK Core2 with ESP32(SPIRAM)
                          
                          Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
                          
                          Core  1 register dump:
                          PC      : 0x40166a09  PS      : 0x00060730  A0      : 0x800dc068  A1      : 0x3ffd92f0  
                          A2      : 0x00000000  A3      : 0x3f4329e7  A4      : 0x00000000  A5      : 0x00000000  
                          A6      : 0x00000001  A7      : 0x3ffd92f0  A8      : 0x00000074  A9      : 0x3ffc1090  
                          A10     : 0x00000000  A11     : 0x3ffd94b0  A12     : 0x00000000  A13     : 0x00000001  
                          A14     : 0x00000000  A15     : 0x00000004  SAR     : 0x00000020  EXCCAUSE: 0x0000001c  
                          EXCVADDR: 0x00000088  LBEG    : 0x400945b2  LEND    : 0x400945bd  LCOUNT  : 0x00000000  
                          
                          
                          Backtrace: 0x40166a06:0x3ffd92f0 0x400dc065:0x3ffd9330 0x400f5729:0x3ffd9350 0x400dc46d:0x3ffd9390 0x401ec3f5:0x3ffd93d0 0x401ec4bf:0x3ffd93f0 0x40087c62:0x3ffd9410 0x401e65a8:0x3ffd94b0 0x401ec3f5:0x3ffd9510 0x402161ac:0x3ffd9530 0x402161e9:0x3ffd9570 0x401ec3f5:0x3ffd9590 0x401ec479:0x3ffd95b0 0x402187a4:0x3ffd95e0 0x401ed36c:0x3ffd9660 0x4008739e:0x3ffd9680 0x401e65a8:0x3ffd9720 0x401ec3f5:0x3ffd9770 0x401ec4bf:0x3ffd9790 0x40087c62:0x3ffd97b0 0x401e65a8:0x3ffd9850 0x401ec3f5:0x3ffd9880 0x401ec40e:0x3ffd98a0 0x4021bbf6:0x3ffd98c0 0x4021beda:0x3ffd9950 0x401fde08:0x3ffd9990
                          
                          
                          
                          
                          ELF file SHA256: 1843f6d45
                          
                          Rebooting...
                          ets Jul 29 2019 12:21:46
                          
                          rst:0xc (SW_CPU_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:4340
                          load:0x40078000,len:15972
                          load:0x40080400,len:4
                          ho 8 tail 4 room 4
                          load:0x40080404,len:3656
                          entry 0x400805c0
                          
                                 _  __ _               
                           _   _(_)/ _| | _____      __
                          | | | | | |_| |/ _ \ \ /\ / /
                          | |_| | |  _| | (_) \ V  V / 
                           \__,_|_|_| |_|\___/ \_/\_/  V2.3.6-hotfix2
                          
                          E (2840) i2c: i2c driver install error
                          
                          1 Reply Last reply Reply Quote 0
                          • R RPI25 referenced this topic
                          • First post
                            Last post