Closed vtpgit closed 4 months ago
Hi @vtpgit, As stated by the BlueVGA readme, it is only compatible with Generic STM32F103C Series: https://github.com/RoCorbera/BlueVGA/blob/master/README.md#how-to-use-it-with-arduino-ide
You try to build for aGeneric STM32F103Z Series
, error is normal as stated by your log. It includes 2 CMSIS devices header while only one should be used.
This file is linked to the device you build but the library hardly includes it:
https://github.com/RoCorbera/BlueVGA/blob/47d8217cd2357afc12d0afd3a409602ebb63be11/src/bluevgadriver.c#L45
So there is no issue with the core not the library as it clearly specify which target is compatible. If you want to support it then up to you to update the library but it is out of scope here.
Note: No link with build_opt.h nor the HAL_TIM_MODULE_ONLY
So there is no issue with the core not the library as it clearly specify which target is compatible. If you want to support it then up to you to update the library but it is out of scope here.
@fpistm
Hi, thank you for your response, I didn't notice that, and updated the library, it built just fine.
I'll be more careful in the future.
You were super helpful.
Cheers, Valentine
Describe the bug
STM32Duino on F103ZET6 ignores -DHAL_TIM_MODULE_ONLY in build_opt.h The build_opt.h is properly processed for the F103C8ET6 however.
I'm building the basic demo from BlueVGA library.
For a generic F103C8ET6 the build completed:
To Reproduce
Steps to reproduce the behavior:
Open the example simple_demo from the library.
Select F103C8ET6 as a target.
Build. The build completes.
Select F103ZET6 as a target.
Build. The build fails with redeclaration error, pointing to ignoring the directive HAL_TIM_MODULE_ONLY in build_opt.h as defined in
https://github.com/stm32duino/Arduino_Core_STM32/wiki/HAL-configuration
Expected behavior STM32Duino on F103ZET6 must honor -DHAL_TIM_MODULE_ONLY in build_opt.h directive.
Please let us know what could be done meanwhile to work-around. We understand such fixes take time.
Screenshots
Attached above.
Desktop (please complete the following information):
Board (please complete the following information):
Not really relevant but for the record.
Additional context
Assumes BlueVGA is pre-loaded.
Code for sample: