I pressed the magic button and the purple lights flashed and it says target is not in dfu mode. This is exactly what it says: Failed to execute script main
Upgrading target on /dev/cu.usbserial-DO00KF1W with DFU package /private/var/folders/7r/x9xrgkz52jqfm_hhmpjmx6y40000gn/T/arduino_build_66590/sketch_mar02a.ino.zip. Flow control is disabled.
Failed to upgrade target. Error is: Serial port could not be opened on /dev/cu.usbserial-DO00KF1W. Reason:
- bootloader, SoftDevice or application on target does not match the requirements in the DFU package.
- baud rate or flow control is not the same as in the target bootloader.
- target is not in DFU mode. If using the SDK examples, press Button 4 and RESET and release both to enter DFU mode.
Failed to execute script main