ColdFire MCF52233DEMO

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ColdFire MCF52233DEMO

1,442 次查看
sharda
Contributor II

I am working on ColdFire MCF52233DEMO board. The default starting address on reset is 0x00000000 for flash.I want to change this address since i am developing a bootloader for MCF52233 controller using MCF52233DEMO board.

 

Can anyone tell what procedure i need to follow................................

标签 (1)
0 项奖励
回复
1 回复

729 次查看
mjbcswitzerland
Specialist V

Hi

 

There is no way to change the reset vector address on the M52233. This should however not impose any practical restriction.

 

Boot loaders are positioned to handle the normal reset and can jump to the application if there is no work to be performed, causing the application to start as if it were at the reset vector location.

 

Assuming the application code to be started by the boot loader is linked to 0x00000800 (rather than 0x00000000) the boot can start it by executing:

 

    move.l  #0x00000800,a0  
    move.l  (a0),sp
    move.l  #0x00000804,a0
    move.l  (a0),a0
    jmp (a0)

 

This loads the stack pointer from the location 0x00000800 (normally 0x00000000) and loads the PC from 0x00000804  (normally 0x00000004). The application code excecution then starts normally.

 

Regards

 

Mark

 

www.uTasker.com
- OS, TCP/IP stack, USB, device drivers and simulator for M521X, M521XX, M5221X, M5222X, M5223X, M5225X. One package does them all - "Embedding it better..."

 

0 项奖励
回复