Booting & LCF

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

Booting & LCF

3,205 Views
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 ?)
Labels (1)
0 Kudos
Reply
4 Replies

1,119 Views
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 Kudos
Reply

1,119 Views
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 Kudos
Reply

1,119 Views
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 Kudos
Reply

1,119 Views
Fresher
Contributor I
Hi,
Actually I am targetting msc814x which is having sc3400 processor.
0 Kudos
Reply