I need to help with programming LPC2106 via LPC2000 flash utility. I've got board with one LPC2106 connected via UART0 to COM1. P0.14 is pulled low, power supply pins are in limits but I can't sucesfully connect with flash utility. Always I get message "Cannot communicate with test board". X1 and X2 pins are connected to 7.3728MHz resonator. If I measure data between PC and LPC2106 it has some response on flash utility requests, but no success:-( I had several pcs of this hardware working, but this one doesn't work. I've changed LPC2106 with new one but still with the same result. Does anybody have idea how to fix this problem? Michal
LPC2106 flash utility problem
Started by ●February 27, 2006
Reply by ●February 27, 20062006-02-27
Michal Krestan wrote: >I need to help with programming LPC2106 via LPC2000 flash utility. I've got board with one LPC2106 connected via UART0 to COM1. P0.14 is pulled low, power supply pins are in limits but I can't sucesfully connect with flash utility. Always I get message "Cannot communicate with test board". X1 and X2 pins are connected to 7.3728MHz resonator. If I measure data between PC and LPC2106 it has some response on flash utility requests, but no success:-( I had several pcs of this hardware working, but this one doesn't work. I've changed LPC2106 with new one but still with the same result. Does anybody have idea how to fix this problem? > > > Well, you don't have to use any software to connect to the LPC2106. All you really need is a terminal program, something like minicom or hypercom will work. Just set them to 8 bits no parity and no handshake. Then start pressing the "?" key, eventually, the processor will see the "?" and send you "Synchronized". When it does that, you respond with the same thing: "Synchronized". You are now linked. TomW > Michal > > > > > > > >Yahoo! Groups Links > > > > > > > > > > > -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.net, http://cyberiansoftware.com "Windows? No thanks, I have work to do..." ----------------
Reply by ●February 27, 20062006-02-27
----- Original Message ----- From: Tom Walsh To: lpc2000@lpc2... Sent: Monday, February 27, 2006 1:10 PM Subject: Re: [lpc2000] LPC2106 flash utility problem Michal Krestan wrote: >I need to help with programming LPC2106 via LPC2000 flash utility. I've got board with one LPC2106 connected via UART0 to COM1. P0.14 is pulled low, power supply pins are in limits but I can't sucesfully connect with flash utility. Always I get message "Cannot communicate with test board". X1 and X2 pins are connected to 7.3728MHz resonator. If I measure data between PC and LPC2106 it has some response on flash utility requests, but no success:-( I had several pcs of this hardware working, but this one doesn't work. I've changed LPC2106 with new one but still with the same result. Does anybody have idea how to fix this problem? > > > I've tested this you described bellow. I'll get always response "Sychronized", when I'm sending "?" character, but after this, if I'll type my response "Synchronized", I'll get back for each character typed some unknown response in form of several random characters. Michal Well, you don't have to use any software to connect to the LPC2106. All you really need is a terminal program, something like minicom or hypercom will work. Just set them to 8 bits no parity and no handshake. Then start pressing the "?" key, eventually, the processor will see the "?" and send you "Synchronized". When it does that, you respond with the same thing: "Synchronized". You are now linked. TomW > Michal > > > > > > > >Yahoo! Groups Links > > > > > > > > > > > -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.net, http://cyberiansoftware.com "Windows? No thanks, I have work to do..." ---------------- SPONSORED LINKS Microcontrollers Microprocessor Intel microprocessors Pic microcontrollers ------ YAHOO! GROUPS LINKS a.. ------
Reply by ●February 27, 20062006-02-27
At 01:05 PM 2/27/06 +0100, Michal Krestan wrote: >I need to help with programming LPC2106 via LPC2000 flash utility. I've >got board with one LPC2106 connected via UART0 to COM1. P0.14 is pulled >low, power supply pins are in limits but I can't sucesfully connect with >flash utility. Always I get message "Cannot communicate with test board". >X1 and X2 pins are connected to 7.3728MHz resonator. If I measure data >between PC and LPC2106 it has some response on flash utility requests, but >no success:-( I had several pcs of this hardware working, but this one >doesn't work. I've changed LPC2106 with new one but still with the same >result. Does anybody have idea how to fix this problem? Use a faster crystal? The minimum frequency specced for serial ISP programming is 10MHz (Pg 26 of the LPC2106 data sheet). Robert " 'Freedom' has no meaning of itself. There are always restrictions, be they legal, genetic, or physical. If you don't believe me, try to chew a radio signal. " -- Kelvin Throop, III http://www.aeolusdevelopment.com/
Reply by ●February 27, 20062006-02-27
Em Seg 27 Fev 2006 09:05, Michal Krestan escreveu:
> I need to help with programming LPC2106 via
LPC2000 flash utility. I've got
> board with one LPC2106 connected via UART0 to COM1. P0.14 is pulled low,
> power supply pins are in limits but I can't sucesfully connect with
flash
> utility. Always I get message "Cannot communicate with test
board". X1 and
> X2 pins are connected to 7.3728MHz resonator. If I measure data between PC
> and LPC2106 it has some response on flash utility requests, but no
> success:-( I had several pcs of this hardware working, but this one
doesn't
> work. I've changed LPC2106 with new one but still with the same
result.
> Does anybody have idea how to fix this problem?
>
> Michal
Maybe isnt the frequency of your crystal?
The datasheet says the LPC2106 must have a crystal from 10 to 25MHz, and maybe
the Flash program expects at minimum a 10MHz crystal to program the UART0 of
the LPC.
I suggest to you to change the crystal to see if it works.
Reply by ●February 27, 20062006-02-27
----- Original Message ----- From: Xtian Xultz To: lpc2000@lpc2... Sent: Monday, February 27, 2006 2:17 PM Subject: Re: [lpc2000] LPC2106 flash utility problem Em Seg 27 Fev 2006 09:05, Michal Krestan escreveu: > I need to help with programming LPC2106 via LPC2000 flash utility. I've got > board with one LPC2106 connected via UART0 to COM1. P0.14 is pulled low, > power supply pins are in limits but I can't sucesfully connect with flash > utility. Always I get message "Cannot communicate with test board". X1 and > X2 pins are connected to 7.3728MHz resonator. If I measure data between PC > and LPC2106 it has some response on flash utility requests, but no > success:-( I had several pcs of this hardware working, but this one doesn't > work. I've changed LPC2106 with new one but still with the same result. > Does anybody have idea how to fix this problem? > I've tried to use 11.0592MHz crystal, but with same result:-( Michal Maybe isnt the frequency of your crystal? The datasheet says the LPC2106 must have a crystal from 10 to 25MHz, and maybe the Flash program expects at minimum a 10MHz crystal to program the UART0 of the LPC. I suggest to you to change the crystal to see if it works. SPONSORED LINKS Microcontrollers Microprocessor Intel microprocessors Pic microcontrollers ------ YAHOO! GROUPS LINKS a.. ------
Reply by ●February 28, 20062006-02-28
At 02:37 PM 2/27/2006 +0100, Michal Krestan wrote: > Em Seg 27 Fev 2006 09:05, Michal Krestan escreveu: > > I need to help with programming LPC2106 via LPC2000 flash utility. > I've got > > board with one LPC2106 connected via UART0 to COM1. P0.14 is pulled low, > > power supply pins are in limits but I can't sucesfully connect with flash > > utility. Always I get message "Cannot communicate with test board". > X1 and > > X2 pins are connected to 7.3728MHz resonator. If I measure data > between PC > > and LPC2106 it has some response on flash utility requests, but no > > success:-( I had several pcs of this hardware working, but this one > doesn't > > work. I've changed LPC2106 with new one but still with the same result. > > Does anybody have idea how to fix this problem? > > > > I've tried to use 11.0592MHz crystal, but with same result:-( Well, it had to be checked. Have you tried connecting with a terminal? Scoped the lines? Marginal transceivers and bad connections have been reported as causing problems. > Maybe isnt the frequency of your crystal? > The datasheet says the LPC2106 must have a crystal from 10 to 25MHz, > and maybe > the Flash program expects at minimum a 10MHz crystal to program the > UART0 of > the LPC. Actually the datasheet says the minimum frequency is 1MHz, but 10MHz is needed for serial ISP. Some sort of limitation on their autobaud routines maybe? Robert " 'Freedom' has no meaning of itself. There are always restrictions, be they legal, genetic, or physical. If you don't believe me, try to chew a radio signal. " -- Kelvin Throop, III http://www.aeolusdevelopment.com/
Reply by ●February 28, 20062006-02-28
Em Ter 28 Fev 2006 00:12, Robert Adsett escreveu:
> At 02:37 PM 2/27/2006 +0100, Michal Krestan
wrote:
> > Em Seg 27 Fev 2006 09:05, Michal Krestan escreveu:
> > > I need to help with programming LPC2106 via LPC2000 flash
utility.
> >
> > I've got
> >
> > > board with one LPC2106 connected via UART0 to COM1. P0.14 is
pulled
> > > low, power supply pins are in limits but I can't
sucesfully connect
> > > with flash utility. Always I get message "Cannot
communicate with
> > > test board".
> >
> > X1 and
> >
> > > X2 pins are connected to 7.3728MHz resonator. If I measure data
> >
> > between PC
> >
> > > and LPC2106 it has some response on flash utility requests, but
no
> > > success:-( I had several pcs of this hardware working, but this
one
> >
> > doesn't
> >
> > > work. I've changed LPC2106 with new one but still with the
same
> > > result. Does anybody have idea how to fix this problem?
> >
> > I've tried to use 11.0592MHz crystal, but with same result:-(
>
> Well, it had to be checked. Have you tried connecting with a
> terminal? Scoped the lines? Marginal transceivers and bad connections
> have been reported as causing problems.
>
> > Maybe isnt the frequency of your crystal?
> > The datasheet says the LPC2106 must have a crystal from 10 to 25MHz,
> > and maybe
> > the Flash program expects at minimum a 10MHz crystal to program the
> > UART0 of
> > the LPC.
>
> Actually the datasheet says the minimum frequency is 1MHz, but 10MHz is
> needed for serial ISP. Some sort of limitation on their autobaud routines
> maybe?
>
> Robert
>
> " 'Freedom' has no meaning of itself. There are always
restrictions, be
> they legal, genetic, or physical. If you don't believe me, try to
chew a
> radio signal. " -- Kelvin Throop, III
> http://www.aeolusdevelopment.com/
>
Sorry if this messages dont help, but I am really happy, because the
first
board I made (entirelly), solded (by hand, with iron solder) worked just
fine, the ISP worked fine from the first time. Everybody here (in Brasil) is
playing the carnival and I here working, but I am happy too. I used a 10MHz
crystal, and had no problemas with ISP. I used a simple MAX232 powered with
5V and I had no problems.
Reply by ●February 28, 20062006-02-28
Are you using a purchased development board or one that you made yourself? If it's a purchased board, which one is it and who made it? Thanks, Mike
Reply by ●February 28, 20062006-02-28
Em Ter 28 Fev 2006 11:26, mfrazier@mfra... escreveu: > Are you using a purchased development board or one that you made yourself? > If it's a purchased board, which one is it and who made it? > > Thanks, > Mike > First I buyed a development board from a brazilian vendor called Elaxys (www.elaxys.com.br), I am using the EX_LPC_M01 wich is just nice, and cheap (for brazilian prices, our import taxes are simply abusive and a board assembled here become much more cheaper). With that board I made a few firmwares, and the board comes with a CDROM that contains tha gnuarm ready to use in Linux and Windows (of course, I use Linux), a lot of libraries made by Elaxys wich is MIT licensed (as seen on http://www.elaxys.com.br/produtos/lpc/ex-lpc-lib1/ but unfortunatelly only in portuguese) wich have nice functions, like one to made an routine a ISR (I cound not find how to do it in gnuarm alone, I can only made an ISR with these libraries), I buyed an Wiggler JTAG and comes in the CD too a program to connect GDB to the paralell port (the program is called exmon and can be downloaded from the Elaxys site). With that baord I tested the ISP program from Philips, and lpc2isp. Then I designed my own board, uploaded some firmwares and I am testing right now. It is now really nice to develop im my board, because I made an ISP header that have an ON-OFF switch to power the entirelly board, and another switch that puts P0.14 low. And a DB9 caonnector to connect to the computer serial port. So, When I power the board with the ISP switch on, I load the firmware. Then I power off, turn the ISP switch off, turn the board on and the firmware runs, very nice. I developed a lot with PIC microcontrollers, using Microchip ICSP but I allways had to plug and unplug the ISCP connector, the ISP is just great. Ah! another neat feature, I use UART1 in my system, and I use UART0 as a debug-out (I send bytes like opcodes to show me what the firmware is doing) so I use the same serial connection to read these caracters in minicom. Really nice...