Bootloader help

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,855件の閲覧回数
ralu
Contributor III

I need to make bootloader so there is possibilities for remote upgrading of FW.

Currently I have simple flash upload on upper half of Flash and then coying on lower part but since code increased I need better and more robust aproach.

 

I have extrernal RomFlash avaliable and my plan is to copy code from there.

 

My only problem is how to put certain part of code (bootloader) on specific place, so it does not get overwriten during writing on Flash.

 

I was thinking of 3 aproches.

 

1st:

Using some copiler's directive to put code on cretain place

 

2nd:

Abusing linker.

 

3rd.

Abusing inline function.

 

 

I would preferer 1st aproach so can somebody help me whit such directives? Some parts of codes are also in ASM so few pointers on this parts would be also helpful.

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
1,004件の閲覧回数
J2MEJediMaster
Specialist I

FAQ-27147 shows how to locate a function at a particular address. The technique might be useful for what you are doing.

 

---Tom

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,005件の閲覧回数
J2MEJediMaster
Specialist I

FAQ-27147 shows how to locate a function at a particular address. The technique might be useful for what you are doing.

 

---Tom

0 件の賞賛
返信
1,004件の閲覧回数
ralu
Contributor III

Thaks for your replay 

 

 

I am posting working link

http://www.freescale.com/webapp/TransformXMLServlet?XmlId=FAQ-27147&XslId=SingleFaqDisplay.xsl&XslId...

 

(it took me 10min to figure it out) 

 

 

0 件の賞賛
返信