After copying code from Flash to RAM?
2006-04-04 by volunteer_sysu
I am writing a bootloader a development kit based on LPC2210. I want to copy the code from Flash to RAM, which is asynchronic CellularRAM---- MT45W2Mx16P, will it work? After copying code from Flash to RAM, where shall I start my program? Is it just move the address of the first instruction in RAM to PC (ie. ldr pc, =(the address of the first instruction))? But I am puzzled that the program will run the code-copy segment again, which will cause the program to enter an endless loop. ( Maybe I am wrong ) could anyone give me an example? And tell me what mistake I made? thanks! Regards, Kevin