board stop working after driver mac enabled

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
denisson
Posts: 14
Joined: Fri May 11, 2018 9:19 am
Been thanked: 2 times

board stop working after driver mac enabled

Post 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
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: board stop working after driver mac enabled

Post by Giovanni »

Moved to the support forum.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: board stop working after driver mac enabled

Post 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
denisson
Posts: 14
Joined: Fri May 11, 2018 9:19 am
Been thanked: 2 times

Re: board stop working after driver mac enabled

Post by denisson »

thank you for responding, which files do I need to check?
what is hal_mac?
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: board stop working after driver mac enabled

Post 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
denisson
Posts: 14
Joined: Fri May 11, 2018 9:19 am
Been thanked: 2 times

Re: board stop working after driver mac enabled

Post 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
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: board stop working after driver mac enabled

Post 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
denisson
Posts: 14
Joined: Fri May 11, 2018 9:19 am
Been thanked: 2 times

Re: board stop working after driver mac enabled

Post 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.
Post Reply