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

    JavaScript error in M5Burner

    Bug Report
    5
    9
    14.2k
    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.
    • D
      djw082
      last edited by djw082

      What device are you using?
      M5Stack Gray (purchae date 1/14/2021) and Atom Matrix

      What firmware are you using? how did you burn the firmware into the device?
      version 1.7.2

      Version of UIFlow you are using
      M5Burner Version 2.2.7
      UIFlow Version 1.0.14

      PROBLEM 1:
      Whenever I click the configuration button in M5Burner, I get the attached error message. 0_1612212296026_m5burner_error.png

      PROBLEM 2:
      (this is less of an issue than problem 1) the M5Burner screen will not resize property to my laptop resolution (which is only 1366x768) the minimum width appears to be greater than 1366.

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

        What OS are you using?
        Have you deleted and reinstalled M5 Burner ?
        Have you downloaded the firmware before burning?
        Have you erased the device before writing?

        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!

        D 1 Reply Last reply Reply Quote 0
        • D
          djw082 @ajb2k3
          last edited by

          @ajb2k3 Thank you for responding.

          Here is the additional information you requested:

          OS is Linux Mint Version 20.1 / Ulyssa (based on Ubuntu 20.04) - kernel 5.4.0-65

          I just tried the following again:
          Downloaded new version of M5Burner_Linux.zip
          Extracted to ~/Desktop/m5stack/M5Burner_Linux
          cd ~/Desktop/m5stack/M5Burner_Linux
          run the command ./M5Burner

          M5Burner app opens
          Select COM: /dev/ttyUSB0
          Baudrate: 75000 (M5 Atom connected)
          Select ATOM on the left-hand side of the window
          Click the Download firmware button for the UIFLOW(MATRIX)
          Download Completes successfully

          Select Erase Flash
          Then I get the JavaScript Error Message

          Select the Configuration Button
          Then I get the same JavaScript Error Message

          1 Reply Last reply Reply Quote 0
          • D
            djw082
            last edited by

            If I perform the following from the command line:
            M5Burner_Linux/packages/tools$ python3 esptool.py erase_flash

            I am able to erase flash. However, if I simply run
            $esptool erase_flash

            I get an error saying:
            A fatal error occurred: ESP32 ROM does not support function erase_flash.

            My installed version esptool was 2.8 but the version in the M5Burner.zip appears to be 2.5.0. Is there maybe some issue with version 2.8 of esptool? The 2.8 version is what is installed if apt-get instal esptool is used.

            I tried using pip3 install esptool
            This has installed esptool v3.0 into
            ~/.local/lib/python3.8/site-packages

            From this folder I can run python3 esptool.py erase_flash and it was able to erase the flash from the command line using the V3.0 esptool.

            I ran the following to remove esptool v2.8:
            sudo apt autoremove esptool

            However, I am still getting the Javscript error when I click the Erase flash button inside the M5Burner App.

            I have tried downloading the MACOS version from the FlowUI as I saw the Linux Instructions said to do this (at https://github.com/m5stack/m5-docs/blob/master/docs/en/related_documents/how_to_burn_firmware.md). However, I do not see any folder called firmware within the Resources. If I do a search there no flash.sh file.

            1 Reply Last reply Reply Quote 0
            • D
              djw082
              last edited by

              I CAN flash using the following from the command line:
              /M5Burner_Linux/packages/tools$ python3 esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 750000 --before default_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 /home/david/Desktop/m5stack/M5Burner_Linux/packages/fw/atom/UIFlow_Matrix-v1.7.2.bin

              I can then connect in UIFlow if I hold the button on the Atom while plugging into USB.

              However, I still cannot get the M5Burner App to work. I still get the Javascript error when I click the Configruation Button.

              1 Reply Last reply Reply Quote 0
              • V
                vlad29
                last edited by

                I got the same error, it was due to python command doesn't was valid.

                I had to install "python-is-python3" package (sudo apt-get install python-is-python3) because the app tries using python and not python3.

                I hope it works.
                (making ln to python from python3 should work)

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

                  @vlad29 said in JavaScript error in M5Burner:

                  I got the same error, it was due to python command doesn't was valid.

                  I had to install "python-is-python3" package (sudo apt-get install python-is-python3) because the app tries using python and not python3.

                  I hope it works.
                  (making ln to python from python3 should work)

                  Thank you @vlad29 this is another of those python/python3 issues caused by badly setup python3 installs.

                  You need to look up how to set the enviromental variables in you operating system to stop the os running python 2 commands instead of python3 commands.

                  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!

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    ScottKnight @ajb2k3
                    last edited by

                    @ajb2k3 said in JavaScript error in M5Burner:

                    @vlad29 said in JavaScript error in M5Burner:

                    I got the same error, it was due to python command doesn't was valid.

                    I had to install "python-is-python3" package (sudo apt-get install python-is-python3) because the app tries using python and not python3.

                    I hope it works.
                    (making ln to python from python3 should work)

                    Thank you @vlad29 this is another of those python/python3 issues caused by badly setup python3 installs.

                    You need to look up how to set the enviromental variables in you operating system to stop the os running python 2 commands instead of python3 commands.

                    In the Chromebook Crostini shell (Ubuntu-based VM), I was getting the exact error in this thread. There is no python-is-python3 package available, but the symlink solved it perfectly:
                    ln -s /usr/bin/python3 /usr/bin/python

                    1 Reply Last reply Reply Quote 0
                    • L
                      loefchen
                      last edited by

                      I have similar Problems.

                      Burner V2.2.8
                      M5Paper V1.7.3.1 and 1.7.4

                      0_1617949687207_Bildschirmfoto 2021-04-09 um 07.49.07.png

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