2013-04-24 06:12 AM
Hi all,
I am having a look through the example Ethernet code for the STM32F1 and 4, in the IAP packages for each of these parts, and comparing the drivers for these parts. These files seem on the whole identical, however it appears the F4 driver includes some bug fixes. Would it be worth trying to merge them to apply to both chips? #driver #ethernet2013-04-24 06:33 AM
Would it be worth trying to merge them to apply to both chips?
For whom? Generally speaking examples work better with the least number of permutations and configurations. The clarity of separate branches probably makes sense for ST, although when bug fixes get propagated back and forth between them is problematic. Areas I think are problematic between F1 and F4 libraries and designs are the clocking, buses, DMA and GPIO/AF pin management.
2013-04-24 07:28 AM
A very fair point.
I was thinking from the point of view of people new to this sort of development, to take advantage of fixes or optimisations across all platforms. If people use custom Ethernet drivers fair enough. I am still at the stage of basing my experiments off the sample code :)