You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently the definition for __HAL_AFIO_REMAP_SWJ_ENABLE is missing for L1 and F3, i added some boards based on L151C8 and F303CC and as soon as i compile it throws this error, when i compile for F103 no problem because for F1 the definition is in PinAF_STM32F1.h, also the USB VCP callbacks were missing or F3 (i added them manually from a cubemx project)
...STM32/cores/arduino/main.cpp:55:37: error: '__HAL_AFIO_REMAP_SWJ_ENABLE' was not declared in this scope __HAL_AFIO_REMAP_SWJ_ENABLE();
The text was updated successfully, but these errors were encountered:
i copy the reply from STM:
Hi @Hoel ,
This macro is only defined for F1. Alternate Function is different for F1.
For other series, I think it is it is GPIO_AF0_SWJ
so i think a define is missing in main.cpp to exclude non F1 targets
Apparently the definition for __HAL_AFIO_REMAP_SWJ_ENABLE is missing for L1 and F3, i added some boards based on L151C8 and F303CC and as soon as i compile it throws this error, when i compile for F103 no problem because for F1 the definition is in PinAF_STM32F1.h, also the USB VCP callbacks were missing or F3 (i added them manually from a cubemx project)
...STM32/cores/arduino/main.cpp:55:37: error: '__HAL_AFIO_REMAP_SWJ_ENABLE' was not declared in this scope __HAL_AFIO_REMAP_SWJ_ENABLE();
The text was updated successfully, but these errors were encountered: