Reply by rtstofer November 10, 20052005-11-10
--- In lpc2000@lpc2..., "Karl Olsen" <kro@p...> wrote:
>
> ---- Original Message ----
> From: "Tom Walsh" <tom@o...>
> To: <lpc2000@lpc2...>
> Sent: Thursday, November 10, 2005 3:27 AM
> Subject: Re: [lpc2000] Re: Uart receive timeout Interrupt?
> >
> > Peter Homann wrote:
> >
> >> Richard,
> >>
> >> Yes, it had been working. I think I downloaded a Hex file for a
> >> processor other than the LPC2138 and then it seemed to stop
working.
> >>
> >> I don't think it is a hardware problem.
> >>
> >> For the third time, is it possible to erase the boot loader or
screw
> >> it up?
> >>
> > No, you cannot. According to the Philips doc that 8K sector is
> > protected from erasure.
> >
> > Please refer to the Philips manual: "LPC213x User Manual"
#UM10120,
> > top of page 221.
>
> Still, Philips has released the program "LPC2000 Boot Loader update
> via ISP" that somehow modifies the similarly unmodifiable boot
> sectors of the devices prior to LPC213x...
>
> Karl Olsen
>

Yes, the LPC2106 User Manual states that the 'unlock' command will
allow the boot block to be overwritten.

Richard


An Engineer's Guide to the LPC2100 Series

Reply by Karl Olsen November 10, 20052005-11-10
---- Original Message ----
From: "Tom Walsh" <tom@tom@...>
To: <lpc2000@lpc2...>
Sent: Thursday, November 10, 2005 3:27 AM
Subject: Re: [lpc2000] Re: Uart receive timeout Interrupt?
>
> Peter Homann wrote:
>
>> Richard,
>>
>> Yes, it had been working. I think I downloaded a Hex file for a
>> processor other than the LPC2138 and then it seemed to stop working.
>>
>> I don't think it is a hardware problem.
>>
>> For the third time, is it possible to erase the boot loader or screw
>> it up?
>>
> No, you cannot. According to the Philips doc that 8K sector is
> protected from erasure.
>
> Please refer to the Philips manual: "LPC213x User Manual" #UM10120,
> top of page 221.

Still, Philips has released the program "LPC2000 Boot Loader update
via ISP" that somehow modifies the similarly unmodifiable boot
sectors of the devices prior to LPC213x...

Karl Olsen



Reply by Ake Hedman, eurosource November 10, 20052005-11-10
I have ported some samples for the MBC2130 and GCC that I can send you
if you like. No FreeRTOS yet I'm affraid.

The samples I ported is the

blink_switch
blink_switch_irq
ds18s20 (some bugs fixed also in the 1-wire code which is now more stable.)
uart0
uart0_irq

Cheers
/Ake

Peter Homann wrote:

> Hi all,
>
> Well I've got the MCB2130 talking to the Philips flash utility. Now I'm
> not sure why?
>
> The only thing I can thing of is that I've rebooted the PC? how
> frustrating.
>
> Regardless, thanks for all the help.
>
> Now on to the real problem.
>
> I'm trying to get FreeRTOS running on the LPC2138.
>
> I can use the Keil demo compiler to compile the Keil demo to work.
>
> I've managed to get the 2016 GCC demo compiled and downloaded to the
> board. Of course it doesn't work. :-)
>
> I'm new to the ARM LPC2138, GCC and FreeRTOS, so it is a steep learning
> curve.
>
> The LPC2016 GCC FreeRTOS demo is targeted at the Olimex board.
>
> Can anyone point me to a demo targeted at the LPC2138 or at least point
> me in the right direction to configure RTOS for the LPC2138.
>
> Once again that for the help with the flashing problem.
>
> Cheers,
>
> Peter.
>
>
>
>
> Peter Homann wrote:
> > Hi,
> >
> > Thanks guys. I'll break out the test gear tonight.
> >
> > From what is being said, it is either a hardware problem, or the
> LPC is
> > not entering boot mode.
> >
> > I can hold P0.14 lo, then use a terminal program to issue '?' and
> see if
> > there is a response.
> >
> > Do you know what the rest of the command set is?, or will the '?'
> > character cause the boot loader to spit it out at me?
> >
> > Cheers,
> >
> > Peter.
> >
> > rtstofer wrote:
> >
> >
> >>--- In lpc2000@lpc2..., Tom Walsh <tom@o...> wrote:
> >>
> >>
> >>>Peter Homann wrote:
> >>>
> >>>
> >>>
> >>>>Richard,
> >>>>
> >>>>Yes, it had been working. I think I downloaded a Hex file for a
> >>>>processor other than the LPC2138 and then it seemed to stop
> >>
> >>working.
> >>
> >>
> >>>>I don't think it is a hardware problem.
> >>>>
> >>>>For the third time, is it possible to erase the boot loader or
> >>
> >>screw it up?
> >>
> >>
> >>>>
> >>>No, you cannot. According to the Philips doc that 8K sector is
> >>>protected from erasure.
> >>>
> >>>Please refer to the Philips manual: "LPC213x User Manual"
> >>
> >>#UM10120, top
> >>
> >>
> >>>of page 221.
> >>>
> >>>
> >>>TomW
> >>
> >>
> >>I read all around that paragraph. But that's the word - it can't be
> >>overwritten.
> >>
> >>Richard
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>>.
>
>
>
>


--
---
Ake Hedman (YAP - Yet Another Programmer)
eurosource, Brattbergavägen 17, 820 50 LOS, Sweden
Phone: (46) 657 413430 Cellular: (46) 73 84 84 102
Company home: http://www.eurosource.se
Kryddor/Te/Kaffe: http://www.brattberg.com
Personal homepage: http://www.eurosource.se/akhe
Automated home: http://www.vscp.org


Reply by Peter Homann November 10, 20052005-11-10
Hi all,

Well I've got the MCB2130 talking to the Philips flash utility. Now I'm
not sure why?

The only thing I can thing of is that I've rebooted the PC? how frustrating.

Regardless, thanks for all the help.

Now on to the real problem.

I'm trying to get FreeRTOS running on the LPC2138.

I can use the Keil demo compiler to compile the Keil demo to work.

I've managed to get the 2016 GCC demo compiled and downloaded to the
board. Of course it doesn't work. :-)

I'm new to the ARM LPC2138, GCC and FreeRTOS, so it is a steep learning
curve.

The LPC2016 GCC FreeRTOS demo is targeted at the Olimex board.

Can anyone point me to a demo targeted at the LPC2138 or at least point
me in the right direction to configure RTOS for the LPC2138.

Once again that for the help with the flashing problem.

Cheers,

Peter.

Peter Homann wrote:
> Hi,
>
> Thanks guys. I'll break out the test gear tonight.
>
> From what is being said, it is either a hardware problem, or the LPC is
> not entering boot mode.
>
> I can hold P0.14 lo, then use a terminal program to issue '?' and see if
> there is a response.
>
> Do you know what the rest of the command set is?, or will the '?'
> character cause the boot loader to spit it out at me?
>
> Cheers,
>
> Peter.
>
> rtstofer wrote:
>
>
>>--- In lpc2000@lpc2..., Tom Walsh <tom@o...> wrote:
>>
>>
>>>Peter Homann wrote:
>>>
>>>
>>>
>>>>Richard,
>>>>
>>>>Yes, it had been working. I think I downloaded a Hex file for a
>>>>processor other than the LPC2138 and then it seemed to stop
>>
>>working.
>>
>>
>>>>I don't think it is a hardware problem.
>>>>
>>>>For the third time, is it possible to erase the boot loader or
>>
>>screw it up?
>>
>>
>>>>
>>>No, you cannot. According to the Philips doc that 8K sector is
>>>protected from erasure.
>>>
>>>Please refer to the Philips manual: "LPC213x User Manual"
>>
>>#UM10120, top
>>
>>
>>>of page 221.
>>>
>>>
>>>TomW
>>
>>
>>I read all around that paragraph. But that's the word - it can't be
>>overwritten.
>>
>>Richard
>>
>>
>>
>>
>>
>>
>>
>>
>>Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>

--
------------------------------
Web: www.homanndesigns.com
email: homann@homa...
Phone: +61 421 601 665
www.homanndesigns.com/ModIO.html - Modbus Interface Unit
www.homanndesigns.com/DigiSpeedDeal.html - DC Spindle control
www.homanndesigns.com/TurboTaig.html - Taig Mill Upgrade board



Reply by rtstofer November 10, 20052005-11-10
--- In lpc2000@lpc2..., Peter Homann <groups@h...> wrote:
>
> Hi,
>
> Thanks guys. I'll break out the test gear tonight.
>
> From what is being said, it is either a hardware problem, or the
LPC is
> not entering boot mode.
>
> I can hold P0.14 lo, then use a terminal program to issue '?' and
see if
> there is a response.
>
> Do you know what the rest of the command set is?, or will the '?'
> character cause the boot loader to spit it out at me?

There's a bit of a discussion in the User Manual - in fact, I
thought it was quite complete although I haven't tried to use it to
implement a downloader.



Reply by Peter Homann November 10, 20052005-11-10
Hi,

Thanks guys. I'll break out the test gear tonight.

From what is being said, it is either a hardware problem, or the LPC is
not entering boot mode.

I can hold P0.14 lo, then use a terminal program to issue '?' and see if
there is a response.

Do you know what the rest of the command set is?, or will the '?'
character cause the boot loader to spit it out at me?

Cheers,

Peter.

rtstofer wrote:

> --- In lpc2000@lpc2..., Tom Walsh <tom@o...> wrote:
>
>>Peter Homann wrote:
>>
>>
>>>Richard,
>>>
>>>Yes, it had been working. I think I downloaded a Hex file for a
>>>processor other than the LPC2138 and then it seemed to stop
>
> working.
>
>>>I don't think it is a hardware problem.
>>>
>>>For the third time, is it possible to erase the boot loader or
>
> screw it up?
>
>>>
>>>
>>
>>No, you cannot. According to the Philips doc that 8K sector is
>>protected from erasure.
>>
>>Please refer to the Philips manual: "LPC213x User Manual"
>
> #UM10120, top
>
>>of page 221.
>>
>>
>>TomW
>
>
> I read all around that paragraph. But that's the word - it can't be
> overwritten.
>
> Richard
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>

--
------------------------------
Web: www.homanndesigns.com
email: homann@homa...
Phone: +61 421 601 665
www.homanndesigns.com/ModIO.html - Modbus Interface Unit
www.homanndesigns.com/DigiSpeedDeal.html - DC Spindle control
www.homanndesigns.com/TurboTaig.html - Taig Mill Upgrade board



Reply by rtstofer November 9, 20052005-11-09
--- In lpc2000@lpc2..., Tom Walsh <tom@o...> wrote:
>
> Peter Homann wrote:
>
> >Richard,
> >
> >Yes, it had been working. I think I downloaded a Hex file for a
> >processor other than the LPC2138 and then it seemed to stop
working.
> >
> >I don't think it is a hardware problem.
> >
> >For the third time, is it possible to erase the boot loader or
screw it up?
> >
> >
> >
> No, you cannot. According to the Philips doc that 8K sector is
> protected from erasure.
>
> Please refer to the Philips manual: "LPC213x User Manual"
#UM10120, top
> of page 221.
>
>
> TomW

I read all around that paragraph. But that's the word - it can't be
overwritten.

Richard


Reply by Tom Walsh November 9, 20052005-11-09
Peter Homann wrote:

>Richard,
>
>Yes, it had been working. I think I downloaded a Hex file for a
>processor other than the LPC2138 and then it seemed to stop working.
>
>I don't think it is a hardware problem.
>
>For the third time, is it possible to erase the boot loader or screw it up?
>
>
>
No, you cannot. According to the Philips doc that 8K sector is
protected from erasure.

Please refer to the Philips manual: "LPC213x User Manual" #UM10120, top
of page 221. TomW

--
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------


Reply by rtstofer November 9, 20052005-11-09
--- In lpc2000@lpc2..., Peter Homann <groups@h...> wrote:
>
> Richard,
>
> Yes, it had been working. I think I downloaded a Hex file for a
> processor other than the LPC2138 and then it seemed to stop
working.
>
> I don't think it is a hardware problem.
>
> For the third time, is it possible to erase the boot loader or
screw it up?
>
> Cheers,
>
> Peter.

We need Philips to weigh in on this. I noticed from the User Manual
that IAP is prevented from overwriting the boot loader and I would
expect the loader to protect itself when doing ISP.

Anything is possible but I would look around a little more before I
worried about the loader. For example, are you certain that P0.14
is actally pulled low during reset? I would look at it with a scope
or logic probe (LED if I had to) just to be certain something else
wasn't happening.

I would certainly look at the check box in the lower right corner of
the Flash Utility window and make sure it was checked - Use DTR/RTS
for Reset and Boot Loader Selection. Certainly answers my dumb
question! I'll incorporate this concept when I design my board.

Richard


Reply by Peter Homann November 9, 20052005-11-09
Richard,

Yes, it had been working. I think I downloaded a Hex file for a
processor other than the LPC2138 and then it seemed to stop working.

I don't think it is a hardware problem.

For the third time, is it possible to erase the boot loader or screw it up?

Cheers,

Peter.

rtstofer wrote:
> --- In lpc2000@lpc2..., Peter Homann <groups@h...> wrote:
>
>>Richard,
>>
>>Will do.
>>
>>The schematic for the board and how P0.14 is controlled via the
>
> serial
>
>>port 0 is posted on their website at;
>>
>>http://www.keil.com/mcb2130/mcb2130-schematics.pdf
>>
>>Cheers,
>>
>>Peter.
>
>
> It might be a pretty dumb question on my part. It must have worked
> or at least that was the intent. That is a very nice design. No
> jumpers to move, no buttons to press. I like it!
>
> Richard
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
> .
>

--
------------------------------
Web: www.homanndesigns.com
email: homann@homa...
Phone: +61 421 601 665
www.homanndesigns.com/ModIO.html - Modbus Interface Unit
www.homanndesigns.com/DigiSpeedDeal.html - DC Spindle control
www.homanndesigns.com/TurboTaig.html - Taig Mill Upgrade board