[Moved] problem in burning code in arm lpc2129 board

Status
Not open for further replies.

rangerskm

Full Member level 4
Joined
Jan 23, 2013
Messages
199
Helped
0
Reputation
2
Reaction score
0
Trophy points
1,296
Activity points
2,663
i am having baud rate problems in connecting arm lpc2129 with pc.
philips flash magic tool used to program code but there is connection problem in it .kindly help me in this
 

Re: problem in burning code in arm lpc2129 board

Post your error message screen shot . And check physical connection between pc and lpc2129.
 

Re: problem in burning code in arm lpc2129 board

error message :OPERATION FAILED ,FAILED TO AUTOBAUD STEP 1,SEE FLASHMAGICTOOL.COM/AUTOBAUD.HTML

this is the error i got brother.i dont know the problem i tried in different baud rates
 

Re: problem in burning code in arm lpc2129 board

Are using any development board or own board . Are using RS232 programming mode. There was no communication between pc and Lpc2129.
 

Re: problem in burning code in arm lpc2129 board

yes development board 2129.i am using usb to serial converter to connect the board with my laptop.but it cable worked fine with 8051 ,pic programming.what may be the problem??
 

Re: problem in burning code in arm lpc2129 board

Check again the LPC2129 In ISP mode.

And check same crystal selection in Flash Magic and Hardware.
 

Re: problem in burning code in arm lpc2129 board

yes bro.its 12 mhz .then do we need to change any option in flash magic software??
 

Re: problem in burning code in arm lpc2129 board

You can edit the frequency in Flash Magic. What is the crystal frequency used in hardware and Flash magic.
 
Re: problem in burning code in arm lpc2129 board

You can edit the frequency in Flash Magic. What is the crystal frequency used in hardware and Flash magic.


its 12 Mhz crystal .i tried from my desktop now its successfully burned the basic led code in to the board.i am having board from nskelectronics-

code not working in real time i checked the port pins with multimeter it shows 2.1v .please help me to rectify the problem ,i am trying for 2 days.
 

Re: problem in burning code in arm lpc2129 board

code not working in real time i checked the port pins with multimeter it shows 2.1v .please help me to rectify the problem ,i am trying for 2 days.
may be your delay is too small for your multimeter to pick up hence so..
give details about your code.
 
Re: problem in burning code in arm lpc2129 board

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

Re: problem in burning code in arm lpc2129 board

Code:
#include <lpc21xx.h>
i had been through some of the forums on same processor u are using with keil as compiler the header file they had included was:
Code:
#include "lpc21xx_keil.h"

and another thing even i tried putting some values like as you have used z<4000000 usually such values get truncated either you may or may not get it as warning(you will not get error) so try out like this:
Code:
void delay(unsigned int );
void main(void)
{
//initialsie here
//set port pins & call delay
delay(9999);
//clear port pins & call delay
delay(9999);
}
void delay(unsigned int y)
{
unsigned int z=0,c=0;
for(;y>0;y--)
{
  for(z=0;z<9999;z++)
{
c++;
}
}
   
}

sorry for any syntatical errors.
 
Re: problem in burning code in arm lpc2129 board


Remove the C++ from delay loop. and chek with simulation.. its works

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
    {
       for(c=0;c<100;c++);
    }
}
 
Re: problem in burning code in arm lpc2129 board

i modified ,its working in simulation but not in harware.is there any problem with the bootloader of lpc2129 ?the boot loader version 1.7
 

yeah i checked ,program burned successfully .but the led is not glowing ,it didnt even switching on ,i checked the voltage in port 0 pins. many pins are showing 2.13 v
 

Check your physical connections between port pin and LED.

And increase the delay the and check once again..

Post your schematic..
 
i checked directly with the port pins in core .same voltage i am getting.
 

Attachments

  • LPC2129 SCHMATIC UPDATED 10102008.pdf
    4.4 MB · Views: 131
  • ARM SCHEMATIC 2007.pdf
    268.2 KB · Views: 122

In schematics LED's connected in PORT 1, But your program Configured for PORT 0

Change the code for PORT 1 ...
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…