Hi all,
I got STM32F4DIS-BBSTM32F4DIS-BB but I am unable to make ethernet demo with CubeMX
Could someone please create template project with CubeMX that works.
Hi all,
I got STM32F4DIS-BBSTM32F4DIS-BB but I am unable to make ethernet demo with CubeMX
Could someone please create template project with CubeMX that works.
You dont need to buy KEIL.
Follow these steps to get it to work.
Get Atollic TrueStudio their free version is now with no size limit.
Create the template with CubeMX. CubeMX creates EVERYTHING you need to run the Ethernet with LWIP, however it will create a project using the registers for a different PHY, so it wont work out of the box, you need to change two register addresses:
#define PHY_READ_TO ((uint32_t)0x0004FFFF)
#define PHY_WRITE_TO ((uint32_t)0x0004FFFF)
You can do this in the config screen of CubeMX or directly in the file stm32f4xx_hal_conf.h once you have created the code.
Once the code is ready, import it to True studio, compile and run.
CubeMX is a pretty neat tool, but you can't expect to do everything for you , that should get you started
You dont need to buy KEIL.
Follow these steps to get it to work.
Get Atollic TrueStudio their free version is now with no size limit.
Create the template with CubeMX. CubeMX creates EVERYTHING you need to run the Ethernet with LWIP, however it will create a project using the registers for a different PHY, so it wont work out of the box, you need to change two register addresses:
#define PHY_READ_TO ((uint32_t)0x0004FFFF)
#define PHY_WRITE_TO ((uint32_t)0x0004FFFF)
You can do this in the config screen of CubeMX or directly in the file stm32f4xx_hal_conf.h once you have created the code.
Once the code is ready, import it to True studio, compile and run.
CubeMX is a pretty neat tool, but you can't expect to do everything for you , that should get you started