Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - olimex_man

Pages: [1]
1
NXPTM LPC2XXX and LPC17XX / Re: Real Time Clock support LPC23xx
« on: May 29, 2008, 11:25:52 AM »
Hi.
I implemented the RTC, but in an very simple mode, since I don't need any power saving modes. And I use the RTC ALARM for getting an update of the RTC values every night , over TCP (from a server). This works fine.
And I implemented a support for the Nokia LCD on the Olimex board. This works fine too. :)
If someone is interested in the code for the RTC or the Nokia LCD I can post it here. (but the code is in an very "early phase", this means not perfect and maybe are errors in it, but it works so it helps getting started)

Regards
Martin

2
NXPTM LPC2XXX and LPC17XX / Re: Real Time Clock support LPC23xx
« on: April 29, 2008, 07:25:08 AM »
Hi Mark.
Thanks for the work with the register defines. I think next week (no time at the moment) I will try to implement the RTC and then post the results.

Regards
Martin

3
NXPTM LPC2XXX and LPC17XX / Real Time Clock support LPC23xx
« on: April 22, 2008, 12:30:31 PM »
Hallo.
As I see the RTC in the Olimex_LPC2378_demo is not enabled. Is that right? Or can´t I find it in the code?

I want to enable the RTC and clock it with the extern oscillator on the board. Tested this in an other program and the RTC was very accurate.
The purpose for running the RTC is that I want to have the exact time every time a value comes to one of the UART´s.

Regards
Martin

4
NXPTM LPC2XXX and LPC17XX / Re: Olimex LPC2378-STK ethernet problem
« on: April 22, 2008, 07:05:46 AM »
Hi.

Quote
You say that you are reading 0x00221610 - the Micrel part has the ID 0x00221619 (are you sure about the 0 at the end?)
You are right, it is a 9. Don´t know where i saw the 0.

But the other thing is strange. As you see
Code: [Select]
/#define _LPC21XX                                                     // specify LPC21XX subset
    #ifdef _LPC21XX
        #define IAR_LPC210X
        #define TARGET_HW           "IAR LPC210X Card"
    #else
        #define OLIMEX_LPC2378_STK                                     
        #define TARGET_HW           "OLIMEX_LPC2378_STK"
    #endif
I changed the value in config.h. Nevertheless the checking value is 0x20005C90.
I´m using uTaskerV1.3_beta-LPC....thought this is the last release?


Quote
If the reset command is sometimes failing you could try increasing the wait time allowed:
i = 1000000; -> i = 10000000; to see whether it is a timing issue or not.
If it still sometimes fails it is probably some communication unreliability rather that the wait limit being critical.
I increased the wait time, but it still sometimes failed. So it is not a problem with the wait limit. Any idea about that?

Thanks
Martin


EDIT:
I downloaded the ServicePack 3 and I see my version is not the newest one. Sorry for that. Thought all the time my version is the newest one. My fault. So i gonna test it with the new files.

EDIT 2:
ok, it works. And the chekcing works now to. Of course it does, now it is expecting the right value.


But the problem with the reset command in
Code: [Select]
while (fnReadMII(DP83848_BASIC_CONTROL_REGISTER) & PHY_SOFTWARE_RESET) {// wait until reset completed
        if (--i == 0) {                                                  // quit if no response
            return;
        }
    }
is still there.


EDIT 3:
The problem only occurs while debug sessions or after a board reset (with the reset button). When I unlink the power supply and connect to the board, ist starts without any problems. Every time. But this other users in this forum topic reported too.

Regards
Martin

5
NXPTM LPC2XXX and LPC17XX / Re: Olimex LPC2378-STK ethernet problem
« on: April 21, 2008, 02:40:21 PM »
I removed the PHYcheck and it works now. Great. Thank you for the help.

But one more thing is strange:
It is not working every time. Sometimes it return in the following statement:
Code: [Select]
    while (fnReadMII(DP83848_BASIC_CONTROL_REGISTER) & PHY_SOFTWARE_RESET) {// wait until reset completed
        if (--i == 0) {                                                  // quit if no response
            return;
        }
    }
So it is necessary to restart a few times.

Quote
However, can you say what value is being read from the PHY?
The expected value is 0x20005C90. Is that right? The debugger shows that the value that is being read is 0x00221610.


Regards
Martin

6
NXPTM LPC2XXX and LPC17XX / Re: Olimex LPC2378-STK ethernet problem
« on: April 21, 2008, 08:28:29 AM »
Hi Mark.
I found something. I run the debugger and the simulator and compare every statement and the written values in fnConfigEthernet() ....no differences.
BUT
Code: [Select]
    ulPhyIdentifier = fnReadMII(DP83848_PHY_IDENTIFIER_1);               // check that the PHY is working correctly by reading its identifier
    ulPhyIdentifier <<= 16;
    ulPhyIdentifier |= fnReadMII(DP83848_PHY_IDENTIFIER_2);              // check that the PHY is working correctly by reading its identifier

    if ((ulPhyIdentifier & PHY_MASK) != PHY_IDENTIFIER) {
        return;                                                          // if the identifier is incorrect the phy isn't resonding correctly
    }
at this point the target failed the if-instruction and returns. So, as you thought, its a problem with the PHY.

7
NXPTM LPC2XXX and LPC17XX / Re: Olimex LPC2378-STK ethernet problem
« on: April 18, 2008, 12:49:38 PM »
Hi Mark.
I downloaded crossworks evaluation version and gonna test now utasker with this. Debug works fine, test it with one of the crossworks examples.
Thanks for help.
Now I try to find the problem with the uTasker ethernet on my board.

Regards
Martin

8
NXPTM LPC2XXX and LPC17XX / Re: Olimex LPC2378-STK ethernet problem
« on: April 18, 2008, 09:28:34 AM »
Hi.
Debugging does not work. Read many entries in forums, tried all the hints. But after working for two days with the config files for openocd and gdb I have no more ideas.
And without debugging I can´t test where the problem lunching uTasker is.
Anyway, many thanks for you help.
If in future you find the problem, post it here please. Thanks.

regards
Martin

9
NXPTM LPC2XXX and LPC17XX / Re: Olimex LPC2378-STK ethernet problem
« on: April 16, 2008, 01:29:25 PM »
Hi Mark.
Thanks for the fast answers.
I tried using different LANs, no effect.

Debugging is at the moment a "little" problem for me, because the only possibility is GCC/Eclipse and the Olimex ARM-USB-OCD. No one here can help me with this tools. Would need some configuration files for debugging. Gonna try it on the weekend.

Regards.
Martin

10
NXPTM LPC2XXX and LPC17XX / Re: Olimex LPC2378-STK ethernet problem
« on: April 15, 2008, 07:47:11 AM »
Hi.
After my problems with the new version of IAR (thanks Mark for the advice thats a problem with the newer version, without it I would still wonder what I´m doing wrong) unfortunately I´m having the same problem that is mention in this topic:
After flashing the hex files to the board (tried the hex files from the homepage and my own compiled) no http or ftp activity. The UART activity works fine, I can read it, change the config an so on. But trying to connect to the board with the web browser is not working.
All config are correct (IP-Adress, Gateway and so on) and I think the hardware is also ok, because the uIP example from IAR works fine.
At the moment I´m without any idea (still a beginner).
Thanks for any help.

Regards
Martin

11
NXPTM LPC2XXX and LPC17XX / Re: IAR and Olimex 2378STK problem
« on: April 14, 2008, 07:54:34 AM »
Thanks for the help.

I changed at college to my Visual Studio and the GNU_stand_alone build. This works very good too.

Regards
Martin

12
NXPTM LPC2XXX and LPC17XX / Re: IAR and Olimex 2378STK problem
« on: April 13, 2008, 08:20:29 AM »
The core variant was ARM7TDMI.
I tried it now a home witch an older version of IAR aund it works fine. So its really a problem with the newer version (witch i have at college  :-\).

One more question:
What changes are needed to configure the whole thing for the olimex 2378 stk? Is it only changing the board in the config.h?
Sorry for so many newbie questions.

Regards
Martin

13
NXPTM LPC2XXX and LPC17XX / Re: IAR and Olimex 2378STK problem
« on: April 11, 2008, 01:31:49 PM »
Hi Mark.
My IAR-Version is 5.11, the newest one.
You think that is the problem?

Martin

14
NXPTM LPC2XXX and LPC17XX / IAR and Olimex 2378STK problem
« on: April 11, 2008, 09:15:12 AM »
Hi.
I´m using EWARM and the Olimex 2378stk. Just tried to compile, but the are many errors, all in the startup.s (bad instruction, expression to complex and some more).
Is there anything to change? Can not find anything about this in the tutorial.
Thanks.
Martin

Pages: [1]