Hi,
While developing and testing/profiling a game, within the last couple of days the playdate sometimes crashed with the generic e0 error on the playdate and
Serial write Failed: (-1 != 6)
Device Disconnected: /dev/ttyACM0
in the debug console.
At first the playdate would reconnect a few seconds later, but now it's nearly completely failing to connect, only sometimes miraculously being able to.
I can still use the playdate to play games, and I can still sideload builds in a little convoluted way by uploading them on the website to download as game updates, but even so I cannot use the profiling tool or use the playdate as the controller on the simulator, making development less enjoyable as it is usually!
I'm on linux, and have proper udev rules for the device. When it is failing to connect, lsusb
doesn't show the playdate at all, nor do dmesg
or udevadm monitor
. The /dev/ttyACM0
device also does not appear.
I've tried using other cables and rebooting the playdate (is there a way to "hard" reboot it ?), to no avail. Same with
I've not tried a factory reset yet, as I don't want to lose my progress in games . (although right now the console managed to connect and I'm attempting to backup everything on it so that might be an option)
Here is a screenshot from the debug console during one of the last crashes.
Also, the crash logs from the last days, although I'm not 100% positive they're concomitant to the serial connection fails (but at the minimum they are not related to the last error logs)
crash logs
--- crash at 2025/03/05 06:27:31---
build:57176cb0-2.6.2-release.177516-buildbot
r0:90035f60 r1:240dd36e r2:90011ef0 r3: f34620b1
r12:00000001 lr:240a4151 pc:240a3d10 psr: 410b002d
cfsr:01000000 hfsr:40000000 mmfar:00000000 bfar: 00000000
rcccsr:00000000
heap allocated: 355456
Lua totalbytes=127849420 GCdebt=-127574688 GCestimate=242654 stacksize=84
--- crash at 2025/03/06 15:25:59---
build:57176cb0-2.6.2-release.177516-buildbot
r0:900116a4 r1:90224290 r2:00000053 r3: 00000053
r12:04001fd3 lr:24068027 pc:240a43c6 psr: 610b002d
cfsr:00008200 hfsr:40000000 mmfar:418d09bb bfar: 418d09bb
rcccsr:00000000
heap allocated: 2706432
Lua totalbytes=129773182 GCdebt=-127575084 GCestimate=1982836 stacksize=42
--- crash at 2025/03/06 16:35:42---
build:57176cb0-2.6.2-release.177516-buildbot
r0:900116a4 r1:901ea930 r2:00000053 r3: 00000053
r12:901ea95c lr:24068027 pc:240a43c6 psr: 610b002d
cfsr:00008200 hfsr:40000000 mmfar:3e99880c bfar: 3e99880c
rcccsr:00000000
heap allocated: 2083936
Lua totalbytes=129532048 GCdebt=-127574748 GCestimate=1925363 stacksize=84
Thank you for your help!
ps: I will make a proper announcement thread, but as I'm a bit embarrassed that my first message here is about having a problem, I cannot resist sharing a little preview of the game I'm currently working on: