STM32GENERIC icon indicating copy to clipboard operation
STM32GENERIC copied to clipboard

STM32L151 : stm32_TIM_variant_4.h:15:47: error: 'AF_NO_REMAP' undeclared here (not in a function); did you mean 'IS_TIM_REMAP'?

Open BSFrance opened this issue 6 years ago • 1 comments

Hi, I made a target with STM32L151CC which throws this error (LED blink example, timer used for delay function): stm32_TIM_variant_4.h:15:47: error: 'AF_NO_REMAP' undeclared here (not in a function); did you mean 'IS_TIM_REMAP'?

For test purposes i tried : #define AF_NO_REMAP 0 to pass the error, and then i got another error related to I2S (which i dont use): stm32_gpio_af.c:136:17: error: 'chip_af_i2s_mck' undeclared (first use in this function); did you mean 'chip_af_i2s_ck'?

I previously made another target based on STM32L151C8 and these errors were not thrown, so this is somehow related to this variant only.

Does anyone have a clue on what the problem is? Thanks.

BSFrance avatar Mar 03 '18 01:03 BSFrance

same problem😀

ghosoft avatar Nov 06 '18 02:11 ghosoft