



















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















































/* Copyright (c) Microsoft Corporation. All rights reserved. / #include #include #include #include extern PIUNKNOWN Db161CobMain(void); extern PIUNKNOWN HostfsCobMain(void); extern PIUNKNOWN SerplexCobMain(void); const struct PRECOB ThePreCobTable[] = { {_T("eb63usart.cob"), SerialCobMain }, {_T("sernet.cob"), SerNetCobMain }, {_T("serplex.cob"), SerplexCobMain }, {_T("hostfs.cob"), HostfsCobMain }, {_T("db161.cob"), Db161CobMain }, BASIC_NET_COBS BASIC_SOAP_COBS PRIVATE_SOAP_COBS {0,0} }; / Select root "fs" file system */ PINAMESPACE BoardInitRomFs(void); PINAMESPACE BoardInitHostFs(void); EXTERN_C void ConfigureDrivers( PIMODULE pModule, _TCHAR *ConfigurationFileName, BOOL LoadDllDrivers ); PRIVATE SCODE Configure(_TCHAR Name) { PIMODULE pCurMod; GetCurrentModule(&pCurMod); ConfigureDrivers(pCurMod, Name, FALSE ); if (pCurMod) pCurMod->v->Release(pCurMod); return S_OK; } PINAMESPACE BoardInitFileSystem(void) { PINAMESPACE ns; printf("Initializing the srfs driver...\n"); Configure("srfs"); / Use RomFs with eb63big: it's a flashed standalone image / printf("Attempting to mount the RomFS...\n"); ns = BoardInitRomFs(); if (!ns) { / not there / printf("RomFS didn't load...using HostFS instead.\n"); ns = BoardInitHostFs(); / use hostfs instead */ } printf("File system initialized.\n\n"); return ns; }
CheckSum=x1ee9966 (32414054). > eb_flash.exe -std 1000000 fs/eb63fs.flp 180000 {Did you remember this one?} E7 == STD assumed Checking FLASH @ ManufacturerId: x1f DeviceId: xc Flash was recognized, type AT49BV1604/ None of the sectors are locked. Did you make sure that Strap E7 is in the STD position? y FLASHing file fs/eb63fs.flp at offset 180000. Erasing sector 32 [offset x180000] ...done. ################################################################ Erasing sector 33 [offset x190000] ...done. ################################################################ Erasing sector 34 [offset x1a0000] ...done. ################################################################ Erasing sector 35 [offset x1b0000] ...done. ################################################################ Erasing sector 36 [offset x1c0000] ...done.
CheckSum=xfff124 (16773412). >
Console Thread ... Initializing the srfs driver... Attempting to mount the RomFS... File system initialized. Done initializing. >
Testing RAM (starting at byte 16) RamTest PASS {This is what you’re looking for} Mem[000]: 0 10 4 1 0 0 31 20 0 4 20 9 12 60 20 0 Mem[016]: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f Mem[032]: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f Mem[048]: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f Mem[064]: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f Mem[080]: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f Mem[096]: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f Mem[112]: 70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 80 Mem[128]: 80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f Mem[144]: 90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f Mem[160]: a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af Mem[176]: b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf Mem[192]: c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf Mem[208]: d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df Mem[224]: e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef Mem[240]: f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe 0 --Counters: { ^-- This dump should count in order starting at reg. 16} Flips = - Interrupts = 0 StartOfFrame = 0 Insertions = 0 A-done = 0 Loopy = 0 >
> sl811test.exe P {Starts an ISR that listens for USB transactions} Current RAM contents: Mem[000]: 0 10 4 1 0 0 31 20 0 4 20 9 12 60 20 0 Mem[016]: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f Mem[032]: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f Mem[048]: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f Mem[064]: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f Mem[080]: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f Mem[096]: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f Mem[112]: 70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f Mem[128]: 80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f Mem[144]: 90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f Mem[160]: a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af Mem[176]: b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf Mem[192]: c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf Mem[208]: d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df Mem[224]: e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef Mem[240]: f0 f1 f2 f3 f4 f5 f6 f8 f8 f9 fa fb fc fe fe ff 0-th dump repetition failed (at byte 96) {Again, ignore} Reg 0: 0 10 4 1 0 0 31 20 0 4 20 9 12 60 20 0 Reg 16: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f Reg 32: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
Reg 48: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f Reg 64: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f Reg 80: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f Reg 96: 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 Reg112: 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f 81 Reg128: 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 Reg144: 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e a0 a1 a Reg160: a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b Reg176: b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be c0 c1 c2 c Reg192: c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d Reg208: d4 d5 d6 d7 d8 d9 da db dc dd de e0 e2 e3 e4 e Reg224: e6 e7 e8 e9 ea eb ec ed ee ef f1 f2 f3 f4 f5 f Reg240: f7 f8 f9 fa fb fc fd ff 10 4 1 0 0 31 20 0 1-th dump repetition failed (at byte 64) {Ignore…} 2-th dump repetition failed (at byte 64) 3-th dump repetition failed (at byte 64) 4-th dump repetition failed (at byte 32) 5-th dump repetition failed (at byte 32) 6-th dump repetition failed (at byte 32) 7-th dump repetition failed (at byte 96) 8-th dump repetition failed (at byte 32) 9-th dump repetition failed (at byte 64) HCR_A 0 = HBA_A 10 = b HBL_A 4 = b STATUS_A 1 = ACK TC_A 0 = CTRL1 0 = INTEN 31 = DONE_A SOF Insert SAR 20 = b HCR_B 0 = HBA_B 4 = b HBL_B 20 = b STATUS_B 9 = ACK Sequence TC_B 12 = b1 b ISTATUS 60 = Insert Detect REV 20 = b SOF_HI 0 = Starting interactive testing (with real ISR) Type '?' for help. Command [?|c|d|D|r|i|p|s|z|1|2|e]: ISTATUS 40 = Detect No device or no power Device removal detected {Plug in a Logitech USB optical mouse now} ISTATUS 0 = Low speed device connected Device attachment detected DeviceDescriptor:12 1 10 1 0 0 0 8 6d 4 c c0 10 21 1 2 0 1……… Client address is now x1 (was x0) ConfigDescriptor: 9 2 22 0 1 1 0 a0 32 9 4 0 0 1 3 1 2 0……… ReportDescLength: 52 MaxPower: 100 mA SetConfig. ReportDescriptor: 5 1 9 2 a1 1 9 1 a1 0 5 9 19 1 29 3 15 0 8 95 3 18 81 6 c0 c ReportLengths: InSize 23 OutSize 0 Feature 0 [0]GetString: 4 3 9 4 1 {Press “1” to get the DeviceDescriptor string} DeviceDescriptor:12 1 10 1 0 0 0 8 6d 4 c c0 10 21 1 2 0 1