Sadly I have also experienced this issue. My issue started when I upgraded my MacBook pro with an M1 processor to the Sonoma operating system. Prior to the upgrade I had successfully compiled a program using the arm Keill studio using C++. I downloaded the binary file and it run it on the MBED LPC1768 board with no issues. Next I upgraded the Mac Os to the Sonoma operating system version 14.x. After the update on the computer I recompiled the C++ program only changing a comment. I loaded the binary file to the Mbed using a drag and drop as I had prior to the update. This time the Mbed board did not run the code.
I then tied the same thing on a windows system and there were no issues at all. I also tried the same compile again on an older MacBook and no issues were experienced.
I have also used the binary file compiled on the M1 computer and copied it to the iCloud, Using the older MacBook I dragged it the binary file from the iCloud to the Mbed board and it ran with no issues.
If I take the board that was loaded from the M1 computer and then connect it to a non M1 computer the board still does not run.
So far it looks like something has changed in the Somona Update that does something to the board when writing to it using the USB C. The serial port communications work with no issues on a working Mbed board as long at the binary file was sent to the board from a windows computer or a computer that does not have the Sonoma operating system.
I have not had time to talk to Apple support regarding this issue.
Sadly any MacBook computer that has the M series chip it can not have the OS downgraded.
I am looking forward to seeing this issue resolved
Bill Vickerman
bvickerman@comcast.net