[En-Nut-Discussion] SAM7X256

Nicolas Moreau ngbmoreau at yahoo.com.au
Mon Dec 4 11:46:43 CET 2006


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)

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 ?

Nic



More information about the En-Nut-Discussion mailing list