There's clearly something wrong with my combination of board/Makefile/chconf/mcuconf but the current nightmare is "error: 'ETH_MACMIIAR_CR_Div42' undeclared" when trying to compile mac_lld.c
I can see this is defined in the CMSIS f107 header, I can see that should be included by the f1xx CMSIS, I can see that be included by the cmparams.h which is in turn pulled in by chcore.h however clearly something is not working here.
My board.h defines STM32F107xC and the includes in my makefile are:
Code: Select all
# Startup files.
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/startup_stm32f1xx.mk
# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/hal/ports/STM32/STM32F1xx/platform_f105_f107.mk
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional).
include $(CHIBIOS)/os/various/lwip_bindings/lwip.mk
Any pointers please and/or examples of a working F107 MAC project?