Booting & LCF

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

Booting & LCF

3,201 次查看
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,115 次查看
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,115 次查看
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,115 次查看
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,115 次查看
Fresher
Contributor I
Hi,
Actually I am targetting msc814x which is having sc3400 processor.
0 项奖励
回复