M5StickC/ATOM on MacOS Catalina can't upload/ ESP32: Timed out waiting for packet header solution (Solved)

  • I'm trying to apply firmware update on Catalina and having this error message:

    Detecting M5Stack products.
    Find M5Stack products.
    Kernel driver deteched.
    Apply magic success.

    Fail to cast magic stage 2, please contact vendor
    Wating for device in DFU mode..................................

    Any idea?

  • @climbingrose I have same problem. Have you found any solution?

  • @climbingrose I have that same problem as well. It would be nice if @m5stack could support their products in a better manner and give us a good receipt to fix the issues.

  • M5Stack

    @finnsen if you try these solution still can't solve the problem. you could contact the store

  • @m5stack What do you mean by contacting the store, how can they help me resolve the issue? Or do you mean to return the product?

  • M5Stack

    @finnsen I didn't catch what you were trying to flash to your device, if you are trying to update uiflow firmware on the device with M5Burner and it fails, have you tried using esptool to flash firmware? if you were uploading an arduino program there are known issues with all esp32 devices on catalina not just m5stack https://github.com/arduino/Arduino/issues/9438 I did make a video a while back ( https://www.youtube.com/watch?v=MTCjKhVKOto) about using m5stack devices on catalina and I didn't seem to come across any of the issues you mentioned, perhaps the issues are with a later revision of catalina, I'll update and take a look when I get chance.

  • M5Stack

    @finnsen I mean, If above these solutions still cannot be solved, even if change the computer system(use win10) , use the different flash tool, setup low upload speed(baud 115200), it cannot be solved, then there may be a product problem. Please contact the store for a replacement. and, we recommend that you use the official version of the operating system, not the preview/beta version. In some preview versions, the driver will not work properly

  • @lukasmaximus Thank you for your video. I did not know about setting the device in USB mode as you video explained. I am now getting things to work. Thanks. :)

  • @m5stack My issue where not knowing about setting the Atom Lite in USB mode. And I got confused about the USB firmware upgrade that you described in your initial post as I get the error message that the Update program is not able to set the device in DFU mode. Anyways, things seems to work. Thank you.

  • @m5stack: I finally fixed "my" problem being not able to "see" the Atom Matrix on a mac with 10.15.x!!! At first I suspected a Wacom tablet driver which interferes with my serial port, but at the end it was an old FTDI driver helper named D2xxHelper. I figured out the problem by issuing this command

    sudo ioreg -lirc IOUSBHostInterface

    It gives detailed information on the USB connections and its drivers. For the "M5 Serial Converter" it stated the the D2xxHelper as driver (helper). By removing this old driver and rebuilding the kernel cache I was finally able to "see" my Atom Matrix on Catalina. Enclosed my commands:

    sudo rm -rf /Library/Extensions/D2xxHelper.kext
    sudo kextcache -i /

    After this I've rebooted my mac.