Cleric-K / Universal-RC-Joystick

Convert RC receiver into USB HID Joystick with a cheap STM32 dev board
MIT License
21 stars 7 forks source link

Build error #4

Closed elnenez closed 3 months ago

elnenez commented 4 months ago

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:

Cleric-K commented 4 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?

elnenez commented 4 months ago

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.

Cleric-K commented 3 months ago

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.

elnenez commented 3 months ago

Hi, I have tested the C8 version without any modifications and it works OK. Thanks!