2015-08-01 05:04 PM
Guys,
Does anyone of you have an experience on SPI1 for STM32F103VCT6 ? I read one code and trying to understand, why one pin has 2 function ?? Please have a look :/* Configure SPI1 pins: NSS, SCK, MISO and MOSI */
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_5 | GPIO_Pin_6 | GPIO_Pin_7; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;
GPIO_Init(GPIOA, &GPIO_InitStructure);
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_6;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU;
GPIO_Init(GPIOA, &GPIO_InitStructure);
How can I use 1 pins with different function ? NSS / MISO at once ? Thanks2015-08-01 06:57 PM
The last configuration takes precedence.
PA6 is MISO (Master IN Slave out), on the F1 things that are inputs are configured in IN mode rather than AF mode, and this doesn't interfere with anything as you can always read the pin state.What you're missing here is an actual configuration for an NSS pin.2015-08-02 02:45 PM
2015-08-02 03:41 PM
What do you reckon about DP83848 pin 40 and 39 ?
Suggest you review working software/hardware on a WaveShare board.2015-08-07 02:41 PM
If I use STM32CubeMx, is the default code for LwIP already running ''ping'' service ?
or I only can see MAC address but I need to create a function for ''ping'' service ? Thanks2015-08-07 03:47 PM
Just to restate my position, a) I'm not a HAL/Cube advocate, b) the HTTP Webserver examples are easy to test, in that you can connect and see the device in a browser (Firefox, Chrome), c) I think you're at a point where you need to review/test known good hardware/software examples, and leverage that knowledge/understanding against what you've built.
You have too many unknowns in your design, whether it's the cables, connectors, magnetics, PHY, MAC, software, these really aren't things I can solve remotely and with zero cost.