Dear Andrey,
I make the boot loader example run in the TWR-K60N512.
The boot loader can download the image in the project fnet\fnet_demos\shell_boot.ewp .
The application firmware runs normally after downloading.
I replace the image with the one(in the attachment) in the demo project “TWR-K60N512_Quick_Start_Demo” that is provided by Freescale in the TWR-K60N512.
The application firmware cannot run normally after downloading. And the boot loader firmware resets again and again.
I modify the source code in the boot loader firmware.
Replace “(( void()() )FNET_CPU_INSTRUCTION_ADDR(address))(); / Jump. */” with
“JumpToUserApplication(((unsigned long)0xC000), ((unsigned long)( 0xC000 +4)));”
void JumpToUserApplication(unsigned long userSP, unsigned long userStartup)
{
// set up stack pointer
__asm("msr msp, r0");
__asm("msr psp, r0");
// Jump to PC (r1)
__asm("mov pc, r1");
}
The application firmware can run normally after downloading after I modify the boot loader firmware.
I do not know what is the reason.
Can you help me find out it?
Best regards.
Robin Zou.
Robin-XiaoYong Zou
ABB Xiamen Low Voltage Equipment Company Limited
BU LPLS E&D China
No. 12-20,3rd Chuang Xin Road Xiamen SEZ,Fujian 361006 P.R.China
CN
Phone: +86 592 5767877
Telefax: +86 592 6038110
Mobile: +86 181-5089-3720
email: robin-xiaoyong.zou@cn.abb.com<mailto:robin-xiaoyong.zou@cn.abb.com>