2016-06-17 02:06 AM
Hello,
I am planning to build a device with a STM32F107, The user should be able connect to the system via both Ethernet and USB.When connected via ethernet, I should inform the IP address of STM32F107 to the user.For this I thought about the following, can you please comment if this is possible?When the user plugs in the USB cable, my device will act as a Mass storage device and pop up as a folder.In the folder, a txt file will be shown, an STM32F107 will write the IP address it gets in this txt fileCan you please guide me about how to implement this scenario?thanks a lotrifo #mass-storage2016-06-17 03:31 AM
Hi rifo.rifo,
I recommend that you take a look to both these examples in STM32CubeF1 library: - ''MSC_Standalone'' : at this path STM32Cube_FW_F1_V1.3.0\Projects\STM3210C_EVAL\Applications\USB_Device\MSC_Standalone - ''LwIP_UDP_Echo_Client'' at this path: STM32Cube_FW_F1_V1.3.0\Projects\STM3210C_EVAL\Applications\LwIP\LwIP_UDP_Echo_Client Based on those MSC and Ethernet example, you are able to start a combined project. You can also, use the STM32CubeMx tool to generated new initialization code by programming all your parameters inputs. -Hannibal-2016-06-20 01:52 AM
2016-06-20 05:22 AM
There are several F107 boards, you'll likely have to do some porting to get code designed for the EVAL board to work on them. Pins/Peripherals tend to be slightly different.
The F107 is rather old at this point, any strong driver for choosing it over newer parts?2016-06-20 12:41 PM
Hello Hannibal,
Thanks for your answer. Actually I was looking for the cheapest option that had ethernet and usb. I guess, I didn't do my search thoroughly.Can you please recommend some newer parts?thanks!rifo2016-06-20 02:51 PM
Something you are developing commercially? Or just tinkering?
The Nucelo-144 boards run $20-25, and provide USB and ETHERNET, at least the F429 and F767 models Some of the F4/F7 DISCO boards have ETHERNET, USB and MICROSD2016-06-20 09:34 PM
Hello Hannibal
It will be a commercial product. I have checked the nucleo boards as you suggest and foundhttp://www.digikey.com/product-detail/en/stmicroelectronics/NUCLEO-F429ZI/497-16280-ND/5806777
for 25$ bucksHowever theSTM32F429ZIT6 on it, is sold for 16$ on digikey whereas the F107 is sold for 8$, can you please suggest whether going with F107 would pose problems?
or maybe, there are other alternatives too?thanks again for your helprifo2016-06-21 05:57 AM
Yeah, I don't think I'd use Qty 1 pricing from DigiKey for the basis of a commercial design
The F2/F4 are architecturally a lot better designed than the F1, you'll want to review your speed and memory requirements, and also the availability of PHY and other components.2016-06-25 11:33 PM
Hello,
thanks again for the input. I will then check with my distributor about the price. I will also check the availabilty of the phy too. I guess it's not easy to switch to a new phy from the reference design.