Wednesday, October 31, 2018

fm3 mb9bf618t Ethernet driver

The speed should be TTCP -t → 9600 Mbps. TTCP -r → 10000 Mbps. Otherwise, there are some issues. Mainly the MAC_MCR should be immediately after PHY init and must be far from the next MAC register (MAC_MFFR) initialization. As per manual, 2 PHY clock cycle delay should be there after MAC_MCR initialization. Otherwise, in 20 times, there will be few times, when board is started, the Ethernet does not ping.

Friday, October 26, 2018

Unaligned access in memcpy



Do not use memcpy in Device Memory.
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka15414.html

Library built with Unaligned access flag.
https://bugs.launchpad.net/gcc-arm-embedded/+bug/1303369

So, no other way except changing the Device memory into Non-cached memory and use sync instructions.

Never set Device memory as Ethernet Buffer. You will be in trouble!