SMTM32F4 ETH driver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-11-18 9:22 AM
I am a beginner with STM32F4 and I am study the ETH driver procedure but I don't understand some instructions
For example: /* Clear MBC bits in the selected MAC address high register */ (*(__IO uint32_t *) (ETH_MAC_ADDR_HBASE + MacAddr)) &=(~(uint32_t)ETH_MACA1HR_MBC); /* Wait until the write operation will be taken into account : at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (*(__IO uint32_t *) (ETH_MAC_ADDR_HBASE + MacAddr)); _eth_delay_(ETH_REG_WRITE_DELAY); (*(__IO uint32_t *) (ETH_MAC_ADDR_HBASE + MacAddr)) = tmpreg; I don't understand the read and write same register after delay Thanks in advance for help #stm32f4-eth- Labels:
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-11-18 9:37 AM
You'd need to find someone with a gate-level understanding of the design to talk to you, but the comments seem to suggest that there are consideration which fall under a different, slower, timing domain than the APB/AHB you are using to access the registers. ie pulling the bits off the wire, and checking the MAC address
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-02-04 2:46 PM
It's a silicone bug workaround. See latest errata sheet ''2.7.5 Successive write operations to the same register might not be fully taken into account''.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-02-05 6:39 AM
Thanks, thanks a lot trushkin now is clear
