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

Feature/G030CxT #1547

Merged
merged 4 commits into from
Nov 18, 2021
Merged

Feature/G030CxT #1547

merged 4 commits into from
Nov 18, 2021

Conversation

hitech95
Copy link
Contributor

@hitech95 hitech95 commented Nov 17, 2021

This PR fixes/implements the following bugs/features

  • G030CxT variants

The variant G030CxT was missing both default clock and the linker scripts.

Validation

  • This has been tested with the validation example as stated in the wiki.
  • Tested in Platform.io other than Arduino IDE
  • A board with such MCU is running this code since yesterday (so far no locks):
#include <Arduino.h>

#define LED PC7

void setup()
{
  // put your setup code here, to run once:
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED, OUTPUT);
  Serial.begin(115200);
}

void loop()
{
  char hw[] = "Hello World!\0";
  size_t i;
  for (i = 0; i < strlen(hw); i++)
  {
    // put your main code here, to run repeatedly:
    digitalWrite(LED, HIGH); // turn the LED on (HIGH is the voltage level)
    delay(50);               // wait
    digitalWrite(LED, LOW);  // turn the LED off by making the voltage LOW
    delay(50);               // wait
    Serial.print(hw[i]);
  }
  delay(1000); // wait for a second
  Serial.println("...");
}

@fpistm fpistm requested a review from ABOSTM November 17, 2021 10:04
@fpistm fpistm added the new variant Add support of new bard label Nov 17, 2021
@fpistm fpistm added this to the 2.2.0 milestone Nov 17, 2021
README.md Outdated Show resolved Hide resolved
variants/STM32G0xx/G030C(6-8)T/generic_clock.c Outdated Show resolved Hide resolved
This patch add two chips:
 - STM32G030C6T
 - STM32G030C8T

Signed-off-by: hitech95 <[email protected]>
README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@ABOSTM ABOSTM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except @fpistm ' s remarks, LGTM.

@fpistm
Copy link
Member

fpistm commented Nov 18, 2021

Hi @hitech95
We do not have a board with this MCU so we cannot test it but as you made some test I will merge it.
Thanks again for your contribution.

Note: in this case I squash all the commits as they are for the same goal add a new board support.

@fpistm fpistm merged commit 892160d into stm32duino:main Nov 18, 2021
@hitech95
Copy link
Contributor Author

Ok, got that! Now I know how to contribute for the next time :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new variant Add support of new bard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants