bootloader for 12xdt512

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

bootloader for 12xdt512

Jump to solution
1,137 Views
luck
Contributor III

hi,

 

I m new in writing a bootloader for freescale 12xdt512 microcontroller.

 

so i wanted to know following things:

 

1 what things i needed to study or have knowledge before i can start writing the bootloader.

 

2 how a bootloader works .

 

3 what things are needed to be taken care in boot loader.

 

4 what are the different steps in the process of writing a boot loader.

 

5 and any other detail or info which is important.

 

so please if anybody can provide some help.

 

Thanks

Laxman


Labels (1)
1 Solution
605 Views
RadekS
NXP Employee
NXP Employee

Yes, thank you.

AN2153 is very good start when making a bootloader, mainly when you programming directly in assembler.

Differences between S12XD and S12D family you can find in application note AN2615 HCS12 and S12X Family Compatibility

http://www.freescale.com/files/microcontrollers/doc/app_note/AN2615.pdf

Just for full information: Above attached bootloader (for S12XD) is written in C and for communication with PC you will also need some terminal program (like HyperTerm or TerTerm).  

The same is valid for AN4258 code.


View solution in original post

4 Replies
605 Views
RadekS
NXP Employee
NXP Employee

I think that your request is really wide oriented.

Shouldn’t be better get working example bootloader and modify them?

Below you can find example code for S12XD bootloader (contains short description, bootloader code, conversion tool and demo application).

Some theory you can get from our newer application note AN4258 Serial Bootloader for S12(X) Microcontrollers Based on 180 nm Technology

http://www.freescale.com/files/microcontrollers/doc/app_note/AN4258.pdf

http://www.freescale.com/files/microcontrollers/doc/app_note/AN4258SW.zip

Note: S12XD is built on 250nm technology, and AN4258 is based on bootloader code for S12XD. However AN4258CW code is not compatible with S12XD family.

Differences between S12XD (250nm) and S12XE(180nm) family describes AN3242 S12XD and S12XE Family Compatibility. http://www.freescale.com/files/microcontrollers/doc/app_note/AN3242.pdf


605 Views
luck
Contributor III

Thanks for reply Sestak.

I hope now i have something to start with.

0 Kudos
605 Views
StenS
Contributor III

Also this http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2153.pdf is a very good start when making a bootloader. It is for the 9S12D-family, not the S12XD, but it can rather easily be converted to the XD-processors also. The advantage with this bootloader is that it doesn't require any fancy program on the PC-side, any terminal program (like HyperTerm or TerTerm) is enough.

Sten


606 Views
RadekS
NXP Employee
NXP Employee

Yes, thank you.

AN2153 is very good start when making a bootloader, mainly when you programming directly in assembler.

Differences between S12XD and S12D family you can find in application note AN2615 HCS12 and S12X Family Compatibility

http://www.freescale.com/files/microcontrollers/doc/app_note/AN2615.pdf

Just for full information: Above attached bootloader (for S12XD) is written in C and for communication with PC you will also need some terminal program (like HyperTerm or TerTerm).  

The same is valid for AN4258 code.