-
Notifications
You must be signed in to change notification settings - Fork 1k
[New Variant] STM32G0316-DISCO #858
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
Comments
I just found out #722. I will close this issue if requested but it would be nice if I can get some advices related to pin multi-bonding and pin remapping. |
Hi @DurandA |
Hi @fpistm and thanks for your comment. What about pin remapping? PA12 can be remapped to PA10 and PA11 can be remapped to PA9 as in STM32G071RB from NUCLEO_G071RB. I did not found remapping functions in NUCLEO_G071RB variant. I think that it just won't work if users try to use PA10 (pin 2) or PA9 (pin 8). |
I think you talk about AF (Alternate Function) So PA12/PA11 for I2C2 or PA10/PA11 for I2C1. |
I think Alternate Function refers to what function a specific pins perform (i.e. ADC1_EXTI11, ADC1_IN15, I2C2_SCL, ... for PA11) while pin remapping enable a physical pin to map to a different pin:
I examined a generated project from STM32CubeMX and if I remap PA12 to PA10, it adds the line |
Right, I've didn't see this. |
Thanks. I think the port will be straightforward then. |
I've open a issue to study that. |
@fpistm I am in the process of adding this variant and have a few questions:
|
In a general way, I try to set the maximum speed. But don't worry the clock config is a WEAK function so it can be redefined at sketch level if end user want another clock config.
This is only a define used on some example sketch or library. Define it to the generic
To define automatically the
Ten it will be instantiate and when you do the Serial.begin then it check in the
no, the core does not use |
Fixes stm32duino#858 Signed-off-by: Arnaud Durand <[email protected]> Co-Authored-By: Frederic Pillon <[email protected]>
I'm interested in using STM32duino for the STM32G0316-DISCO which is based on a STM32G0 in SO8 package.
Board description:
Whilst I think I could add the variant myself according to the documentation, the STM32G031J6 has different pads connected to each pin:
I am not sure if specific care should be taken or if it's better to let users use pins as if they were on different pins.
Also, how is pin remapping handled by STM32duino? Maybe @fpistm knows about STM32G0 specifics.
The text was updated successfully, but these errors were encountered: