Microdisc replacement project

This is the right place to discuss on how to implement hardware vsync, adding a VIA or AY chipset, puting multiple roms, or how to design a new flash expansion card.
User avatar
metadata
Pilot Officer
Posts: 114
Joined: Wed Aug 31, 2011 7:59 pm
Location: Hildesheim, Germany
Contact:

Re: Microdisc replacement project

Post by metadata »

i decomment the message line in this function. Here is the result.
Attachments
IMG_20131216_234620.jpg
IMG_20131216_234620.jpg (116.97 KiB) Viewed 15330 times
User avatar
iss
Wing Commander
Posts: 1641
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: Microdisc replacement project

Post by iss »

I'm glad to help!
Unfortunately, this is just diagnose and not fix.
The easiest what I can suggest is to try another SD-Card :).

Else, the execution fails exactly here (in function 'card_read'):

Code: Select all

        /* Wait until 0xFE is received */
        while ((card_response = SPI(0xFF)) == (uint8_t) 0xFF);
        
        if (card_response != 0xFE)
                return 0;
but I don't have idea how this issue can be solved.
May be some delay ... but this is just pure guess.
User avatar
barnsey123
Flight Lieutenant
Posts: 379
Joined: Fri Mar 18, 2011 10:04 am
Location: Birmingham

Re: Microdisc replacement project

Post by barnsey123 »

If it's a card thing...Check the class of the card...different cards allow writing at different speeds.

http://kb.sandisk.com/app/answers/detai ... ed-ratings

Try either a higher or lower class than the one you are using...maybe worth a try.
User avatar
kenneth
Squad Leader
Posts: 515
Joined: Fri Nov 26, 2010 9:11 pm
Location: France PdD
Contact:

Re: Microdisc replacement project

Post by kenneth »

User avatar
Dbug
Site Admin
Posts: 4444
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Microdisc replacement project

Post by Dbug »

I will perhaps say something stupid, but when I see the code something really annoys me: As far as I can see, the CUMULUS.BIN file is loaded sector by sector with the firmware erase and update being done at the same time for each sector.

Is it because there's not enough memory?

Personally I would have allocated a buffer large enough to load the entire file in memory, eventually do checksums and whatnots, and then only start the update/erase/flash process, knowing that I'm not going to have a partial read error because the user removed the card or there was a flimsy contact on the connector.
User avatar
metadata
Pilot Officer
Posts: 114
Joined: Wed Aug 31, 2011 7:59 pm
Location: Hildesheim, Germany
Contact:

Re: Microdisc replacement project

Post by metadata »

D'oh!
You can call me stupid.... don't tell anyone. There is a big diffenrenz between an HEX and a BIN file.

Good news, everyone!
I found the problem :)
Now i can update the firmware from the sd-card.
User avatar
Dbug
Site Admin
Posts: 4444
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Microdisc replacement project

Post by Dbug »

Awesome :)

I would not call you stupid, everybody is entitled in doing errors :)
User avatar
Chema
Game master
Posts: 3014
Joined: Tue Jan 17, 2006 10:55 am
Location: Gijón, SPAIN
Contact:

Re: Microdisc replacement project

Post by Chema »

Great! That is excelent news! Congrats!
User avatar
Symoon
Archivist
Posts: 2307
Joined: Sat Jan 14, 2006 12:44 am
Location: Paris, France

Re: Microdisc replacement project

Post by Symoon »

Great news indeed!
User avatar
metadata
Pilot Officer
Posts: 114
Joined: Wed Aug 31, 2011 7:59 pm
Location: Hildesheim, Germany
Contact:

Re: Microdisc replacement project

Post by metadata »

time to burn some roms :)
Attachments
IMG_20131223_192206.jpg
IMG_20131223_192206.jpg (156.82 KiB) Viewed 15188 times
User avatar
barnsey123
Flight Lieutenant
Posts: 379
Joined: Fri Mar 18, 2011 10:04 am
Location: Birmingham

Re: Microdisc replacement project

Post by barnsey123 »

Hurry up! Santa's waiting... :wink:
JonB
Officer Cadet
Posts: 38
Joined: Tue May 14, 2013 9:02 pm

Re: Microdisc replacement project

Post by JonB »

Too late, he's bogged off back to Lapland!

Still, I would not be discouraging you from completing the "Great Work". I want to play Space:1999 on a real Atmos...! ;)
User avatar
coco.oric
Squad Leader
Posts: 720
Joined: Tue Aug 11, 2009 9:50 am
Location: North of France
Contact:

Re: Microdisc replacement project

Post by coco.oric »

Great work, thanks a lot !
It's my christmas gift :o
coco.oric as DidierV, CEO Member
Historic owner of Oric, Apple II, Atari ST, Amiga
User avatar
metadata
Pilot Officer
Posts: 114
Joined: Wed Aug 31, 2011 7:59 pm
Location: Hildesheim, Germany
Contact:

Re: Microdisc replacement project

Post by metadata »

btw... :)
How to update the Oric Cumulus
http://www.youtube.com/watch?v=WoVpMwnYQIY
User avatar
ibisum
Wing Commander
Posts: 1646
Joined: Fri Apr 03, 2009 8:56 am
Location: Vienna, Austria
Contact:

Re: Microdisc replacement project

Post by ibisum »

So terribly, terribly exciting! I will update my Cumulus' tomorrow and have a play!

Please sir, take a bow! This is AWESOME!
Post Reply