board stop working after driver mac enabled

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

Moderators: RoccoMarco, barthess

denisson
Posts: 14
Joined: Fri May 11, 2018 9:19 am
Location: depok,indonesia
Been thanked: 2 times

board stop working after driver mac enabled

Postby denisson » Mon Jul 09, 2018 9:59 am

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: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: board stop working after driver mac enabled

Postby Giovanni » Mon Jul 09, 2018 10:14 am

Moved to the support forum.

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: board stop working after driver mac enabled

Postby Giovanni » Mon Jul 09, 2018 10:17 am

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
Location: depok,indonesia
Been thanked: 2 times

Re: board stop working after driver mac enabled

Postby denisson » Tue Jul 10, 2018 10:37 am

thank you for responding, which files do I need to check?
what is hal_mac?

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: board stop working after driver mac enabled

Postby Giovanni » Tue Jul 10, 2018 11:01 am

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
Location: depok,indonesia
Been thanked: 2 times

Re: board stop working after driver mac enabled

Postby denisson » Tue Jul 10, 2018 11:21 am

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: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: board stop working after driver mac enabled

Postby Giovanni » Tue Jul 10, 2018 12:36 pm

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
Location: depok,indonesia
Been thanked: 2 times

Re: board stop working after driver mac enabled

Postby denisson » Fri Jul 13, 2018 8:21 am

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.


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 21 guests