2008-12-16 12:05 AM
2011-05-17 12:55 AM
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 :|2011-05-17 12:55 AM
There is a problem with init GPIO8 throuth GPIO_Init function! see gpio bug in forum.
2011-05-17 12:55 AM
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.2011-05-17 12:55 AM
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.2011-05-17 12:55 AM
Ok,
Effectively, i don't use the GPIO0, that's why, i couldn't detect this problem. Regards. Damien2011-05-17 12:55 AM
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: 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 ]