Reply by mehiegl August 5, 20092009-08-05
--- In l..., "rfinnovations" wrote:
>
> --- In l..., "mehiegl" wrote:
> >
> > Thanks for the input Chris.
> >
> > It's not my project, and I really haven't worked or even played with the LPC or any other ARM processors much. I joined this group back when my company first got into the LPC2138 so I could try to learn a little about them. Now they are developing a larger system around the LCP2388.
> >
> > I've been asked to help out where I can to keep the project moving because the deadline is coming up. Maybe the project just needs a pair of fresh eyes.
> >
> > Mark
> >
> > --- In l..., "Chris_S" wrote:
> > >
> > > >> Can anyone confirm that the EMC works on later revs of the LPC2388?
> > >
> > > I use the EMC on 2468. I'm sure the 2388 works as well.
> > > EMC is tricky to setup. All settings have to be right for what you need,
> > > or often it will not work at all. Read doc very carefully.
> > > I have other EMC setup code here in previous posts.
> > >
> > > Chris.
> > >
> > >
> > >
> > >
> > Mark,
>
> I have suffered for two weeks with the memory controller on the LPC2388, and a kind person on this forum put me out of my misery. Now I can hopefully return the favour.
>
> Regardless of how well you read the LPC2388 documentation, you will not find a description of a register called EMC_DYN_CTRL (address 0xFFE08020). Set it to 0x00000000 and the memory controller will start functioning as described.
>
> Although the 2388 only supports DRAM, not SRAM, this register still exists and by default is set to enable dynamic refresh function (see the manual for the LPC2478)! Apparently this fact will be incorporated in a future revision of the 2388 manual.
>
> After that, the rest should come easy by following the docs.
>
> Hope it helps,
>
> Bruce.
>

Thanks for the information, Bruce. I'll pass it along.

It kind of jives with what Chris_S had to say in an earlier post about his experience with the LPC2468 EMC, except he mentioned having to set a config bit in EMC_DYN_CFG0 to match the bit in the EMC_STA_CFG0 for 32-bit SRAM usage.

I'll pass this along and see if it helps.

Mark

An Engineer's Guide to the LPC2100 Series

Reply by rfinnovations August 5, 20092009-08-05
--- In l..., "mehiegl" wrote:
>
> Thanks for the input Chris.
>
> It's not my project, and I really haven't worked or even played with the LPC or any other ARM processors much. I joined this group back when my company first got into the LPC2138 so I could try to learn a little about them. Now they are developing a larger system around the LCP2388.
>
> I've been asked to help out where I can to keep the project moving because the deadline is coming up. Maybe the project just needs a pair of fresh eyes.
>
> Mark
>
> --- In l..., "Chris_S" wrote:
> >
> > >> Can anyone confirm that the EMC works on later revs of the LPC2388?
> >
> > I use the EMC on 2468. I'm sure the 2388 works as well.
> > EMC is tricky to setup. All settings have to be right for what you need,
> > or often it will not work at all. Read doc very carefully.
> > I have other EMC setup code here in previous posts.
> >
> > Chris.
> >
> >
> >
>
Mark,

I have suffered for two weeks with the memory controller on the LPC2388, and a kind person on this forum put me out of my misery. Now I can hopefully return the favour.

Regardless of how well you read the LPC2388 documentation, you will not find a description of a register called EMC_DYN_CTRL (address 0xFFE08020). Set it to 0x00000000 and the memory controller will start functioning as described.

Although the 2388 only supports DRAM, not SRAM, this register still exists and by default is set to enable dynamic refresh function (see the manual for the LPC2478)! Apparently this fact will be incorporated in a future revision of the 2388 manual.

After that, the rest should come easy by following the docs.

Hope it helps,

Bruce.

Reply by mehiegl August 3, 20092009-08-03
Thanks for the input Chris.

It's not my project, and I really haven't worked or even played with the LPC or any other ARM processors much. I joined this group back when my company first got into the LPC2138 so I could try to learn a little about them. Now they are developing a larger system around the LCP2388.

I've been asked to help out where I can to keep the project moving because the deadline is coming up. Maybe the project just needs a pair of fresh eyes.

Mark

--- In l..., "Chris_S" wrote:
>
> >> Can anyone confirm that the EMC works on later revs of the LPC2388?
>
> I use the EMC on 2468. I'm sure the 2388 works as well.
> EMC is tricky to setup. All settings have to be right for what you need,
> or often it will not work at all. Read doc very carefully.
> I have other EMC setup code here in previous posts.
>
> Chris.
>
>
Reply by Chris_S August 3, 20092009-08-03
>> Can anyone confirm that the EMC works on later revs of the LPC2388?

I use the EMC on 2468. I'm sure the 2388 works as well.
EMC is tricky to setup. All settings have to be right for what you need,
or often it will not work at all. Read doc very carefully.
I have other EMC setup code here in previous posts.

Chris.


Reply by mehiegl August 3, 20092009-08-03
I am working with an engineer who is designing a system around the LPC2388. The engineer has created a board that places much of the system I/O in the EMC memory space through a couple of FPGA's containing all the glue logic. The engineer has not been able to get the interface to work.

A review of the Errata for the LPC2388 notes that there is a bug in the EMC that could explain this. However, I interpret the Errata to say that the bug only exists in Rev - silicon. The chips we currently have are Rev B, if I read the part markings correctly, both on a Keil development board and our prototype.

We are exploring the possibility that the problem is on our prototype board. We are building a second prototype but it will be a few days before we can fire it up.

Can anyone confirm that the EMC works on later revs of the LPC2388?