danieleff / STM32GENERIC

Generic implementation of Arduino for STM32 boards

Home Page:https://danieleff.github.io/STM32GENERIC/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

__HAL_AFIO_REMAP_SWJ_ENABLE(); missing definition for L1 and F3

Hoel opened this issue · comments

commented

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();

commented

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