Closed elnenez closed 3 months ago
Hi, I suppose that some of the framework components in PlatformIO have been upgraded and now they are out of sync with the codebase of the project generated by STMCube. Probably the project files will need to be regenerated/updated through an updated Cube. I'm only guessing. I'll have a chance to check only later this week.
May I ask about the reason for building it yourself? Did you add some new features?
Ok, thanks. I think that is the problem. The project generated by STMCube used firmware 1.6.1 and PlatformIO uses 1.8.4. I would like to customize the number of axis and buttons in the joystick.
Hi, I migrated the project to the newer version. You can checkout from this branch https://github.com/Cleric-K/Universal-RC-Joystick/tree/newstmcube However I haven't tested anything. I only saw that it builds. There a lot of changes compared to the old stmcube so it's very likely that something is broken. Try first to build and upload without any modifications. If it works OK, then you can go on with modifying.
Hi, I have tested the C8 version without any modifications and it works OK. Thanks!
Hello,
I am trying to build the project using PlatformIO but it fails with the following error:
C:\Users\m.platformio\packages\framework-stm32cubef1\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_iwdg.c:124:83: error: 'LSI_STARTUP_TIME' undeclared
Any help? Thank you.
The complete log is next:
Processing genericSTM32F103CB (platform: ststm32; board: genericSTM32F103CB; framework: stm32cube) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via
-v, --verbose
option CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103CB.html PLATFORM: ST STM32 (17.4.0) > STM32F103CB (20k RAM. 128k Flash)HARDWARE: STM32F103CBT6 72MHz, 20KB RAM, 128KB Flash DEBUG: Current (stlink) External (blackmagic, cmsis-dap, jlink, stlink) PACKAGES:
define HAL_IWDG_DEFAULT_TIMEOUT (((6UL 256UL 1000UL) / LSI_VALUE) + ((LSI_STARTUP_TIME / 1000UL) + 1UL))
C:\Users\m.platformio\packages\framework-stm32cubef1\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_iwdg.c:196:39: note: in expansion of macro 'HAL_IWDG_DEFAULT_TIMEOUT'
if ((HAL_GetTick() - tickstart) > HAL_IWDG_DEFAULT_TIMEOUT) ^
~~~~~~~ C:\Users\m.platformio\packages\framework-stm32cubef1\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_iwdg.c:124:83: note: each undeclared identifier is reported only once for each function it appears indefine HAL_IWDG_DEFAULT_TIMEOUT (((6UL 256UL 1000UL) / LSI_VALUE) + ((LSI_STARTUP_TIME / 1000UL) + 1UL))
C:\Users\m.platformio\packages\framework-stm32cubef1\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_iwdg.c:196:39: note: in expansion of macro 'HAL_IWDG_DEFAULT_TIMEOUT'
if ((HAL_GetTick() - tickstart) > HAL_IWDG_DEFAULT_TIMEOUT) ^
~~~~~~~ Compiling .pio\build\genericSTM32F103CB\FrameworkHALDriver\Src\stm32f1xx_hal_nand.o Compiling .pio\build\genericSTM32F103CB\FrameworkHALDriver\Src\stm32f1xx_hal_nor.o Compiling .pio\build\genericSTM32F103CB\FrameworkHALDriver\Src\stm32f1xx_hal_pccard.o *** [.pio\build\genericSTM32F103CB\FrameworkHALDriver\Src\stm32f1xx_hal_iwdg.o] Error 1 ======================================================================== [FAILED] Took 7.37 seconds ========================================================================