Why not create a new project using the wizard, selecting the proper microcontroller and then allow it to generate the proper startup.s code?
Once the base project is generated, you can simply copy/import your source code files to the project, make any necessary code changes for the port and recompile for the new microcontroller.
can we change the bootloader file for lpc2129 ..i am having bootloader version 1.70 .my firmware loaded successfullly to lpc2129 but not working ..i tried with many programs.what may be error ??
do i need to take any initial settings in keil ide and programmer ??
Code:
#include <lpc21xx.h>
void delay(void);
int main(void)
{
IO0DIR = 0xFFFFFFFF; // Configure all pins on Port 0 as Output
while(1)
{
IO0SET = 0xFFFFFFFF; // Turn on LEDs
delay();
IO0CLR = 0xFFFFFFFF; // Turn them off
delay();
}
return 0; // normally this wont execute
}
void delay(void)
{
int z,c;
c=0;
for(z=0; z<4000000; z++) // You can edit this as per your needs
{
c++; // something needs to be here else KEIL compiler will remove the for loop!
}
}