Skip to content

Conversation

its-kronos
Copy link

Summary

This PR fixes/implements the following bugs/features

Explain the motivation for making this change. What existing problem does the pull request solve?

Since it's a custom board, it has slightly different configuration compared to the generic (16 MHZ crystal instead of 8 MHZ), which means the exported binary from arduino with generic board doesn't work to establish serial communication

Validation

  • Ensure CI build is passed.
  • Demonstrate the code is solid. [e.g. Provide a sketch]

Code formatting

  • Ensure AStyle check is passed thanks CI

Closing issues

Fixes #xxx

@its-kronos
Copy link
Author

If there is a way to have custom pin namings, please let me know, the guide for adding a board isn't really clear on this

@its-kronos
Copy link
Author

also, is there a way I can test the code generated by stm32cubemx before the board gets into the offical

@fpistm fpistm added the new variant Add support of new bard label Sep 1, 2025
@fpistm fpistm added this to the 2.11.1/2.12.0 milestone Sep 1, 2025
@fpistm
Copy link
Member

fpistm commented Sep 1, 2025

If there is a way to have custom pin namings, please let me know, the guide for adding a board isn't really clear on this

You can create alias in the variant_DATABOARD.h like this:

#define My_CUSTOM_NAME PYn

#define IO1              PA10
#define AIO10              PA5

also, is there a way I can test the code generated by stm32cubemx before the board gets into the offical

Before it gets merged?
Well if you used the git repo instead of the package you could test it with Arduino IDE.
https://github.com/stm32duino/Arduino_Core_STM32/wiki/Using-git-repository

@its-kronos its-kronos marked this pull request as draft September 1, 2025 11:15
Signed-off-by: its-kronos <140297693+its-kronos@users.noreply.github.com>
Signed-off-by: its-kronos <140297693+its-kronos@users.noreply.github.com>
Signed-off-by: its-kronos <140297693+its-kronos@users.noreply.github.com>
Signed-off-by: its-kronos <140297693+its-kronos@users.noreply.github.com>
its-kronos and others added 6 commits September 12, 2025 18:28
Signed-off-by: its-kronos <140297693+its-kronos@users.noreply.github.com>
Signed-off-by: its-kronos <140297693+its-kronos@users.noreply.github.com>
Signed-off-by: its-kronos <140297693+its-kronos@users.noreply.github.com>
…her than generic

Signed-off-by: its-kronos <140297693+its-kronos@users.noreply.github.com>
Signed-off-by: its-kronos <140297693+its-kronos@users.noreply.github.com>
… be available

Co-authored-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: its-kronos <140297693+its-kronos@users.noreply.github.com>
@its-kronos its-kronos marked this pull request as ready for review September 12, 2025 23:01
@its-kronos its-kronos marked this pull request as draft September 12, 2025 23:03
@its-kronos
Copy link
Author

need to test with arduino ide using repo before making PR ready for review

@its-kronos
Copy link
Author

After following the instructions in the using git repo, and successfully cloning with my board in the variants folder, I do not see an option to select it in Arduino IDE

image image

@its-kronos its-kronos marked this pull request as ready for review September 13, 2025 02:45
@fpistm
Copy link
Member

fpistm commented Sep 15, 2025

Hi @its-kronos

After following the instructions in the using git repo, and successfully cloning with my board in the variants folder, I do not see an option to select it in Arduino IDE

I fetch your PR and see the "databoard" in the menu.
You could try to made a "Reload Board Data" in the tools menu.
If it does not work after a restart, you could try to delete cache:
arduino/arduino-ide#1030 (comment)

@its-kronos its-kronos marked this pull request as draft September 15, 2025 20:39
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
Status: In progress
Development

Successfully merging this pull request may close these issues.

2 participants