Skip to content

R/W errors in MacWorks and error 1070 in LisaOS #2

@RolandJuno

Description

@RolandJuno

Background: I have a Lisa 2/5 system that consists of a original CPU and SunRem 2MB cards as well as reproduction motherboard and I/O cards. I'm also using EPROMs as emulated PROMs on the CPU and I/O cards as well as a COP emulator on the I/O card.

Reads from the ArduinoFile seem solid. I've not encountered issues there. The issue seems to be with writes to the device. The symptoms while using the ArduinoFile are:

  • MacWorks will report "The file "name" couldn't be written and was skipped (disk error)." while copying a large-ish file (one that typically takes multiple read/write cycles in the Finder).
  • When I try to boot into the LisaOS, I get an error 10707.

First I tried the following:

  • Monitored the serial port for debug messages. When the error in MacWorks appeared, the debug statement "Phase 1: Host didn't respond with a 55! Maybe the drive was reset?" appeared.
  • Set the timeout value from 10000 to 20000. MacWorks still produced the error but there was no error messages on serial this time.
  • Changed the version of SDfat to an earlier version (2.0.5 is pictured in the docs but that wouldn't compile. 2.1.0 was the oldest that would compile).
  • Removing the Serial.println statements in an attempt to speed things up

I then found this issue thread which seemed to offer some hope! I tried the following:

  • Set the compiler flag to -Ofast.
  • Bodged the board to use PORTF instead of PORTL.

None of these so far has resolved the issue in MacWorks. I'm hoping that someone has some ideas of what might be the issue?

Update: I enabled many of the serial debug statements in the code and watched the stream. It seems the Mac will write data and then read it back to verify. I got a new error this time.

  • Timeout: Read Command Confirmation
  • Phase 1: Host didn't respond with a 55! Maybe the drive was reset?

PS Alex, I know you're very busy so reply only if time allows! Your university studies should be your top priority! =-)

IMG_9254

Originally posted by @RolandJuno in #1 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions