EN 111
3139 785 31532
5.
Firmware Upgrading & Diagnostic Software
Nucleus Name
DS_HDD_SectorRead
Nucleus Number
2111
Description
Read 512 bytes from a specified sector on HDD
Technical
-
Get the user input
-
Read the data from the sector using READ_SECTOR(S) and display the
contents
Execution Time
Less than 1 second.
User Input
3 parameters in the next format: <sector> <offset> <length>
where
- sector is the sector to read from
- offset is the byte-offset in the sector buffer (0 .. 256)
- length the length (in bytes) of the data to display (1 .. 256)
Error Number
Description
211100
Reading from HDD succeeded
211101
Invalid user input
211102
The initialisation of IDE failed
211103
The hard disk drive failed
211104
The read command failed
Example
DS:> 2111 0x80001 0 128
211100:
0x00 : 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
0x08 : 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
0x10 : 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
0x18 : 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
0x20 : 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
0x28 : 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
0x30 : 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
0x38 : 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
0x40 : 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
0x48 : 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
0x50 : 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
0x58 : 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
0x60 : 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
0x68 : 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
0x70 : 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
0x78 : 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
Test OK @
Nucleus Name
DS_HDD_SetPower
Nucleus Number
2112
Description
Set the power of the HDD On or Off
Technical
-
Get user input
-
Set the IDE1_POWER PIO line to the desired value
Execution Time
Less than 1 second.
User Input
1 parameter:
"ON" , enables the power of the HDD
"OFF" , turn off the power of the HDD
Error Number
Description
211200
Setting the HDD power mode succeeded
211201
Setting the HDD power mode failed
211202
Invalid user input
Note
All other HDD nuclei will not work until DS_HDD_Reset is executed
Example
DS:> 2112 off
211200:
Test OK @