Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Can any one share the startup.s file for LPC2129 ,KEIL4 (assembly code)

Status
Not open for further replies.

haroon_tech

Member level 2
Joined
Apr 28, 2011
Messages
51
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
bangalore
Activity points
1,727
hi ,

i have working assembly code for LPC2129 code, can any one give the startup.s file for KEIL 4.



thank you
 

Why not use the startup.s generated by KEIL as a template?

BigDog

hi sir,

is there any problem with changing start up code for lpc2129 copied from lpc2148.. ??

thanking you in advance
 

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.


BigDog
 
thanks bigdogguru..

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 ??
 

Are you referring to the resident bootloader firmware in the LPC21xx device?

**broken link removed**

The latest version in the above zip file is v1.63, therefore the device is most likely using the latest revision.

Also, beware if improperly done the device maybe essentially "bricked."


In some cases there are secondary bootloaders which are installed on top of the base bootloader.

It's been a while since I last utilized a LPC2129, most of my work these days is with the newer ARM Cortex-Mx series.


I seriously doubt the resident bootloader is the issue.

Have you tried simple blinky code?

Post or upload the code with which you are have issues.


BigDog
 

keil ide version 4 used..

programmer-flash magic version 7.5

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!
    }
}
 

What type of dev board are you using, your own design or commercial dev board?

Can you provide schematics or a link to the board's documentation?

Also, what is the frequency of the attached crystal?


BigDog
 

Attachments

  • ARM SCHEMATIC 2007.pdf
    268.2 KB · Views: 96
  • LPC2129 SCHMATIC UPDATED 10102008.pdf
    4.4 MB · Views: 90
Last edited:

Hi,


shall i change the bootloader of the board.Is there any problem with the bootloader version 1.7..and schematic of board ..
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top