-
Notifications
You must be signed in to change notification settings - Fork 1k
Add generic F103Vx targets #1042
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
Conversation
BTW do you know where I can find pre-built linker scripts for other targets? Let's say I'd want to create a new pinout for a new target that's not currently supported in this core. Would I have to modify an existing script, or do you have a repo with a bunch of pre-built ones? |
Thanks @MCUdude You can use CubeMX to generate a project for STM32CubeIDE then you will find in the generated project the linker script and also the SystemClockConfig. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some mistake in the PeripheralPins.c
Also some #if/#else used to avoid comments, anyway the #else pins is correct for all series.
This commit adds support for F103V8, VB, VC, VD, VE, VF and VG
OK, how about now? |
unsubscribe
…------------------ 原始邮件 ------------------
发件人: "Hans"<[email protected]>;
发送时间: 2020年4月23日(星期四) 下午3:15
收件人: "stm32duino/Arduino_Core_STM32"<[email protected]>;
抄送: "Subscribed"<[email protected]>;
主题: Re: [stm32duino/Arduino_Core_STM32] Add generic F103Vx targets (#1042)
@MCUdude commented on this pull request.
In variants/Generic_F103Vx/PeripheralPins.c:
> + {PB_13, USART3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_USART3_PARTIAL)}, + {PD_3, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_USART2_ENABLE)}, + {PD_11, USART3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_USART3_ENABLE)}, + {NC, NP, 0} +}; +#endif + +//*** SPI *** + +#ifdef HAL_SPI_MODULE_ENABLED +WEAK const PinMap PinMap_SPI_MOSI[] = { + {PA_7, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_NONE)}, +#if defined(STM32F103xE) || defined(STM32F103xG) + {PB_5, SPI3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_NONE)}, +#else + {PB_5, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_SPI1_ENABLE)},
I force-pushed a fix yesterday, where this has been solved
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
This commit adds support for STM32F103V8, VB, VC, VD, VE, VF, and VG.
This is a pinout that's been requested in #722.