EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Programming problem.

Started by allanbr08 October 24, 2011
Hello,

I'm using an ARM7 LPC2138 series and I'm having some troubles here. When I try to programing using Flash Magic Tool version 5.84.2259 I receive the following message:

'Operation Failed. Failed to autobaud - step 1.'

I've already checked pin 0.14 and it's connected to pull-down so its in low when I press the reset buttom.
Im using a 20.00Mhz oscillator and I've also checked it and it's really working.

I connected the board using a USB with 9600 baud-rate. I've tried 19200 and 4800 baud-rate and both failed.

The MAX232's pins are connected as follow:

o pin 14(T1OUT) - pin2 of the serial RS232 plug.
o pin 13(R1IN) - pin3 of the serial RS232 plug.
o pin 12(R1OUT) - pin21 (P0.1) of the LPC2138.
o pin 11(T1IN) - pin19 (P0.0) of the LPC2138.

It's everthing right in that connections?

I thought the problem could be in the MAX232 Transeiver, so I used a program (Docklight V1.9) to transmit anything throw the serial and it worked well.The MAX232 transmited the information to the microcontroller.

I dont know what else to do. I've tried a lot of tutorials and have already sent an email to nxp and followed theirs instructions, but it didnt work.

If someone knows what is the problem or some instructions to verify any errors, please tell me.
Thanks.

An Engineer's Guide to the LPC2100 Series

--- In l..., "allanbr08" wrote:
>
> Hello,
>
> I'm using an ARM7 LPC2138 series and I'm having some troubles here. When I try to programing using Flash Magic Tool version 5.84.2259 I receive the following message:
>
> 'Operation Failed. Failed to autobaud - step 1.'
>
> I've already checked pin 0.14 and it's connected to pull-down so its in low when I press the reset buttom.
> Im using a 20.00Mhz oscillator and I've also checked it and it's really working.
>
> I connected the board using a USB with 9600 baud-rate. I've tried 19200 and 4800 baud-rate and both failed.
>
> The MAX232's pins are connected as follow:
>
> o pin 14(T1OUT) - pin2 of the serial RS232 plug.
> o pin 13(R1IN) - pin3 of the serial RS232 plug.
> o pin 12(R1OUT) - pin21 (P0.1) of the LPC2138.
> o pin 11(T1IN) - pin19 (P0.0) of the LPC2138.
>
> It's everthing right in that connections?
>
You might check your board design against Olimex's:
http://olimex.com/dev/pdf/ARM/LPC/LPC-P2138.pdf

Richard

I checked against Olimex schematic and its almost the same. The only difference is that I'm doing the reset manually. It could change anything in order to programming the ARM?

Thanks for your answer.

--- In l..., "rtstofer" wrote:
>
> --- In l..., "allanbr08" wrote:
> >
> > Hello,
> >
> > I'm using an ARM7 LPC2138 series and I'm having some troubles here. When I try to programing using Flash Magic Tool version 5.84.2259 I receive the following message:
> >
> > 'Operation Failed. Failed to autobaud - step 1.'
> >
> > I've already checked pin 0.14 and it's connected to pull-down so its in low when I press the reset buttom.
> > Im using a 20.00Mhz oscillator and I've also checked it and it's really working.
> >
> > I connected the board using a USB with 9600 baud-rate. I've tried 19200 and 4800 baud-rate and both failed.
> >
> > The MAX232's pins are connected as follow:
> >
> > o pin 14(T1OUT) - pin2 of the serial RS232 plug.
> > o pin 13(R1IN) - pin3 of the serial RS232 plug.
> > o pin 12(R1OUT) - pin21 (P0.1) of the LPC2138.
> > o pin 11(T1IN) - pin19 (P0.0) of the LPC2138.
> >
> > It's everthing right in that connections?
> >
> You might check your board design against Olimex's:
> http://olimex.com/dev/pdf/ARM/LPC/LPC-P2138.pdf
>
> Richard
>

Do you have a pull-up on p0.14 so it will come out of reset?
From: l... [mailto:l...] On Behalf Of allanbr08
Sent: Monday, October 24, 2011 12:28 PM
To: l...
Subject: [lpc2000] Programming problem.

Hello,

I'm using an ARM7 LPC2138 series and I'm having some troubles here. When I try to programing using Flash Magic Tool version 5.84.2259 I receive the following message:

'Operation Failed. Failed to autobaud - step 1.'

I've already checked pin 0.14 and it's connected to pull-down so its in low when I press the reset buttom.
Im using a 20.00Mhz oscillator and I've also checked it and it's really working.

I connected the board using a USB with 9600 baud-rate. I've tried 19200 and 4800 baud-rate and both failed.

The MAX232's pins are connected as follow:

o pin 14(T1OUT) - pin2 of the serial RS232 plug.
o pin 13(R1IN) - pin3 of the serial RS232 plug.
o pin 12(R1OUT) - pin21 (P0.1) of the LPC2138.
o pin 11(T1IN) - pin19 (P0.0) of the LPC2138.

It's everthing right in that connections?

I thought the problem could be in the MAX232 Transeiver, so I used a program (Docklight V1.9) to transmit anything throw the serial and it worked well.The MAX232 transmited the information to the microcontroller.

I dont know what else to do. I've tried a lot of tutorials and have already sent an email to nxp and followed theirs instructions, but it didnt work.

If someone knows what is the problem or some instructions to verify any errors, please tell me.

Thanks.



No, I have a pull-down on the pin 0.14. It has a jumper on it so when I jumper it, the pull-down force the pin to low . I have to do this before I press the reset button. So, when I press reset the pin 0.14 is at low level, a necessary condition to put the micro controller on the ISP mode, isn't it? Am I doing something wrong here?

Thanks.

--- In l..., Woolsey Matt wrote:
>
> Do you have a pull-up on p0.14 so it will come out of reset?
> From: l... [mailto:l...] On Behalf Of allanbr08
> Sent: Monday, October 24, 2011 12:28 PM
> To: l...
> Subject: [lpc2000] Programming problem.
>
> Hello,
>
> I'm using an ARM7 LPC2138 series and I'm having some troubles here. When I try to programing using Flash Magic Tool version 5.84.2259 I receive the following message:
>
> 'Operation Failed. Failed to autobaud - step 1.'
>
> I've already checked pin 0.14 and it's connected to pull-down so its in low when I press the reset buttom.
> Im using a 20.00Mhz oscillator and I've also checked it and it's really working.
>
> I connected the board using a USB with 9600 baud-rate. I've tried 19200 and 4800 baud-rate and both failed.
>
> The MAX232's pins are connected as follow:
>
> o pin 14(T1OUT) - pin2 of the serial RS232 plug.
> o pin 13(R1IN) - pin3 of the serial RS232 plug.
> o pin 12(R1OUT) - pin21 (P0.1) of the LPC2138.
> o pin 11(T1IN) - pin19 (P0.0) of the LPC2138.
>
> It's everthing right in that connections?
>
> I thought the problem could be in the MAX232 Transeiver, so I used a program (Docklight V1.9) to transmit anything throw the serial and it worked well.The MAX232 transmited the information to the microcontroller.
>
> I dont know what else to do. I've tried a lot of tutorials and have already sent an email to nxp and followed theirs instructions, but it didnt work.
>
> If someone knows what is the problem or some instructions to verify any errors, please tell me.
>
> Thanks.
>
>
>

That's right. But I found on my LPC2138 project that I had to pull the pin high so it would not be in ISP mode after reset.
The manual mentions internal pull-ups on port 1, but not on port 0.

From the manual:

Pin P0.14 that is used as hardware request for ISP requires special attention. Since P0.14 is in high impedance mode after reset,
it is important that the user provides external hardware (a pull-up resistor or other device) to put the pin in a defined state.
Otherwise unintended entry into ISP mode may occur.

Matt

From: l... [mailto:l...] On Behalf Of allanbr08
Sent: Monday, October 24, 2011 3:26 PM
To: l...
Subject: [lpc2000] Re: Programming problem.

No, I have a pull-down on the pin 0.14. It has a jumper on it so when I jumper it, the pull-down force the pin to low . I have to do this before I press the reset button. So, when I press reset the pin 0.14 is at low level, a necessary condition to put the micro controller on the ISP mode, isn't it? Am I doing something wrong here?

Thanks.

--- In l..., Woolsey Matt wrote:
>
> Do you have a pull-up on p0.14 so it will come out of [ISP after] reset?
> From: l... [mailto:l...] On Behalf Of allanbr08
> Sent: Monday, October 24, 2011 12:28 PM
> To: l...
> Subject: [lpc2000] Programming problem.
>
> Hello,
>
> I'm using an ARM7 LPC2138 series and I'm having some troubles here. When I try to programing using Flash Magic Tool version 5.84.2259 I receive the following message:
>
> 'Operation Failed. Failed to autobaud - step 1.'
>
> I've already checked pin 0.14 and it's connected to pull-down so its in low when I press the reset buttom.
> Im using a 20.00Mhz oscillator and I've also checked it and it's really working.
>
> I connected the board using a USB with 9600 baud-rate. I've tried 19200 and 4800 baud-rate and both failed.
>
> The MAX232's pins are connected as follow:
>
> o pin 14(T1OUT) - pin2 of the serial RS232 plug.
> o pin 13(R1IN) - pin3 of the serial RS232 plug.
> o pin 12(R1OUT) - pin21 (P0.1) of the LPC2138.
> o pin 11(T1IN) - pin19 (P0.0) of the LPC2138.
>
> It's everthing right in that connections?
>
> I thought the problem could be in the MAX232 Transeiver, so I used a program (Docklight V1.9) to transmit anything throw the serial and it worked well.The MAX232 transmited the information to the microcontroller.
>
> I dont know what else to do. I've tried a lot of tutorials and have already sent an email to nxp and followed theirs instructions, but it didnt work.
>
> If someone knows what is the problem or some instructions to verify any errors, please tell me.
>
> Thanks.
>
>
>



----Original Message----
From: l...
[mailto:l...] On Behalf Of Woolsey Matt
Sent: 24 October 2011 23:33 To: l...
Subject: RE: [lpc2000] Re: Programming problem.

> That's right. But I found on my LPC2138 project that I
> had to pull the pin high so it would not be in ISP mode
> after reset.
But he's trying to get into ISP mode.... so will need to pull P0.14 low...

Have you checked that the MAX232 is working the other way, back to the PC?
--
Tim Mitchell

try using 12mhz crystal.
38400 baudrate is generally working better for isp. Try it.
Check if crsytal over drive or under drive problem makes the crystal not to run. Check if crystal is running.
Sometimes the bootloader of the chip creates proble. Update to latest bootloader but be careful.
If using max232, it should be wrong. Use max3232 instead.
If manually using isp pin and reset, disable the rts and dtr control in advanced options in flash magic. If automatic, check the transistor outputs in ur hardware and pin 0.14 and reset are low while attempting the program option.
All the best
rajesh.v
mrr embedded systems pvt ltd

On Tue, 25 Oct 2011 00:58 IST allanbr08 wrote:

>Hello,
>
>I'm using an ARM7 LPC2138 series and I'm having some troubles here. When I try to programing using Flash Magic Tool version 5.84.2259 I receive the following message:
>
>'Operation Failed. Failed to autobaud - step 1.'
>
>I've already checked pin 0.14 and it's connected to pull-down so its in low when I press the reset buttom.
>Im using a 20.00Mhz oscillator and I've also checked it and it's really working.
>
>I connected the board using a USB with 9600 baud-rate. I've tried 19200 and 4800 baud-rate and both failed.
>
>The MAX232's pins are connected as follow:
>
>o pin 14(T1OUT) - pin2 of the serial RS232 plug.
>o pin 13(R1IN) - pin3 of the serial RS232 plug.
>o pin 12(R1OUT) - pin21 (P0.1) of the LPC2138.
>o pin 11(T1IN) - pin19 (P0.0) of the LPC2138.
>
>It's everthing right in that connections?
>
>I thought the problem could be in the MAX232 Transeiver, so I used a program (Docklight V1.9) to transmit anything throw the serial and it worked well.The MAX232 transmited the information to the microcontroller.
>
>I dont know what else to do. I've tried a lot of tutorials and have already sent an email to nxp and followed theirs instructions, but it didnt work.
>
>If someone knows what is the problem or some instructions to verify any errors, please tell me.
>Thanks.
>

Allan,

You tried use the "LPC2000 Flash Utility" instead "Flash Magic" ?
I used many times and always works.

Denis

2011/10/25 Tim Mitchell

> **
> ----Original Message----
> From: l...
> [mailto:l...] On Behalf Of Woolsey Matt
> Sent: 24 October 2011 23:33 To: l...
> Subject: RE: [lpc2000] Re: Programming problem.
> > That's right. But I found on my LPC2138 project that I
> > had to pull the pin high so it would not be in ISP mode
> > after reset.
>
> But he's trying to get into ISP mode.... so will need to pull P0.14 low...
>
> Have you checked that the MAX232 is working the other way, back to the PC?
>
> --
> Tim Mitchell
>
>
>


Hi,

Thanks everybody for the answers and the help.
Ive found that the problem was in my power supply that was unstable.
So I changed it and it worked perfect.

Thanks again,
Allan.


The 2024 Embedded Online Conference