Talk:83Plus:Software:usb8x/Asm Interface/MSD/MSD Initialize

From WikiTI
Revision as of 12:21, 17 August 2006 by Dan Englender (Talk | contribs)

Jump to: navigation, search

I've been trying to work with this newest version. But I seem to get an error when I MSD_Initialize, returning an error code of 8.

ld hl,driverram
ld a,uDriverInit
call USBDriverCall
jp c,driverfailed
ld hl,appBackUpScreen
ld de,appBackUpScreen+256
ld a,uMSD_Initialize
call USBDriverCall
jp c,msdfailed          ;fails here
ld a,uUFI_Initialize
call USBDriverCall
jp c,ufifailed
ld a,uFAT_Initialize
call USBDriverCall
jp c,fatfailed

I'm not using zds so I'm not using the U_call macro, does there seem to be anything wrong? MSD8x the app does get past initization and displays files. (preceding unsigned comment by Jim_e (talk • contribs) 12:48, 17 August 2006 (EST))

Error 8 is one of those not very helpful ones because it means something has gone wrong during initialization, but not any of the other error conditions I check for. My initial reaction is to say make sure the device was not previously initialized, the port was in a reset state (plug/unplug the cable and turn on/off the calculator), and that your batteries are fresh. It seems odd that it would work with MSD8x but not with your code, though. Maybe Brandon will have a better idea --Dan Englender 12:17, 17 August 2006 (PDT)