Bootloader for 9S12XDP512

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bootloader for 9S12XDP512

5,246 Views
PO220
Contributor IV
HI

I am looking to install a bootlader on my 9S12XDP512.
I find AN3275 "S12 All-Access for the HCS12 Family" that i understand
I find too AN2153 "A Serial Bootloader for Reprogramming the MC9S12DP256" that I dont understand...

Is there a bootloader for 9S12XDP512 ?
Can I use AN 3275 for my 9S12XDP512 ?

Tnak you in advance
Labels (1)
0 Kudos
Reply
7 Replies

1,161 Views
J2MEJediMaster
Specialist I
The AN3275 bootloader app derives most of its processor-specific addresses from a file, S12Derivative.h. This file is based on the MC9S12DP256.h header file. I would use the MC9S12XD512.h header file and compare its addresses to the one in S12Derivative.h. Make any changes where necessary, and build. As its name implies, the code has been factored to make it easy to adapt the bootloader to other S12 derivatives.

---Tom
0 Kudos
Reply

1,161 Views
PO220
Contributor IV
Thanks

I'll try this
0 Kudos
Reply

1,161 Views
PO220
Contributor IV

Hi,

I try to change S12Derivative for an S12XDP512...

Code Warrior MC9S12XDP512.h file is not writted with the same syntax as the S12Derivative of AN3275. Then, I emptied all the S12Derivative.h file an then I took again and check all registers which the compiler did not find any more.

Four register asked by the compiler don't existe on the S12XDP512 and I do not find an equivalent :

INITRM
INITEE
MEMSIZ1
MEMSIZ0

How can I leave myself of this dead way ?

Thank you in advance.

attache: the project modified with its errors


---------------------------------
http://www.68hc08.net la communauté Francophone

 

AN3275SWmyModifs.zip

Message Edited by t.dowe on 2009-10-21 12:19 AM
0 Kudos
Reply

1,161 Views
Alban
Senior Contributor II
Salut Petit Ours,

On S12X, you cannot move the EEPROM or RAM, that is why the INITxx registers don't exist.

The MMC chapter should shed a light on this.

Cheers,
Alban.
0 Kudos
Reply

1,161 Views
kp2309
Contributor I
Dear All,

         I was successful in implementing the serial Bootloader for mc9s12DP512 controller using the Application Note AN3275. Can anyone help me in porting the same code in mc9s12XDP512 controller and related changes for

Pls let me know the equivalent register for the below mentioned registers.

INITRM
INITEE
MEMSIZ1

Pls do the needful.

Regards,
Kalpesh
0 Kudos
Reply

1,161 Views
PO220
Contributor IV
Hi

I tried to read chapters "MMC" of the two components...very hard !

If I understand well, I can remove lines with INITxx and it's the compiler which will manage with the .PRM information (that I must modify with the good adress)

For MEMSIZx it is even more obscure for me.
1) the documentation of XDP512 presents 3 chapters for the flash modules (128KB, 256kB and 512KB FLASH Modules). Does the XDP512 have 512kB of FLASH ; why so many chapters?
2) what are used these registers on other S12 for ? Only so that the application can know the state of the material ?
3) the documentation of the XDP512 indicates that the 512k flash are cut out into 4 block of 128kbyte then 128 sectors of 1k (512KB Flash Module documentation)
The MMC chapter speaks about block of 16kB...I am lost!

Tnak you in advance for your light !
0 Kudos
Reply

1,161 Views
J2MEJediMaster
Specialist I
1) I've looked at the MC9S12XDP512 Data sheet and a search for MEMSIZx doesn't turn up anything. So I think you can safely remove those references. As it's name implies, the 512 suffix indicates the CPU has 512 KB of Flash.

2) Some of the other registers could deal with setting up the window into paged memory.

3) You're correct in that the memory is laid out as four 128 KB blocks or banks. However, you access them in 16 KB chunks using the page registers.

---Tom
0 Kudos
Reply