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
board stop working after driver mac enabled
Moderators: RoccoMarco, barthess
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: board stop working after driver mac enabled
You need to check 2 things:
1) Clock settings for PHY.
2) GPIO settings (alternate functions) in your board.h for MAC.
Giovanni
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
thank you for responding, which files do I need to check?
what is hal_mac?
what is hal_mac?
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: board stop working after driver mac enabled
Hi,
It is obvious that you are new to ChibiOS, which board are you using? is one of those supported or something else?
Giovanni
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
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
denis
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: board stop working after driver mac enabled
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
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
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.
Who is online
Users browsing this forum: No registered users and 17 guests