Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: which is executed first on EB55,boot loder or cstartup?
PostPosted: Fri Jul 09, 2004 11:24 am 
Offline

Joined: Fri May 21, 2004 7:16 am
Posts: 19
Location: india
hi all,
This is regarding EB 55 board.
On this board,after Reset program starts to execute from flash connected at NCS0(which is also linked at 0x00000000 ).In flash boot loder is stored at address 0x01000000 (equivalent to 0x00000000 before remap)and application program is stored at address x01100000(equivalent to 0x00100000 before remap).
Then in this case ,

1.IS BOOT LODER EXECUTED BEFORE C STARTUP CODE?

2.IF BOOT LODER IS EXECUTED BEFORE C STRTUP, THEN IS IT EXECUTED AT SLOW CLOCK WITH NWS = 8?(AS LOW LEVEL INITIALIZATION IS PERFORMED IN C STARTUP)

3. FROM WHERE CAN I GET SOURCE CODE OF EB55 BOOT LODER?

Pratyush


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 12, 2004 11:55 am 
Offline

Joined: Thu Mar 25, 2004 12:10 am
Posts: 126
Location: Germany
Hi,
the question is wrong. You can't ask what is running first because this are several things :shock:.

Bootloader: This one starts the system.
C-Startup-Code: Makes all thinks, to start the C-part of your program.

If you use a bootloader and write it in C, you need also a C-Startup routine inside the bootloader.
If you write firmware for an embedded device, your firmware includes a bootloader part (which is responsible for the controller startup and the application itself). If your firmware is assembler based, you do not need a C-Startup-Routine.

You can look at the LED sample program. This includes system startup and C-Startup-Routine :).


Regards,
Edi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: