Skip to content

Compilation fails if no PWM spindle is enabled #24

@terjeio

Description

@terjeio

For reporting issues with the Web Builder.

A few weeks ago I could successfully generate an image for a BTT Octopus MAX system with Huanyang v1 VFD.

Today when I tried it gave a compilation error:

===========================================================================
Command failed: pio run -etest -cjob.ini
/home/webbuilder/.platformio/packages/framework-stm32cubeh7@src-f1f2c1ee8752ca5dfad28969c63d467c/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_utils.c: In function 'UTILS_GetPLLOutputFrequency':
/home/webbuilder/.platformio/packages/framework-stm32cubeh7@src-f1f2c1ee8752ca5dfad28969c63d467c/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_utils.c:929:13: warning: implicit declaration of function 'LL_RCC_CalcPLLClockFreq'; did you mean 'HAL_RCC_GetSysClockFreq'? [-Wimplicit-function-declaration]
pllfreq = LL_RCC_CalcPLLClockFreq(PLL_InputFrequency, UTILS_PLLInitStruct->PLLM, UTILS_PLLInitStruct->PLLN, UTILS_PLLInitStruct->FRACN, UTILS_PLLInitStruct->PLLP);`
^~~~~~~~~~~~~~~~~~~~~~~
HAL_RCC_GetSysClockFreq
Src/driver_spindles.c: In function 'aux_out_claim_explicit':
Src/driver_spindles.c:717:5: error: expected '}' before 'else'
else
^~~~
*** [.pio/build/test/src/driver_spindles.o] Error 1
========================== [FAILED] Took 3.56 seconds ==========================

The error seems to occur for any board using the STM32H7xx or STM32F7xx drivers, but there is no error for the STM32F4xx driver.

The error seems to occur for any MODBUS spindle option (I tried Huanyang v1, Huanyang P2A and MODVFD).

I hope this is the right place and the right way to report this kind of problem!

Originally posted by @RetEECS in grblHAL/core#645 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions