Still working my way with ChibiOS and trying to learn its secrets... and now I am willing to activate the IP stack to be able to communicate over ethernet.
However the STM32 example is for a different board ( i use the STM3210C), so I have to adapt a little. I thought I could manage that seeing as I had to modify the board settings to use the CAN bus, but something else stops me.
This is the steps I have done to get that example to work :
- - Activate the MAC driver in halconf.h
- Edit the makefile to build lwip
- Change the GPIO in board.h to corresponding ethernet values according to the STM32v1xx ref. manual
- Add the AFIO_MAPR_ETH_REMAP option to the boardInit function to account for Ethernet Remapping
- Added #define BOARD_PHY_ID MII_STE101P_ID and #define BOARD_PHY_RMII to board.h
My main just inits the board and creates a blinker thread and sends a debug serial message to the PC without creating the lwip thread and without using any ethernet functions. However the micro just hangs without blinking when i start that code... Would you know why?
The blinker works perfectly fine and the serial print too when I just do not build the lwip files...