Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Error codes (error 230)

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR-DOS
View previous topic :: View next topic  
Author Message
anka

Bascom Member



Joined: 29 Jan 2006
Posts: 10

blank.gif
PostPosted: Fri Feb 10, 2006 9:20 pm    Post subject: Error codes (error 230) Reply with quote

hello

I get this error message:
0000>sd 0
Dump Sectors from 0 to 0
Read Sector: 0 ... Error 230 at sector# 0
Drive Error: 230
Drive Status: 01010001
Drive Debug: 0

Haven't seen any explanations for error codes bigger than 100, is it out there on the www?

Using a Hdd and "config_harddisk_M128.bas"

thx

/andreas
Back to top
View user's profile
anka

Bascom Member



Joined: 29 Jan 2006
Posts: 10

blank.gif
PostPosted: Tue Feb 14, 2006 7:51 pm    Post subject: Reply with quote

I have searched (some more) on the www for info on error codes above 100 but haven't found anything.
Have tested every possible setting in the config file and tested with "Initfilesystem(1)" and the "Initfilesystem(0)". But I always turn out with this error.

Mostly I'am interrested in a list that explains the error codes.

I don't expect that you should solv my problem but plz point me in the right direction

Andreas
Back to top
View user's profile
oe9vfj

Moderator



Joined: 17 Jun 2004
Posts: 269
Location: Austria, Hard

austria.gif
PostPosted: Wed Feb 15, 2006 9:40 am    Post subject: Reply with quote

Errocodes from 224 (&HC0) to 255 are from the driver for the mass storage device. They are defined in the according CONFIG_....... file. In your case in CONFIG_HardDisk_M128.bas.

230 is a general error which can not be defined in more detail. Probably the Command to read a sector is given to the HD, but the HD set the Error-flag in its status register.

_________________
regards Josef

DOS - File System for BASCOM-AVR on http://members.aon.at/voegel
Back to top
View user's profile Visit poster's website
anka

Bascom Member



Joined: 29 Jan 2006
Posts: 10

blank.gif
PostPosted: Wed Feb 15, 2006 10:01 pm    Post subject: Reply with quote

Thanks for your reply!
I appreciate that you took some of your time to help me.
The information I was seeking was a little closer than I expected Smile .
Is it possible to rule out wiring errors/ problem with ports? And just concentrate on the HDD?
Every time the
"init filesystem ... Error: 230 at init file system
230Test_DOS_drive compiled at ...
Wait for Drive"
is printed I can hear the HDD read. (In my little world it seems like the connection is working. Or is so that not all pins/ports are used for sending a command to the HDD?). I have checked the wiring several times now without finding anything wrong. I have also tested a few different settings in the way the HDD is configured (different numbers of partions and sizes and so on). I use a HDD on 4327 MB is that to big?

Best regards
Andreas
Back to top
View user's profile
oe9vfj

Moderator



Joined: 17 Jun 2004
Posts: 269
Location: Austria, Hard

austria.gif
PostPosted: Fri Feb 17, 2006 2:52 pm    Post subject: Reply with quote

Hi Andreas,

It is possible, that some commands will be accepted by the HD, if not all data lines are wired well.
A 4GB HD will be OK if it supports LBA-Addressing. HD at the beginning had only C/H/S sector addressing (Cylinder / Head / Sector).
If your HD has anywhere on the Label something like:
Drive Parameters: xxxx cyl , yy heads , zz spt
it is possible, that it supports only C/H/S addressing.
You can check also the Master/Slave jumpering. It should set to Master or One Drive Only.
I tested AVR-DOS on HD from 1.25GB up to more than 100GB.

_________________
regards Josef

DOS - File System for BASCOM-AVR on http://members.aon.at/voegel
Back to top
View user's profile Visit poster's website
anka

Bascom Member



Joined: 29 Jan 2006
Posts: 10

blank.gif
PostPosted: Sat Feb 18, 2006 12:04 pm    Post subject: Reply with quote

Ok thanks for clearing that out

This means I have to dig deeper Smile

/Andreas
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR-DOS All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum