Boot Loader Application On LPC1768

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

Boot Loader Application On LPC1768

2,015 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nagalakshmi on Fri Feb 17 05:53:47 MST 2012
[COLOR=#000000][FONT=Times New Roman, serif][SIZE=4]Dear Friends,[/SIZE][/FONT][/COLOR]


[COLOR=#000000][FONT=Times New Roman, serif][SIZE=4]I am working on LPC 1768 Controller. I am trying to implement [B]boot loader[/B] in my application so that I can update the firmware in the target board MCU through external flash (I need to download the firmware to MCU without JTAG, through external flash).[/SIZE][/FONT][/COLOR]

[COLOR=#000000][FONT=Times New Roman, serif][SIZE=4]If anybody having standard code and suitable documents for this, Plz give me. [/SIZE][/FONT][/COLOR]

[COLOR=#000000][FONT=Times New Roman, serif][SIZE=4]And suggest me how to begin this application. [/SIZE][/FONT][/COLOR]

[SIZE=4]Thanks&Regards,[/SIZE]

Nagalakshmi
0 项奖励
回复
9 回复数

1,884 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Feb 23 05:31:56 MST 2012
What is hanging, the bootloader or your application that the bootloader invokes?

If you are ending up at the default handler, that would indicate that an interrupt is being triggered that your code (either the bootloader or you application - depending upon when the hang occurs) does not have a dedicated handler for.

I suspect that you probably have interrupts still being triggered from the bootloader's setup of the system (eg USB) when you switch over to running your actual application. Probably best to disable interrupts in this case as you jump until your application code has completed its set up of the system hardware.

Regards,
CodeRedSupport
0 项奖励
回复

1,884 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nagalakshmi on Wed Feb 22 21:43:32 MST 2012

Quote: CodeRedSupport
And you have tried debugging the function that carries out the jump to see what is actually happening? I would advise single stepping though at the instruction level, taking careful note of the values in the registers.

http://support.code-red-tech.com/CodeRedWiki/DebugViewAsm

Once you get through this problem, you may also find this FAQ on debugging application loaded via a bootloader useful...

http://support.code-red-tech.com/CodeRedWiki/DebugThroughBootloader

Regards,
CodeRedSupport


Its hanging in "intDefault handler"
0 项奖励
回复

1,884 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Feb 22 02:22:12 MST 2012

Quote: nagalakshmi
Thank u very much sir,that  problem is solved,we are uploading code from external flash to internal flash,after uploading the code we are trying to jump to application code location as 0x10000,that time its hanging,if u have any example code,please reply



And you have tried debugging the function that carries out the jump to see what is actually happening? I would advise single stepping though at the instruction level, taking careful note of the values in the registers.

http://support.code-red-tech.com/CodeRedWiki/DebugViewAsm

Once you get through this problem, you may also find this FAQ on debugging application loaded via a bootloader useful...

http://support.code-red-tech.com/CodeRedWiki/DebugThroughBootloader

Regards,
CodeRedSupport
0 项奖励
回复

1,884 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nagalakshmi on Tue Feb 21 21:35:33 MST 2012

Quote: Rob65
Ehh... enable CRP in your application?

But this does not suddenly appear, the linker script files that are generated from your project match the settings that your project has (so no CRP in your project means no CRP in the original linker script).

You might want to search this site and the Code Red support site using the sticky post all on top of this forum and read up on CRP when you have a problem with this.

Rob


Thank u very much sir,that  problem is solved,we are uploading code from external flash to internal flash,after uploading the code we are trying to jump to application code location as 0x10000,that time its hanging,if u have any example code,please reply
0 项奖励
回复

1,884 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rob65 on Tue Feb 21 10:49:39 MST 2012

Quote: nagalakshmi
if we try to change the linker file,its giving error as "CRP_enabled,but no crp word provided with in application".please reply


Ehh... enable CRP in your application?

But this does not suddenly appear, the linker script files that are generated from your project match the settings that your project has (so no CRP in your project means no CRP in the original linker script).

You might want to search this site and the Code Red support site using the sticky post all on top of this forum and read up on CRP when you have a problem with this.

Rob
0 项奖励
回复

1,884 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nagalakshmi on Tue Feb 21 02:42:23 MST 2012

Quote: Rob65
Then there must be an error in your code.
Have a look at the USB bootloader that is delivered with the examples in the LPCXpresso tools.
LPC17xx\RDB1768cmsis2.zip is the file you want to import into a (empty) workspace, RDB1768cmsis2_usb_bootloader is the project you want to study.

Rob


thanks for quick reply,in RDB1768_usb_bootloader,mentioned to change the link scripts file,if we try to change the linker file,its giving error as "CRP_enabled,but no crp word provided with in application".please reply
0 项奖励
回复

1,884 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rob65 on Tue Feb 21 00:33:19 MST 2012

Quote: nagalakshmi
after uploading the code from external flash to internal flash,not jumping to application. we given location as 0x10000.please reply



Then there must be an error in your code.
Have a look at the USB bootloader that is delivered with the examples in the LPCXpresso tools.
LPC17xx\RDB1768cmsis2.zip is the file you want to import into a (empty) workspace, RDB1768cmsis2_usb_bootloader is the project you want to study.

Rob
0 项奖励
回复

1,884 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nagalakshmi on Mon Feb 20 22:07:53 MST 2012

Quote: CodeRedSupport
In the first place, try searching past forum posts for "bootloader" / "boot loader" - there have been a lot of previous questions and answers in this area, some of them in the (very) recent past....

http://knowledgebase.nxp.com/showthread.php?t=2182

Regards,
CodeRedSupport


thanks for quick reply,but we have a problem that after uploading the code from external flash to internal flash,not jumping to application. we given location as 0x10000.please reply
0 项奖励
回复

1,884 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Sat Feb 18 06:48:49 MST 2012
In the first place, try searching past forum posts for "bootloader" / "boot loader" - there  have been a lot of previous questions and answers in this area, some of them in the (very) recent past....

http://knowledgebase.nxp.com/showthread.php?t=2182

Regards,
CodeRedSupport
0 项奖励
回复