[En-Nut-Discussion] SAM7X256

Harald Kipp harald.kipp at egnite.de
Wed Dec 6 15:08:45 CET 2006


Nic,

At 21:46 04.12.2006 +1100, you wrote:
>Hi
>
>I have been trying ethernut on the Olimex SAM7X dev board.
>The latest 4.2.1 has a few problems in the startup code, it seems
>someone has made a temporary change for PLL settings maybe to
>accommodate their (non standard) board  and somehow the changes made
>it in the release ..
>
>line 194 should be: ldr     r0, =((25 << 16) | (28 << 8) | 5)
>line 205 should be:  mov     r0, #(PMC_PRES_CLK_2 | PMC_CSS_PLL_CLK)


Sorry about this. I needed different clock settings for MP3
decoding and may have accidently checked in the modified file.

In the next release all these settings will be configurable.



>What worries me a bit more is this in
>
>the emac code in EmacReset
>
>    outr(RSTC_MR, RSTC_KEY | (2 << RSTC_ERSTL_LSB) | RSTC_URSTEN);
>    outr(RSTC_CR, RSTC_KEY | RSTC_EXTRST);
>    while ((inr(RSTC_SR) & RSTC_NRSTL) == 0);
>
>If someone attaches some other device to the NRST pin, the emac init
>will reset it at the same time. Shouldn't the PHY reset be allocated
>to a separate pin ?

I've been wondering too, but that's how the PHY is wired on Atmel's
SAM7X-EK.

Harald




More information about the En-Nut-Discussion mailing list