Mac crashing on sending sketch

My first experiments with Arduino have hit a new roadblock.
I am using:

  • mac M1, OS 14.6.1
  • Arduino Plug and make kit board and modulinos
  • Game controller template

Problem:
When sending the code (sketch) via USB to the connected device, my Mac crashes and reboots.
Note:

  • I have successfully sent a sketch before (eco watch template)
  • I can not send the sketch via the cloud (using a free account)
  • I had to re-install the ArduinoCloudAgent on opening up the Aduino Cloud
  • In my search for a solution, I installed a firmware update through the offline desktop Arduino IDE

Error message Arduino sketch console (after verifying):
/usr/local/bin/arduino-cli compile --fqbn arduino:renesas_uno:unor4wifi --build-cache-path /tmp --output-dir /tmp/3458202095/build --build-path /tmp/arduino-build-F686332260C0E8FAF504E01FF37A1E15 /tmp/3458202095/game_controller_oct29a
[info] Sketch uses 129060 bytes (49%) of program storage space. Maximum is 262144 bytes.
[info] Global variables use 13456 bytes (41%) of dynamic memory, leaving 19312 bytes for local variables. Maximum is 32768 bytes.

Restarting in bootloader mode
Flashing with command:/Users/karenvanderborght/.arduino-create/arduino/bossac/1.9.1-arduino5/bossac -d --port=cu.usbmodem2101 -U -e -w /var/folders/vj/hjp4l6tj2199gz3z978t5kk00000gn/T/arduino-create-agent3389176745/game_controller_oct29a.bin -R
No device found on cu.usbmodem2101
Executing command: exit status 1

crash report mac started with panic
(For some reason, I can not retrieve it in the console; the Mac froze while sending it to Apple.)

My 5 cents
I have been searching and found this had to do with the Arduino resetting the USB connection on uploading the sketch. Or does it?

I am not sure how to problem solve this.Tips welcome.

Start with compiling then uploading the blink sketch. If that works your problem is NOT with the Mac, USB cable, Arduino it is the 'kit' (I know nothing about those)
Turn on Verbose and post error log IF it fails between code tags

A firmware for what ??
Did you install any serial driver at all?
Try a different USB cable and make sure nothing at all is connected on the arduino

Do you have a link to your kit?

1 Like

O my not sure.
I did the steps too quickly and should have taken screenshots to be able to debug correctly. I downloaded the latest arduino IDE 2.3.3
Following these instructions

Note: the mac crashed before that install.

The kit is a beginner-friendly one sold by Arduino:
https://store.arduino.cc/products/plug-and-make-kit

After crashing, the first version of the sketch still worked (in the dashboard), which was the buttons modulino.

The second modulino is the movement one, and on uploading the sketch with its updated code for the modulino, the Mac crashed.

I can also try the basic blink sketch and see if it crashes the Mac.

Yes try the blink sketch, that will rule out the Mac board and cable as a problem.

seems to me the IDE is compiling fine

and according to @imagefatale the Mac crashes with panic when

which seems to indicate that some USB to Serial driver was put in motion to start uploading the code to cu.usbmodem2101 and that triggered the crash

➜ I would double check any unneeded installation of an old Serial driver on the Mac, as I think the UNO R4 WiFi does not need any and will run out of the box on a Mac.

so do I get right that this was a firmware update for the UNO R4 WiFi and that install went fine ? if so, that means the Mac, the IDE, the cable and the USB works fine.

When. you say the Mac crashes, is that through the "offline desktop Arduino IDE" or using the cloud editor and some sort of agent on the Mac within the browser to try to control the USB to Serial link ?

Thanks for the detailed answers by checking the error logs.

The Mac crashes when using the cloud editor using a USB cable. I have not tried copying and pasting the template in the Arduino desktop IDE, as I prefer to use the cloud editor for now.

OK - I'm moving the discussion into the appropriate category. (there was another discussion - Arduino Cloud Agent and Mac OS Sequoia but not with Sonoma)

The cloud editor needs some underlying magic / plug in so that the page in the web browser is able to control the Serial line.

I don't use it, worth double checking the authorisations for that plugin

Okay, thanks. I just tried again, and now I still get the same error in the console, but my Mac is not crashing this time (I upgraded to OS Sequoia 15.1 before re-trying). I am not sure what plug-in or magic :sweat_smile: you refer to, but hopefully, someone knows.

the official name is the cloud agent

o yes i have the cloud agent installed.

then double check the other discussion that was referring to Sequoia

Thanks, I just checked. My Mac recognizes the device via the USB cable. (checking in settings, system information, hardware, refreshed USB hardware list).

I tried to upload the sketch via the USB cable again, and now the Mac crashes again

Problem report OS:

panic(cpu 0 caller 0xfffffe0023d35bcc): Kernel data abort. at pc 0xfffffe0025168e68, lr 0xa0807e0025168ea4 (saved state: 0xfffffe8e20957570)
	  x0:  0x0000000000000000 x1:  0xfffffe0026d91640  x2:  0xfffffe24ee53acc0  x3:  0x00000000000000e0
	  x4:  0xfffffe24ee53ad40 x5:  0x0000000000000000  x6:  0x19b6fe0023c28d0c  x7:  0xfffffe00229ef790
	  x8:  0x0000000000000000 x9:  0xfffffe24ef4ca710  x10: 0x00000000000002a0  x11: 0x0000000000000001
	  x12: 0x0008000000000000 x13: 0xfffffe0026d87b40  x14: 0x0000000000000020  x15: 0xfffffe0026d87b40
	  x16: 0xfffffe00229ef1c8 x17: 0x1ba6fe00229ef1c8  x18: 0x0000000000000000  x19: 0xfffffe2021b15b60
	  x20: 0xfffffe8e20957988 x21: 0xfffffe2021b15b60  x22: 0x0000000000000000  x23: 0x0000000000000001
	  x24: 0x75bcfe00250fc720 x25: 0x0000000000000000  x26: 0xfffffe8e20957a3e  x27: 0xfffffe24f27c12a0
	  x28: 0xfffffe2022796138 fp:  0xfffffe8e20957940  lr:  0xa0807e0025168ea4  sp:  0xfffffe8e209578c0
	  pc:  0xfffffe0025168e68 cpsr: 0x80401208         esr: 0x0000000096000006  far: 0x0000000000000000

Debugger message: panic
Memory ID: 0x6
OS release type: User
OS version: 24B83
Kernel version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:15 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6000
Fileset Kernelcache UUID: A22C571B61C24E448B9EFFEEFF5F8CC7
Kernel UUID: 8FF94A3F-7153-35AD-8150-EC096C2596DE
Boot session UUID: B8097DCA-215A-4328-B2FA-2B8FA60C5082
iBoot version: iBoot-11881.41.5
secure boot?: YES
roots installed: 0
Paniclog version: 14
KernelCache slide: 0x000000001ad4c000
KernelCache base:  0xfffffe0021d50000
Kernel slide:      0x000000001ad54000
Kernel text base:  0xfffffe0021d58000
Kernel text exec slide: 0x000000001c460000
Kernel text exec base:  0xfffffe0023464000
mach_absolute_time: 0x68e5a5204ed
Epoch Time:        sec       usec
  Boot    : 0x67213b36 0x00054d0d
  Sleep   : 0x6728e175 0x00044591
  Wake    : 0x6728e20a 0x0003c3fc
  Calendar: 0x67290b3d 0x0002fd57

Zone info:
  Zone map: 0xfffffe1022684000 - 0xfffffe3022684000
  . VM    : 0xfffffe1022684000 - 0xfffffe14ef350000
  . RO    : 0xfffffe14ef350000 - 0xfffffe1688ce8000
  . GEN0  : 0xfffffe1688ce8000 - 0xfffffe1b559b4000
  . GEN1  : 0xfffffe1b559b4000 - 0xfffffe2022680000
  . GEN2  : 0xfffffe2022680000 - 0xfffffe24ef34c000
  . GEN3  : 0xfffffe24ef34c000 - 0xfffffe29bc018000
  . DATA  : 0xfffffe29bc018000 - 0xfffffe3022684000
  Metadata: 0xfffffe10001d4000 - 0xfffffe10081d4000
  Bitmaps : 0xfffffe10081d4000 - 0xfffffe100aef0000
  Extra   : 0 - 0

TPIDRx_ELy = {1: 0xfffffe24ed5e9800  0: 0x0000000000000000  0ro: 0x000000016fe7f0e0 }
CORE 0 PVH locks held: None
CORE 1 PVH locks held: None
CORE 2 PVH locks held: None
CORE 3 PVH locks held: None
CORE 4 PVH locks held: None
CORE 5 PVH locks held: None
CORE 6 PVH locks held: None
CORE 7 PVH locks held: None
CORE 8 PVH locks held: None
CORE 9 PVH locks held: None
CORE 0 is the one that panicked. Check the full backtrace for details.
CORE 1: PC=0xfffffe0023474ef8, LR=0xfffffe0023474ef8, FP=0x0000000000000000
CORE 2: PC=0xfffffe00234fea68, LR=0xfffffe00234fea68, FP=0xfffffe8e20ae7ed0
CORE 3: PC=0xfffffe00234fea68, LR=0xfffffe00234fea68, FP=0xfffffe8e20efbed0
CORE 4: PC=0xfffffe00234fea68, LR=0xfffffe00234fea68, FP=0xfffffe8e20497ed0
CORE 5: PC=0xfffffe00234fea68, LR=0xfffffe00234fea68, FP=0xfffffe8e20d13ed0
CORE 6: PC=0xfffffe00234fea68, LR=0xfffffe00234fea68, FP=0xfffffe8e1fb43ed0
CORE 7: PC=0xfffffe00234fea68, LR=0xfffffe00234fea68, FP=0xfffffe8e2059fed0
CORE 8: PC=0xfffffe00234fea68, LR=0xfffffe00234fea68, FP=0xfffffe8e205e7ed0
CORE 9: PC=0xfffffe00234fea68, LR=0xfffffe00234fea68, FP=0xfffffe8e1f1a7ed0
Compressor Info: 14% of compressed pages limit (OK) and 13% of segments limit (OK) with 1 swapfiles and OK swap space
Panicked task 0xfffffe2023545758: 3432 pages, 18 threads: pid 1937: Arduino_Cloud_Ag
Panicked thread: 0xfffffe24ed5e9800, backtrace: 0xfffffe8e20956cb0, tid: 25272
		  lr: 0xfffffe00234c18f4  fp: 0xfffffe8e20956d40
		  lr: 0xfffffe002361a020  fp: 0xfffffe8e20956db0
		  lr: 0xfffffe0023618408  fp: 0xfffffe8e20956e70
		  lr: 0xfffffe002346bb88  fp: 0xfffffe8e20956e80
		  lr: 0xfffffe00234c11f8  fp: 0xfffffe8e20957250
		  lr: 0xfffffe0023d2b2f8  fp: 0xfffffe8e20957270
		  lr: 0xfffffe0023d35bcc  fp: 0xfffffe8e209573f0
		  lr: 0xfffffe0023619e88  fp: 0xfffffe8e20957490
		  lr: 0xfffffe002361844c  fp: 0xfffffe8e20957550
		  lr: 0xfffffe002346bb88  fp: 0xfffffe8e20957560
		  lr: 0xfffffe0025168ea4  fp: 0xfffffe8e20957940
		  lr: 0xfffffe00250fc798  fp: 0xfffffe8e209579b0
		  lr: 0xfffffe0023c28e00  fp: 0xfffffe8e20957a20
		  lr: 0xfffffe00250fc6cc  fp: 0xfffffe8e20957a50
		  lr: 0xfffffe00251baaf0  fp: 0xfffffe8e20957a80
		  lr: 0xfffffe0025dcc030  fp: 0xfffffe8e20957ac0
		  lr: 0xfffffe0025dca8f0  fp: 0xfffffe8e20957b00
		  lr: 0xfffffe0025dc70ec  fp: 0xfffffe8e20957b30
		  lr: 0xfffffe0023706abc  fp: 0xfffffe8e20957ba0
		  lr: 0xfffffe00236e7964  fp: 0xfffffe8e20957c20
		  lr: 0xfffffe00236e7800  fp: 0xfffffe8e20957c80
		  lr: 0xfffffe00239c0660  fp: 0xfffffe8e20957d20
		  lr: 0xfffffe00239c1c70  fp: 0xfffffe8e20957df0
		  lr: 0xfffffe0023b3cb24  fp: 0xfffffe8e20957e50
		  lr: 0xfffffe00236184d4  fp: 0xfffffe8e20957f10
		  lr: 0xfffffe002346bb88  fp: 0xfffffe8e20957f20
		  lr: 0xfffffe002346bb50  fp: 0x0000000000000000
      Kernel Extensions in backtrace:
         com.apple.iokit.IOSerialFamily(11.0)[12E8B179-93B0-3F76-AFBD-CB8BE13B2EDB]@0xfffffe0025dc68a0->0xfffffe0025dcead3
         com.apple.driver.usb.cdc(5.0)[E79CDF24-A1B2-3BC2-8374-980F09CE00CF]@0xfffffe00251671a0->0xfffffe0025169567
            dependency: com.apple.driver.usb.AppleUSBHostCompositeDevice(1.2)[5A6A2782-4CAB-366C-848B-736DD3DC0120]@0xfffffe0026299240->0xfffffe002629c8ff
            dependency: com.apple.driver.usb.networking(5.0.0)[FF987C0C-D3A6-35E5-9A65-5BA0CE7BFBD4]@0xfffffe00251ae7b0->0xfffffe00251b1963
            dependency: com.apple.iokit.IOUSBHostFamily(1.2)[BEFB3B4B-AADA-3F7A-9937-153182F6A700]@0xfffffe0026134b40->0xfffffe00261d5147
         com.apple.driver.usb.serial(6.0)[D2D72F8D-301B-365C-B26F-140DA41F425E]@0xfffffe00251b6ac0->0xfffffe00251bc483
            dependency: com.apple.iokit.IOSerialFamily(11)[12E8B179-93B0-3F76-AFBD-CB8BE13B2EDB]@0xfffffe0025dc68a0->0xfffffe0025dcead3
            dependency: com.apple.iokit.IOUSBHostFamily(1.2)[BEFB3B4B-AADA-3F7A-9937-153182F6A700]@0xfffffe0026134b40->0xfffffe00261d5147
         com.apple.driver.usb.cdc.acm(5.0)[696072EC-6C46-351E-B760-73DBC89778FB]@0xfffffe00250fae70->0xfffffe00250fdc2f
            dependency: com.apple.driver.usb.AppleUSBHostCompositeDevice(1.2)[5A6A2782-4CAB-366C-848B-736DD3DC0120]@0xfffffe0026299240->0xfffffe002629c8ff
            dependency: com.apple.driver.usb.cdc(5.0.0)[E79CDF24-A1B2-3BC2-8374-980F09CE00CF]@0xfffffe00251671a0->0xfffffe0025169567
            dependency: com.apple.driver.usb.networking(5.0.0)[FF987C0C-D3A6-35E5-9A65-5BA0CE7BFBD4]@0xfffffe00251ae7b0->0xfffffe00251b1963
            dependency: com.apple.driver.usb.serial(6.0.0)[D2D72F8D-301B-365C-B26F-140DA41F425E]@0xfffffe00251b6ac0->0xfffffe00251bc483
            dependency: com.apple.iokit.IOSerialFamily(11)[12E8B179-93B0-3F76-AFBD-CB8BE13B2EDB]@0xfffffe0025dc68a0->0xfffffe0025dcead3
            dependency: com.apple.iokit.IOUSBHostFamily(1.2)[BEFB3B4B-AADA-3F7A-9937-153182F6A700]@0xfffffe0026134b40->0xfffffe00261d5147

last started kext at 7148726740658: com.apple.driver.usb.cdc.ecm	5.0.0 (addr 0xfffffe002240ddd0, size 2532)
loaded kexts:
com.apple.filesystems.smbfs	6.0
com.apple.filesystems.autofs	3.0
com.apple.driver.AppleTopCaseHIDEventDriver	8410.3
com.apple.driver.AppleBiometricServices	1
com.apple.driver.CoreKDL	1
com.apple.driver.DiskImages.ReadWriteDiskImage	493.0.0
com.apple.driver.DiskImages.UDIFDiskImage	493.0.0
com.apple.driver.DiskImages.RAMBackingStore	493.0.0
com.apple.driver.DiskImages.FileBackingStore	493.0.0
com.apple.driver.AppleUSBDeviceNCM	5.0.0
com.apple.driver.SEPHibernation	1
com.apple.driver.AppleFileSystemDriver	3.0.1
com.apple.nke.l2tp	1.9
com.apple.filesystems.tmpfs	1
com.apple.filesystems.nfs	1
com.apple.filesystems.lifs	1
com.apple.filesystems.apfs	2313.41.1
com.apple.IOTextEncryptionFamily	1.0.0
com.apple.filesystems.hfs.kext	674
com.apple.security.BootPolicy	1
com.apple.BootCache	40
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib	1.0.0
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless	1.0.0d1
com.apple.driver.AppleSmartBatteryManager	161.0.0
com.apple.driver.AppleThunderboltIP	4.0.3
com.apple.driver.AppleALSColorSensor	1.0.0d1
com.apple.driver.AppleAOPVoiceTrigger	400.40
com.apple.driver.ApplePMP	1
com.apple.driver.AppleSmartIO2	1
com.apple.driver.AppleCS42L84Audio	810.2
com.apple.AppleEmbeddedSimpleSPINORFlasher	1
com.apple.driver.AppleSN012776Amp	810.2
com.apple.driver.AppleT6000SOCTuner	1
com.apple.driver.AppleT6000CLPCv3	1
com.apple.driver.AppleT6000PMGR	1
com.apple.driver.AppleS8000DWI	1.0.0d1
com.apple.driver.AppleS5L8960XNCO	1
com.apple.driver.AppleEventLogHandler	1
com.apple.driver.ApplePMPFirmware	1
com.apple.driver.AppleMCDP29XXUpdateSupport	1
com.apple.driver.AppleDPDisplayTCON	1
com.apple.driver.AppleInterruptControllerV2	1.0.0d1
com.apple.driver.AppleProResHW	426.1
com.apple.driver.AppleJPEGDriver	7.1.5
com.apple.driver.AppleAVD	807
com.apple.driver.AppleMobileDispT600X-DCP	140.0
com.apple.driver.AppleAVE2	803.36.1
com.apple.driver.AppleSamsungSerial	1.0.0d1
com.apple.driver.AppleSerialShim	1
com.apple.AGXG13X	322.10
com.apple.driver.AppleS8000AES	1
com.apple.driver.usb.AppleSynopsysUSB40XHCI	1
com.apple.driver.AppleT8110DART	1
com.apple.driver.AppleBluetoothModule	1
com.apple.driver.AppleBCMWLANBusInterfacePCIe	1
com.apple.driver.AppleS5L8920XPWM	1.0.0d1
com.apple.driver.AudioDMAController-T600x	400.97
com.apple.driver.AppleT6000DART	1
com.apple.driver.AppleSPIMC	1
com.apple.driver.AppleS5L8940XI2C	1.0.0d2
com.apple.driver.AppleT6000	1
com.apple.driver.AppleSDXC	3.5.3
com.apple.driver.AppleM68Buttons	1.0.0d1
com.apple.iokit.IOUserEthernet	1.0.1
com.apple.driver.usb.AppleUSBUserHCI	1
com.apple.iokit.IOKitRegistryCompatibility	1
com.apple.iokit.EndpointSecurity	1
com.apple.driver.AppleDiskImages2	379.0.11
com.apple.AppleSystemPolicy	2.0.0
com.apple.kec.InvalidateHmac	1
com.apple.kec.AppleEncryptedArchive	1
com.apple.driver.usb.cdc.ecm	5.0.0
com.apple.driver.usb.cdc.acm	5.0.0
com.apple.driver.usb.serial	6.0.0
com.apple.driver.usb.IOUSBHostHIDDevice	1.2
com.apple.driver.usb.cdc	5.0.0
com.apple.driver.AppleUSBAudio	701.72
com.apple.iokit.IOAudioFamily	600.2
com.apple.vecLib.kext	1.2.0
com.apple.driver.driverkit.serial	6.0.0
com.apple.driver.AppleHIDKeyboard	8010.1
com.apple.driver.AppleHSBluetoothDriver	8410.3
com.apple.driver.IOBluetoothHIDDriver	9.0.0
com.apple.driver.AppleActuatorDriver	8410.3
com.apple.driver.AppleMultitouchDriver	8410.3
com.apple.driver.AppleMesaSEPDriver	100.99
com.apple.iokit.IOBiometricFamily	1
com.apple.iokit.IOAVBFamily	1300.26
com.apple.driver.DiskImages.KernelBacked	493.0.0
com.apple.driver.AppleXsanScheme	3
com.apple.driver.usb.networking	5.0.0
com.apple.driver.AppleSEPHDCPManager	1.0.1
com.apple.driver.AppleTrustedAccessory	1
com.apple.iokit.AppleSEPGenericTransfer	1
com.apple.nke.ppp	1.9
com.apple.driver.AppleBSDKextStarter	3
com.apple.kext.triggers	1.0
com.apple.filesystems.hfs.encodings.kext	1
com.apple.driver.AppleSyntheticGameController	12.1.3
com.apple.driver.AppleBTM	1.0.1
com.apple.driver.IOHIDPowerSource	1
com.apple.driver.AppleCallbackPowerSource	1
com.apple.driver.AppleConvergedIPCOLYBTControl	1
com.apple.driver.AppleConvergedPCI	1
com.apple.driver.AppleBluetoothDebug	1
com.apple.driver.AppleThunderboltPCIDownAdapter	4.1.1
com.apple.driver.AppleThunderboltDPInAdapter	8.5.1
com.apple.driver.AppleThunderboltDPAdapterFamily	8.5.1
com.apple.driver.AppleThunderboltUSBDownAdapter	1.0.4
com.apple.driver.AppleDCPDPTXProxy	1.0.0
com.apple.driver.DCPDPFamilyProxy	1
com.apple.plugin.IOgPTPPlugin	1300.51
com.apple.driver.AppleAOPAudio	400.9
com.apple.driver.AppleHIDTransportSPI	8000.26
com.apple.driver.AppleHIDTransport	8000.26
com.apple.driver.AppleInputDeviceSupport	8000.26
com.apple.driver.AppleCSEmbeddedAudio	810.2
com.apple.driver.AppleHPM	3.4.4
com.apple.driver.AppleDiagnosticDataAccessReadOnly	1.0.0
com.apple.driver.AppleEmbeddedAudio	810.2
com.apple.iokit.AppleARMIISAudio	400.22
com.apple.driver.IISAudioIsolatedStreamECProxy	400.22
com.apple.driver.ExclavesAudioKext	200.54
com.apple.driver.ApplePassthroughPPM	3.0
com.apple.driver.AppleSPU	1
com.apple.driver.ApplePMGR	1
com.apple.iokit.IONVMeFamily	2.1.0
com.apple.driver.AppleNANDConfigAccess	1.0.0
com.apple.driver.AppleSART	1
com.apple.driver.AppleSPMIPMU	1.0.1
com.apple.driver.AppleDialogPMU	1.0.1
com.apple.driver.AppleStockholmControl	1.0.0
com.apple.AGXFirmwareKextG13XRTBuddy	322.10
com.apple.AGXFirmwareKextRTBuddy64	322.10
com.apple.driver.AppleARMWatchdogTimer	1
com.apple.iokit.IOMobileGraphicsFamily-DCP	343.0.0
com.apple.iokit.IOMobileGraphicsFamily	343.0.0
com.apple.driver.AppleSPMI	1.0.1
com.apple.driver.AppleDCP	1
com.apple.driver.DCPAVFamilyProxy	1
com.apple.driver.AppleFirmwareKit	1
com.apple.driver.AppleM2ScalerCSCDriver	265.0.0
com.apple.driver.AppleA7IOP-ASCWrap-v4	1.0.2
com.apple.iokit.IOGPUFamily	104.1.2
com.apple.driver.AppleDisplayCrossbar	1.0.0
com.apple.iokit.IODisplayPortFamily	1.0.0
com.apple.driver.AppleT6000TypeCPhy	1
com.apple.driver.AppleT8103TypeCPhy	1
com.apple.driver.AppleUSBXDCIARM	1.0
com.apple.driver.AppleUSBXDCI	1.0
com.apple.iokit.IOUSBDeviceFamily	2.0.0
com.apple.driver.usb.AppleSynopsysUSBXHCI	1
com.apple.driver.usb.AppleUSBXHCI	1.2
com.apple.driver.AppleTypeCPhy	1
com.apple.driver.AppleEmbeddedUSBHost	1
com.apple.driver.usb.AppleUSBHub	1.2
com.apple.driver.usb.AppleUSBHostCompositeDevice	1.2
com.apple.driver.AppleA7IOP-M3Wrap-v2	1.0.2
com.apple.driver.AppleMobileApNonce	1
com.apple.driver.AppleThunderboltNHI	7.2.81
com.apple.driver.AppleT6000PCIeC	1
com.apple.iokit.IOThunderboltFamily	9.3.3
com.apple.iokit.IOPortFamily	1.0
com.apple.driver.ApplePIODMA	1
com.apple.driver.AppleT600xPCIe	1
com.apple.driver.AppleMultiFunctionManager	1
com.apple.driver.AppleBluetoothDebugService	1
com.apple.driver.AppleBCMWLANCore	1.0.0
com.apple.iokit.IO80211Family	1200.13.1
com.apple.driver.IOImageLoader	1.0.0
com.apple.driver.AppleOLYHAL	1
com.apple.driver.corecapture	1.0.4
com.apple.driver.AppleMCA2-T600x	900.4
com.apple.driver.AppleEmbeddedAudioLibs	400.9
com.apple.driver.AppleFirmwareUpdateKext	1
com.apple.driver.AppleH13CameraInterface	9.100.0
com.apple.driver.AppleGPIOICController	1.0.2
com.apple.driver.AppleFireStormErrorHandler	1
com.apple.driver.AppleEmbeddedPCIE	1
com.apple.driver.usb.AppleUSBHostPacketFilter	1.0
com.apple.iokit.IOTimeSyncFamily	1300.51
com.apple.driver.DiskImages	493.0.0
com.apple.iokit.IOGraphicsFamily	598
com.apple.iokit.IOBluetoothFamily	9.0.0
com.apple.driver.AppleUIO	1
com.apple.driver.AppleSSE	1.0
com.apple.driver.AppleSEPKeyStore	2
com.apple.driver.AppleUSBTDM	556
com.apple.iokit.IOUSBMassStorageDriver	250
com.apple.iokit.IOPCIFamily	2.9
com.apple.iokit.IOUSBHostFamily	1.2
com.apple.driver.AppleUSBHostMergeProperties	1.2
com.apple.driver.usb.AppleUSBCommon	1.0
com.apple.driver.AppleSMC	3.1.9
com.apple.driver.RTBuddy	1.0.0
com.apple.driver.AppleEmbeddedTempSensor	1.0.0
com.apple.driver.AppleARMPMU	1.0
com.apple.iokit.IOAccessoryManager	1.0.0
com.apple.driver.AppleOnboardSerial	1.0
com.apple.iokit.IOSerialFamily	11
com.apple.iokit.IOSCSIBlockCommandsDevice	498
com.apple.iokit.IOSCSIArchitectureModelFamily	498
com.apple.driver.AppleRSMChannel	1
com.apple.iokit.IORSMFamily	1
com.apple.driver.AppleLockdownMode	1
com.apple.driver.AppleIPAppender	1.0
com.apple.iokit.IOSkywalkFamily	1.0
com.apple.driver.mDNSOffloadUserClient	1.0.1b8
com.apple.iokit.IONetworkingFamily	3.4
com.apple.driver.AppleFDEKeyStore	28.30
com.apple.driver.AppleEffaceableStorage	1.0
com.apple.driver.AppleCredentialManager	1.0
com.apple.driver.AppleSEPManager	1.0.1
com.apple.driver.AppleA7IOP	1.0.2
com.apple.driver.IOSlaveProcessor	1
com.apple.driver.AppleBiometricSensor	2
com.apple.iokit.IOHIDFamily	2.0.0
com.apple.driver.AppleANELoadBalancer	8.107.2
com.apple.driver.AppleH11ANEInterface	8.107.2
com.apple.driver.IODARTFamily	1
com.apple.AUC	1.0
com.apple.iokit.IOSurface	372.2.3
com.apple.iokit.IOAVFamily	1.0.0
com.apple.iokit.IOHDCPFamily	1.0.0
com.apple.iokit.IOCECFamily	1
com.apple.iokit.IOAudio2Family	1.0
com.apple.driver.AppleIISController	400.1
com.apple.driver.AppleAudioClockLibs	400.9
com.apple.driver.FairPlayIOKit	72.10.0
com.apple.driver.AppleARMPlatform	1.0.2
com.apple.iokit.IOSlowAdaptiveClockingFamily	1.0.0
com.apple.iokit.IOReportFamily	47
com.apple.security.quarantine	4
com.apple.security.sandbox	300.0
com.apple.iokit.IOStorageFamily	2.1
com.apple.kext.AppleMatch	1.0.0d1
com.apple.driver.AppleMobileFileIntegrity	1.0.5
com.apple.iokit.CoreAnalyticsFamily	1
com.apple.security.AppleImage4	7.0.0
com.apple.kext.CoreTrust	1
com.apple.iokit.IOCryptoAcceleratorFamily	1.0.1
com.apple.kec.pthread	1
com.apple.kec.Libm	1
com.apple.kec.Compression	1.0
com.apple.kec.corecrypto	14.0



** Stackshot Succeeded ** Bytes Traced 584464 (Uncompressed 1583552) **

flagging @ptillisch in case he has some ideas

Trying to get any luck with this blink template:
https://app.arduino.cc/templates/cloud-blink

No luck: error on import (after recognizing the device)

cc1plus: fatal error: /home/builder/Arduino/libraries/arduinoiotcloud_2_1_0/src/cbor/lib/tinycbor/src/cborpretty.
c: No such file or directory compilation terminated. 
Error during build: exit status 1 

Continuing my problem-solving- not sure I am getting anywhere, but I connected my device via the cloud interface in the browser with the Cloud Blink thing, and I can now make the LED switch on and off on my board (UNO R4 wifi)

The cloud icon is active in the sketch. The sketch must have been loaded on the board while associating the device—or in an earlier attempt when opening the template.(??)

To test the USB connection, I then sent the sketch via USB.
Afterward, I return to the dashboard, where the switch does not activate or deactivate the LED. My connected device now shows up offline.
Sure enough, I can wake it up with the reset button, but it looks like the Arduino board is kicked off when I send the sketch via USB.

Getting this in the console:

/usr/local/bin/arduino-cli compile --fqbn arduino:renesas_uno:unor4wifi --build-cache-path /tmp --output-dir /tmp/1900396023/build --build-path /tmp/arduino-build-609E98BFD6A609203426912E3D8EE449  /tmp/1900396023/Cloud_Blink_nov04a
[info] Sketch uses 110748 bytes (42%) of program storage space. Maximum is 262144 bytes.
[info] Global variables use 10404 bytes (31%) of dynamic memory, leaving 22364 bytes for local variables. Maximum is 32768 bytes.

Restarting in bootloader mode
Flashing with command:/Users/karenvanderborght/.arduino-create/arduino/bossac/1.9.1-arduino5/bossac -d --port=cu.usbmodem34B7DA61F3242 -U -e -w /var/folders/vj/hjp4l6tj2199gz3z978t5kk00000gn/T/arduino-create-agent2581338079/Cloud_Blink_nov04a.bin -R
Set binary mode
version()=Arduino Bootloader (SAM-BA extended) 2.0 [Arduino:IKXYZ]
Connected at 921600 baud
identifyChip()=nRF52840-QIAA
write(addr=0,size=0x34)
writeWord(addr=0x30,value=0x400)
writeWord(addr=0x20,value=0)
Erase flash
chipErase(addr=0)

Done in 0.001 seconds
Write 110756 bytes to flash (28 pages)

[                              ] 0% (0/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0, size=0x1000)

[=                             ] 3% (1/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x1000, size=0x1000)

[==                            ] 7% (2/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x2000, size=0x1000)

[===                           ] 10% (3/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x3000, size=0x1000)

[====                          ] 14% (4/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x4000, size=0x1000)

[=====                         ] 17% (5/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x5000, size=0x1000)

[======                        ] 21% (6/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x6000, size=0x1000)

[=======                       ] 25% (7/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x7000, size=0x1000)

[========                      ] 28% (8/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x8000, size=0x1000)

[=========                     ] 32% (9/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x9000, size=0x1000)

[==========                    ] 35% (10/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0xa000, size=0x1000)

[===========                   ] 39% (11/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0xb000, size=0x1000)

[============                  ] 42% (12/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0xc000, size=0x1000)

[=============                 ] 46% (13/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0xd000, size=0x1000)

[===============               ] 50% (14/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0xe000, size=0x1000)

[================              ] 53% (15/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0xf000, size=0x1000)

[=================             ] 57% (16/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x10000, size=0x1000)

[==================            ] 60% (17/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x11000, size=0x1000)

[===================           ] 64% (18/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x12000, size=0x1000)

[====================          ] 67% (19/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x13000, size=0x1000)

[=====================         ] 71% (20/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x14000, size=0x1000)

[======================        ] 75% (21/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x15000, size=0x1000)

[=======================       ] 78% (22/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x16000, size=0x1000)

[========================      ] 82% (23/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x17000, size=0x1000)

[=========================     ] 85% (24/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x18000, size=0x1000)

[==========================    ] 89% (25/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x19000, size=0x1000)

[===========================   ] 92% (26/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x1a000, size=0x1000)

[============================  ] 96% (27/28 pages)write(addr=0x34,size=0x1000)
writeBuffer(scr_addr=0x34, dst_addr=0x1b000, size=0x1000)

[==============================] 100% (28/28 pages)
Done in 6.747 seconds
reset()
Ok