File "cr_startup_lpc11.c" include

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

File "cr_startup_lpc11.c" include

1,525件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lmoreira on Thu Jun 17 00:36:55 MST 2010
Hi Guys,
I am very new to the LPCXpresso and ARM and I am trying to make sense of all the fectures of both. I had a look at some of the example programs and on the SCR section of each of them there is always a file called "cr_startup_lpc11.c" but I can not find where the include directive for it is on any of the files from the project.
can someone guide me in the right direction.
Thanks
           Luis
0 件の賞賛
返信
9 返答(返信)

1,492件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by coatesm on Thu Oct 07 03:40:16 MST 2010
Thanks
0 件の賞賛
返信

1,492件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Oct 07 02:24:23 MST 2010

Quote: coatesm
Another question about the startup file - I have noticed there are some differences between the startup file which is automatically generated by the project wizard and the startup file which are used in the example projects.  Which one should I use for my projects?


The startup code is periodically tweaked, and sometime is takes a while for pre-existing example projects to be updated with the newer startup code.

When creating a new project, we would recommend that you always use the version of the startup code created by the project wizard.

Regards,
CodeRedSupport
0 件の賞賛
返信

1,492件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Thu Oct 07 01:20:55 MST 2010
Which differences?
0 件の賞賛
返信

1,492件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by coatesm on Thu Oct 07 00:38:12 MST 2010
Hello,

Another question about the startup file - I have noticed there are some differences between the startup file which is automatically generated by the project wizard and the startup file which are used in the example projects.  Which one should I use for my projects?

Thanks

Martin
0 件の賞賛
返信

1,492件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Jun 17 02:01:46 MST 2010
Yes, it is created automatically by LPCXpresso IDE - as long you tick "create startup files" when you run through the project wizard.

Regards,
CodeRedSupport.
0 件の賞賛
返信

1,492件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lmoreira on Thu Jun 17 01:47:56 MST 2010
Ok, so what you are saying is that this file is generated automatically by LPCXpresso and added to the project when I create it?
Best Regards
                      Luis
0 件の賞賛
返信

1,492件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Jun 17 01:37:15 MST 2010
cr_startup_lpc11.c is executed from reset and after setting up the system calls the function 'main' within your application code. There is no need for your application code to call anything within the cr_startup_lpc11.c file.

Regards,
CodeRedSupport.
0 件の賞賛
返信

1,492件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lmoreira on Thu Jun 17 00:51:44 MST 2010
Hi,
so is it used by the linker? I can not see any mention of it on any of the code.
Thanks
           Luis
0 件の賞賛
返信

1,492件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Jun 17 00:47:20 MST 2010
cr_startup_lpc11.c is a source file, not an include file. It contains the startup code for the system that is executed as the MCU comes out of reset.

Regards,
CodeRedSupport.
0 件の賞賛
返信