Booting & LCF

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Booting & LCF

3,220件の閲覧回数
Fresher
Contributor I
Hi,
I have just started the implementation of booting of an embedded chip . In my case I am getting my program downloaded from flash memory and going to volatile memory. As per my understanding it is the startup code which will distribute the different segments like .text,.data etc to their physical address as per defined in lcf. So how program counter goes from booting program to startup address , where the address of startup code is define(in which file in general). 
And also what is the exactly the .start_address segment contains ( address of ?)
ラベル(1)
0 件の賞賛
返信
4 返答(返信)

1,134件の閲覧回数
CrasyCat
Specialist III
Hello
 
I am afraid the answer here depends highly on the CPU you are targeting.
Are you targeting a HC08, HC12, Coldfire, .....?
 
CrasyCat
0 件の賞賛
返信

1,134件の閲覧回数
Fresher
Contributor I

Hi,

In LCF we generally give the location for sections to reside finally. If for any particular section we don’t give any address then where will that reside in the memory. I mean is there any default location described anywhere except that in LCF.

0 件の賞賛
返信

1,134件の閲覧回数
CrasyCat
Specialist III
Hello
 
I would recommend you to generate a map file when linking.
The map file then indicates the start and end address of each section/object in the application.
 
CrasyCat
0 件の賞賛
返信

1,134件の閲覧回数
Fresher
Contributor I
Hi,
Actually I am targetting msc814x which is having sc3400 processor.
0 件の賞賛
返信