Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__HAL_AFIO_REMAP_SWJ_ENABLE(); missing definition for L1 and F3 #51

Open
Hoel opened this issue Dec 7, 2017 · 1 comment
Open

__HAL_AFIO_REMAP_SWJ_ENABLE(); missing definition for L1 and F3 #51

Hoel opened this issue Dec 7, 2017 · 1 comment

Comments

@Hoel
Copy link

Hoel commented Dec 7, 2017

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

@Hoel
Copy link
Author

Hoel commented Dec 7, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant