LPC51U68 IAP重映射及跳转问题

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

LPC51U68 IAP重映射及跳转问题

2,311 Views
zhaoyunlong_164
Contributor I

大家好:

        我正在使用LPC51U68进行项目开发,目前正在调试IAP功能,因为是第一次开发这个功能,所以有几个问题想要得到帮助,如下:

1.我之前看了很多关于IAP的信息,同时也使用了官方提供的例程,学会了内部Flash的擦写,但是我不知道如何进行boot与应用程序之间的相互跳转,我是想应用程序从0x8000(扇区1)处开始,boot程序从0x0开始。

2.重映射功能该如何实现,我查到需要对VTOR 寄存器操作,但是我并没有在UM11071的手册上找到这个寄存器的介绍,请问这个寄存器的介绍在哪里,或者说我应该怎么操作才能实现重映射? 下面是官方程序中的代码。VTOR.png__Vectors.png

      非常感谢各位的帮助

Labels (1)
Tags (1)
0 Kudos
7 Replies

2,056 Views
jeremyzhou
NXP Employee
NXP Employee

Hi 云龙 赵,

非常感谢使用NXP产品,很高兴为你提供技术支持!
1.我之前看了很多关于IAP的信息,同时也使用了官方提供的例程,学会了内部Flash的擦写,但是我不知道如何进行boot与应用程序之间的相互跳转,我是想应用程序从0x8000(扇区1)处开始,boot程序从0x0开始。
-- 建议参考LPC11U68的bootloader应用相关手册,因为目前LPC51U68没有对应的应用手册,他们俩都是基于Coretex-M0+核的,所以具有可参考性,链接如下:

Scalable Entry Level 32-bit Microcontroller (MCU) based on Arm® Cortex®-M0+ and Cortex®-M0 Cores | N... 
2.重映射功能该如何实现,我查到需要对VTOR 寄存器操作,但是我并没有在UM11071的手册上找到这个寄存器的介绍,请问这个寄存器的介绍在哪里,或者说我应该怎么操作才能实现重映射? 下面是官方程序中的代码。
-- 关于VTOR寄存器的介绍,请参考The Definitive Guide to
ARM® Cortex®-M0 and Cortex-M0+ Processors, 因为这是Cortex-M核内部的寄存器。

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

2,056 Views
zhaoyunlong_164
Contributor I

非常感谢,我看了M0+的手册后,找到了VTOR寄存器,并且在UM11071上找到了关于重映射的内容,手册的下载地址是https://www.nxp.com.cn/webapp/sps/download/preDownload.jsp?render=true。其中3.5章应该是介绍这个的,但是我不明白应该如何修改,我使用的是keil,不知道imageHeader相关的定义该如何设置? 

1569463499(1).png

再次表示感谢~~

0 Kudos

2,056 Views
jeremyzhou
NXP Employee
NXP Employee

Hi 云龙 赵,

感谢回复。
你想修改imageHearder内的什么值来说实现什么样功能或目的呢?

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

2,056 Views
zhaoyunlong_164
Contributor I

想要实现IAP的重映射功能,因为我看11U68中有一个MAP的寄存器可以实现,这个51U68是没有的,觉得这块应该是实现这个功能的,但是又不知道如何去实现,所以想请教一下,感谢帮助~~

0 Kudos

2,056 Views
jeremyzhou
NXP Employee
NXP Employee

Hi 云龙 赵,

感谢回复。

目前,LPC51U68不支持此功能。

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

2,056 Views
zhaoyunlong_164
Contributor I

那IAP该如何实现呢?

0 Kudos

2,056 Views
jeremyzhou
NXP Employee
NXP Employee

Hi 云龙 赵,

感谢回复。

IAP没有指令是实现bootloader跳转到application功能的,具体IAP指令功用,

请参考手册里面的介绍。

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos