大家好
我从飞思卡尔网站上下载了AN2295,看了文档,是不是先编译对应的bootloader烧写进MCU,然后写自己的应用代码,通过AN2295的上位机工具+串口把应用代码烧进MCU,这个应用代码的例子好像文档写的不是很清楚,是不是只是修改ROM的地址就可以了,盼大侠回复,谢谢
Hi Teddy,
I attached one project for your reference. Several points below you have to take care when you write app project based on AN2295.
1. the last one or more flash sectors(according to protection configuration ) where bootloader is located must be protected and vector redirection must be enabled.
2. the startup routine of app project should be located in the last vector of relocated vector table.
3. In PRM file, the flash location for bootloader should be decreased.
Any doubt, let me know easily .
B.R
Weiping