initiation ethernet block lpc1768, target error 15

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

initiation ethernet block lpc1768, target error 15

1,013 Views
martinbal
Contributor I

I am trying to initiate the Ethernet block on a lpc1768.

The block is powered up. The pins are set

EMAC-MAC1 reset is set and deasserted.

EMAC-Command reset set.

Next step is initialising MAC control registers.

EMAC-MAC1 = all pass flag set etc..

At this point  SW debug breaks down.

15: Target error from Register access: Ee(FF). Redlink interface error 255.

It is impossible to pass this point in the program. Whatever I skip in the rest of the program after reset of the MAC I either get this message or the program gets somewhere in loop.

When I stop the debug. It takes some time before the IDE responds with terminating the process all together.

Who has a solution?

0 Kudos
Reply
1 Reply

893 Views
martinbal
Contributor I

The problem lies in a not working PHY chip. During initiation of the Ethernet block nearly immediately an internal communication  between ethernet block and PHY takes place. Because the PHY is not reacting, It results in an internal wait state. The debuffer has not access to this process.

With a proper functioning PHY chip the communicion finishes properly  and control is returned to the flash code. At that point the debugger can follow the execution again.

Problem solved.

0 Kudos
Reply