Skip to content

boards: st nucleo c071rb fix LED, Button, SPI configuration #93351

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

str4t0m
Copy link
Contributor

@str4t0m str4t0m commented Jul 19, 2025

Working with the nucleo_c092rc I noticed a few issues in the nucleo_c071rb board configuration that I propose to fix in this PR:

  • set led2 pin to active low
  • Enable the pull-up resistor for the USER button
  • use the Arduino header pins for SPI1

I don't have a nucleo_c071rb to verify these changes, but tested it on a board that is basically only a different assembly option.

str4t0m added 2 commits July 19, 2025 13:43
- The user button does not have a dedicated pull-up resistor
on the board, therefore activate the internal pull-up.
- The pin for LD2 does not switch the via a transistor,
but directly sinks the current of the LED, therefore
we need to set it active low.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
This commit changes the spi1 pins to pa15, pa5, pa6, pa7.
The SPI instance has been declared as arduino_spi, but different
pins have been used.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
Copy link

@str4t0m str4t0m marked this pull request as ready for review July 19, 2025 12:13
@zephyrbot zephyrbot added the platform: STM32 ST Micro STM32 label Jul 19, 2025
@str4t0m str4t0m added the backport v4.2-branch Request backport to the v4.2-branch label Jul 19, 2025
Copy link
Contributor

@djiatsaf-st djiatsaf-st left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM

@@ -135,8 +135,9 @@
};

&spi1 {
pinctrl-0 = <&spi1_nss_pb0 &spi1_sck_pb3
&spi1_miso_pb4 &spi1_mosi_pb5>;
/* Note: PA5 is shared with green led0 */
Copy link
Contributor

Choose a reason for hiding this comment

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

The test will fail when the SCK pin is connected to PA5 because it shares the pin with led0.

Besides PA6 and PA7 are also shared with I2C2 node.

I suggest keeping the current configuration and update documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport v4.2-branch Request backport to the v4.2-branch platform: STM32 ST Micro STM32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants