忘れそうな内容をメモしています

電子工作とかプログラミングとか

MacでM5StickCにArduinoで書き込む際に「A fatal error occurred: Failed to connect to ESP32: Invalid head of packet (0x50) catarona」とエラーになった件

M5StickCの開発環境のmacにてOSをcatalinaにアップデートしたところ、Arduinoでソフトを書き込む際に「A fatal error occurred: Failed to connect to ESP32: Invalid head of packet (0x50) catarona」とエラーが発生
cuコマンドではM5StckCとシリアル通信できているのでArduino周りを疑い調べた結果以下の方法で解決しました

community.m5stack.com

#M5StickCとMacを繋いだ状態で以下実行
$wget https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/software/Updater_FW20200114_A2_BTV231
$chmod +x Updater_FW20200114_A2_BTV231
$./Updater_FW20200114_A2_BTV231

==================== M5 Serial Converter Firmware Updater ====================
    
    FW Version: FW20200114_A2

    This is only for update M5StickC or M5Atom Series USB Controller's Firmware 
, using it for any other purpose may cause damage to your devices.

    When you are using this software, make sure you have a reliable connection 
to your device. Any disruption during the process will cause the device 
not functioning.


                        NO WARRANTIES
To the extent permitted by applicable law, neither wsdot,
nor any person, either expressly or implicitly, warrants any aspect of
this software or program, including any output or results of this software
or program. Unless agreed to in writing. This software and program is
being provided "as is", without any warranty of any type or nature,
either express or implied, including, but not limited to, the implied
warranties of merchantability and fitness for a particular purpose,
and any warranty that this software or program is free from defects.
==========================================================================

Press enter to continue . . .


Detecting M5Stack products.
Find M5Stack products.
Kernel driver deteched.
Apply magic success.
Waiting for device in DFU mode...
Find M5Stack device in DFU mode.
Claim interface success.
Starting flash routine.
Sending Stage1...
Reading Config...
BTVER: V2.31
Writing Magic...A: 0x77, B: 0xc9
Erasing Chip...
Unpacking payload...
Verifying the payload...
Packing the payload...
Start sending new firmware...
Sending to device, 4032/4032
Start verifying new firmware...
Sending to device, 4032/4032
Firmware verified, end flashing.
Resetting to run new firmware.
Have Fun :p