cancel
Showing results for 
Search instead for 
Did you mean: 

GPIO8 and ETHERNET incompat

ricardo2399
Associate II
Posted on December 16, 2008 at 09:05

GPIO8 and ETHERNET incompat

6 REPLIES 6
ricardo2399
Associate II
Posted on May 17, 2011 at 09:55

Hi everyone

I'm experiencing a problem betwen GPIO8 and ENET port.

When i configure and init GPIO8, ENET just stop working, and i can´t see why!!

Did anyone already had this problem?

Thanks ppl :|

usatyj
Associate II
Posted on May 17, 2011 at 09:55

There is a problem with init GPIO8 throuth GPIO_Init function! see gpio bug in forum.

dhoyen
Associate II
Posted on May 17, 2011 at 09:55

Hi guys,

Could you give more information about this bug ?

I use both (Ethernet, as GPIO8) and not (yet) look a problem. What is the symptom.

I m using the ST lib v2.0.

Thanks in advance.

usatyj
Associate II
Posted on May 17, 2011 at 09:55

If you try to initialise GPIO8 thruth GPIO library? GPIO_Init function write into GPIO0, not in GPIO8 (because GPIO8 have not such registers).

But if you not use GPIO0, you do not see this problem.

dhoyen
Associate II
Posted on May 17, 2011 at 09:55

Ok,

Effectively, i don't use the GPIO0,

that's why, i couldn't detect this problem.

Regards.

Damien

boris1
Associate
Posted on May 17, 2011 at 09:55

I'm also have this problem!

I found that if I do like that:

Code:

<BR><BR> SCU_APBPeriphClockConfig(__GPIO8 ,ENABLE); <BR><BR> SCU_APBPeriphReset(__GPIO8,DISABLE); <BR><BR> SCU_APBPeriphClockConfig(__GPIO9 ,ENABLE); <BR><BR> SCU_APBPeriphReset(__GPIO9,DISABLE); <BR><BR> GPIO8->DDR = 0xFF; <BR><BR> GPIO9->DDR = 0x07; <BR><BR>

than I have problem in 91x_enet.c file in function ENET_Init(). In the code:

Code:

<BR><BR> /* De-assert the SRESET bit of ENET + MAC devices */ <BR><BR> ENET_DMA->SCR &= ~ENET_SCR_SRESET; <BR><BR>

If I set breakpoint at that line my JTAG fail. If I just execute this line i see no hardware action :( but register SCR changed.

What kind of problem does we have?

P.S. Related topics:

http://www.st.com/mcu/forums-cat-5076-21.html

Regards.

Boris.

[ This message was edited by: boris1 on 16-12-2008 13:50 ]

[ This message was edited by: boris1 on 16-12-2008 13:51 ]