Page 9 of 10
Re: Cumulus Firware Compilation
Posted: Sat Jul 01, 2017 3:05 pm
by Chema
Okay, I'm afraid I'm not going to be able to help. If only metadata read this...
He had similar problems, as you already read in the forum. Iss provided a modded code that printed error messages (check this post
http://forum.defence-force.org/viewtopi ... =120#p9409).
But metadata was quite cryptic (at least to me) when he said he solved it. He just said he learnt the difference between a BIN file and an HEX file...
http://forum.defence-force.org/viewtopi ... =135#p9436
And that is all.
Hope someone comes with a new idea.
Re: Cumulus Firware Compilation
Posted: Sat Jul 01, 2017 3:19 pm
by zaxon
Yop, i use bootloader code from ISS from this topic
http://forum.defence-force.org/viewtopi ... =120#p9409 . I compile it in mp lab using modded linker, maybe this is also problem
Echh I feel like a child in the fog...
Code: Select all
// File: 18f46k20_g.lkr
// Generic linker script for the PIC18F46K20 processor
LIBPATH .
#IFDEF _CRUNTIME
#IFDEF _EXTENDEDMODE
FILES c018i_e.o
FILES clib_e.lib
FILES p18f46k20_e.lib
#ELSE
FILES c018i.o
FILES clib.lib
FILES p18f46k20.lib
#FI
#FI
CODEPAGE NAME=page START=0x0 END=0xFFFF
CODEPAGE NAME=idlocs START=0x200000 END=0x200007 PROTECTED
CODEPAGE NAME=config START=0x300000 END=0x30000D PROTECTED
CODEPAGE NAME=devid START=0x3FFFFE END=0x3FFFFF PROTECTED
CODEPAGE NAME=eedata START=0xF00000 END=0xF003FF PROTECTED
#IFDEF _EXTENDEDMODE
DATABANK NAME=gpre START=0x0 END=0x5F
#ELSE
ACCESSBANK NAME=accessram START=0x0 END=0x5F
#FI
DATABANK NAME=gpr0 START=0x60 END=0xFF
DATABANK NAME=sector_buffer_section START=0x100 END=0x3FF PROTECTED
//DATABANK NAME=gpr2 START=0x200 END=0x2FF
//DATABANK NAME=gpr3 START=0x300 END=0x3FF
DATABANK NAME=gpr4 START=0x400 END=0x4FF
DATABANK NAME=gpr5 START=0x500 END=0x5FF
DATABANK NAME=gpr6 START=0x600 END=0x6FF
DATABANK NAME=gpr7 START=0x700 END=0x7FF
DATABANK NAME=gpr8 START=0x800 END=0x8FF
DATABANK NAME=gpr9 START=0x900 END=0x9FF
DATABANK NAME=gpr10 START=0xA00 END=0xAFF
DATABANK NAME=gpr11 START=0xB00 END=0xBFF
DATABANK NAME=gpr12 START=0xC00 END=0xCFF
DATABANK NAME=gpr13 START=0xD00 END=0xDFF
DATABANK NAME=gpr14 START=0xE00 END=0xEFF
DATABANK NAME=gpr15 START=0xF00 END=0xF5F
ACCESSBANK NAME=accesssfr START=0xF60 END=0xFFF PROTECTED
SECTION NAME=sector_buffer_section RAM=sector_buffer_section
#IFDEF _CRUNTIME
SECTION NAME=CONFIG ROM=config
#IFDEF _DEBUGSTACK
STACK SIZE=0x100 RAM=gpr13
#ELSE
STACK SIZE=0x100 RAM=gpr14
#FI
#FI
Re: Cumulus Firware Compilation
Posted: Sat Jul 01, 2017 8:03 pm
by iss
Attached is what I found in my archives.
Unfortunately only HEX files, sorry it was long time ago.
Please try it, I hope it helps...
Re: Cumulus Firware Compilation
Posted: Sat Jul 01, 2017 9:50 pm
by zaxon
ISS many thanks, now is much better
Time to talk with XC95144
. Also my orginal rom from orginal microdisk is dead.
I try dump it but is empty...Not easy..
Re: Cumulus Firware Compilation
Posted: Sat Jul 01, 2017 11:01 pm
by iss
Congrats, great progress!
ROM content is the one which is used in emulators too and can be downloaded form
here.
Compiling XC95144 code is bit tricky, if you have any problems I think we can solve them
.
Re: Cumulus Firware Compilation
Posted: Sun Jul 02, 2017 10:42 am
by Chema
Great!
Please iss, put the file in the repository... clearly having the binay files in addition to the sources looks like a good idea!
Re: Cumulus Firware Compilation
Posted: Sun Jul 02, 2017 12:10 pm
by zaxon
Very good
When i finish i also share working files in one place.
Ok, next day fight, i upload 2 diffrent JED files to XC95144 without success. Also ,somebody know why in Cumulus is Flash EEprom 256, not normal eprom like 27c64 ? Rom for microdisc is 8 KB. So what about rest? Write 4x8kb in to eeprom?
I would be grateful for the working JED file for XC95144XL.
On the moment:
Re: Cumulus Firware Compilation
Posted: Sun Jul 02, 2017 2:06 pm
by iss
First, here is how I repaired my Cumulus 2 years ago - literally everything was burnt!
In the attached zip file are ALL needed binary files.
@Chema: I can't upload to SVN, but someone with write access can do it
.
Re: Cumulus Firware Compilation
Posted: Sun Jul 02, 2017 4:27 pm
by coco.oric
Dear all,
here is the process i use to change the firmware on my cumulus :
Processus de Compilation.
1. télécharger et installer mplabx
2. télécharger et installer le compilateur C18 de microchip
3. créer un nouveau projet dans l’ide mplabx avec les options : -standalone, PIC18F46K20, -select ICD3 (non fondamental), C18 compiler et donner un nom au projet
4. Ouvrir la fenetre projet (Windows->Project) et ajouter les fichiers de type .h (header), .lkr (linker) et .c
5. click «run» -> «Build project»
6. Télécharger hex2bin
http://hex2bin.sourceforge.net/
7. copier le fichier .hex compilé dans le répertoire hex2bin
8. en ligne de commande, taper hex2bin -l 10000 YOURHEXFILENAME
The tools :
. EaseUS Partition Master 9.3.0 permet de reformater correctement la carte SD. Il est nécessaire que seul le fichier CUMULUS.BIN (majuscules) soit présent sur la carte SD pour reprogrammer le firrmware.
. Installer les logiciels requis ci-dessous : MPLab C18 et MPLABx IDE (nécessite de s’enregistrer sur le site) et Hex2Bin Attention, le Cumulus possède 2 types d’écran : le PCF8833 et le S1D15G10 (point noir) et le header 6610.h doit en tenir compte (#define)
Sorry, it's in french but i wrote it 3 years ago when i tried to change the buttons' role.
Didier
Re: Cumulus Firware Compilation
Posted: Sat Jul 08, 2017 5:42 pm
by zaxon
Ok, ready
Big thanks for support.
Some demos downloaded, beer in fridge, so is time for saturday relax with Oric scene
And yes, i need swap colors in case, red bottom and black top . Heheheh
I list also few interfaces on Sell My Retro page.
Re: Cumulus Firware Compilation
Posted: Mon Jul 10, 2017 6:34 am
by kenneth
zaxon wrote: ↑Sun Jul 02, 2017 12:10 pm
...Also ,somebody know why in Cumulus is Flash EEprom 256, not normal eprom like 27c64 ? Rom for microdisc is 8 KB. So what about rest?
It's more handy for updating, you don't need to erase the software with an UV lamp to re-write. I suppose that the EEPROM contains also the update microprogram.
Re: Cumulus Firware Compilation
Posted: Mon Jul 10, 2017 7:46 pm
by Godzil
The EEPROM contain only the microdisk ROM and nothing else. (which is on a legal point a view quite problematic to be honest)
Re: Cumulus Firware Compilation
Posted: Mon Jul 10, 2017 8:16 pm
by Dbug
Godzil wrote: ↑Mon Jul 10, 2017 7:46 pm
The EEPROM contain only the microdisk ROM and nothing else. (which is on a legal point a view quite problematic to be honest)
It would probably be possible to replace the EEPROM by our own code.
As far as I remember, 90% of it is unused code from the first DOS, all the EEPROM does is to basically load some data, check it's a valid DOS format, loads the boot sector, and run the code after having disabled itself.
Probably about 256 bytes of code, give or take
Re: Cumulus Firware Compilation
Posted: Mon Jul 10, 2017 8:26 pm
by Godzil
Of course, I'm not saying it would be hard
Re: Cumulus Firware Compilation
Posted: Mon Jul 10, 2017 8:31 pm
by Dbug
All I mean is that this eprom is far from being a core part of the product, and in case of legal troubles looming, it would probably take a week to get a replacement one, and we could even use the additional room for adding stuff like a standard file loading library :p