Page 1 of 1
board stop working after driver mac enabled
Posted: Mon Jul 09, 2018 9:59 am
by denisson
hii
I am working with stm32f765 board. I have a problem when the MAC driver enabled board stops working. what i need to change in mac driver
denis
Re: board stop working after driver mac enabled
Posted: Mon Jul 09, 2018 10:14 am
by Giovanni
Moved to the support forum.
Re: board stop working after driver mac enabled
Posted: Mon Jul 09, 2018 10:17 am
by Giovanni
You need to check 2 things:
1) Clock settings for PHY.
2) GPIO settings (alternate functions) in your board.h for MAC.
Giovanni
Re: board stop working after driver mac enabled
Posted: Tue Jul 10, 2018 10:37 am
by denisson
thank you for responding, which files do I need to check?
what is hal_mac?
Re: board stop working after driver mac enabled
Posted: Tue Jul 10, 2018 11:01 am
by Giovanni
Hi,
It is obvious that you are new to ChibiOS, which board are you using? is one of those supported or something else?
Giovanni
Re: board stop working after driver mac enabled
Posted: Tue Jul 10, 2018 11:21 am
by denisson
I use stm32f765, the program I use in this board from the example RT-STM32F769I-DISCOVERY, for blink and serial work but when MAC enabled board does not work
denis
Re: board stop working after driver mac enabled
Posted: Tue Jul 10, 2018 12:36 pm
by Giovanni
So you are not using a supported board.
You need to create board files for your board (board.h board.c) or it will not work, board files contain the settings for all GPIOs and external clocks. Creating board files is quite complex because all parameters have to be inferred from the board schematic and then chosen from GPIO tables on the data sheet.
I suggest to get a supported board to start gaining confidence, starting with a port is probably too complex.
Giovanni
Re: board stop working after driver mac enabled
Posted: Fri Jul 13, 2018 8:21 am
by denisson
on mac_lld_init I found the problem, on the mii_find_phy (& ETHD1) and while mii_read (& ETHD1, MII_BMCR) & BMCR_RESET), which made the bord stop working.