When using the HAL for STM32F105 from latest stable (ChibiOs 16.1.5) I encountered some problems.
First up I got:
./os/hal/ports/STM32/STM32F1xx/hal_lld_f105_f107.h:408:22: warning: "STM32_MCOSEL_PLL2DIV2" is not defined [-Wundef]
(STM32_MCOSEL == STM32_MCOSEL_PLL2DIV2) ||
which I believe to be a simple mistake where STM32_MCOSEL_PLL2DIV2 should be replaced with STM32_MCOSEL_PLL2 on lines 408 and 468 in hal_lld_f105_f107.h.
Secondly I could not get CAN working, until I added:
Code: Select all
$(CHIBIOS)/os/hal/ports/STM32/LLD/CANv1 \to the PLATFORMINC variable in platform_f105_f107.mk (canv1 is already added to the PLATFORMSRC).
After those changes I could build the project and it appears to be working fine.
However it would ease my mind if anyone could please confirm that those changes seem to be correct?
Best regards and thanks for all your awesome work,
Daniel