-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
New board nucleo g431kb #78091
New board nucleo g431kb #78091
Conversation
Hello @nagelkl, and thank you very much for your first pull request to the Zephyr project! |
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.
also squash to 1 commit
7230571
to
b1e8d85
Compare
also build error needs looking at and resolving |
9208b39
to
d2e90d0
Compare
738ff49
to
618fda0
Compare
stm32_lp_tick_source: &lptim1 { | ||
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x80000000>, | ||
<&rcc STM32_SRC_LSE LPTIM1_SEL(3)>; | ||
status = "okay"; | ||
}; |
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.
You're declaring LSE as LPTIM source clock but it is not enabled.
Do you actually need LPTIM (used for power mgmt).
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.
No, actually i don't neet power management, i will remove it
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.
When i delete the &lptim1 from the dts- file all tested samples build without error and run fine but all twister tests in tests/lib/cpp/cxx fail due to a warning:
Kconfig for LPTIM source clock (LSE/LSE) is deprecated, use device tree.
I found that in the final generated .config file there is the line
CONFIG_STM32_LPTIM_TIMER=y
and
CONFIG_STM32_LPTIM_CLOCK_LSI=y
even if i delete the &lptim1 part from the dts- file.
I can not find where or how this Config Property gets set for the testsuite in tests/lib/cpp/cxx.
Am I missing something here?
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.
The test case in question enables CONFIG_PM unconditionally, but on STM32 targets (from series which supports PM such as G4) a specific low power ticker configuration is required, which should be provided by lptim.
So, given this test configuration, you actually can't spare the following PM config:
&clk_lse {
status = "okay";
};
stm32_lp_tick_source: &lptim1 {
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x80000000>,
<&rcc STM32_SRC_LSE LPTIM1_SEL(3)>;
status = "okay";
};
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.
So for the PR i have to enable the lptim1 again in the Device Tree? Or should the test be changed? As i understand the purpose of the testcase is to check the different library configurations, why is there a dependency to power management?
618fda0
to
1f6b18e
Compare
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.
@JarmouniA PTAL
to fix the CI failure, add the clock domain definition for the lptim, in the board DTS, with LSI as clock source for the LPTIM. The nucleo32 board has no LSE clock.
|
1f6b18e
to
955dbda
Compare
955dbda
to
a6cf9f1
Compare
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.
Did a more thorough review of the docs, sorry I didn't do this the first time around
Overview | ||
******** | ||
|
||
The Nucleo G431kB board features an ARM Cortex-M4 based STM32G431kB MCU |
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.
Maybe a spell checker played tricks on you? Just noticed this sorry
The Nucleo G431kB board features an ARM Cortex-M4 based STM32G431kB MCU | |
The Nucleo G431KB board features an ARM Cortex-M4 based STM32G431KB MCU |
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.
The port started with a copy from the Nucleo G431RB board and some find and replace actions
Here are some highlights of the Nucleo G431kB board: | ||
|
||
- STM32 microcontroller in LQFP32 package | ||
- Arduino nano V3 connectivity |
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.
- Arduino nano V3 connectivity | |
- Arduino Nano V3 connectivity |
- On-board ST-LINK/V3E debugger/programmer | ||
- Flexible board power supply: | ||
|
||
- USB VBUS or external source(3.3V, 5V, 7 - 12V) |
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.
- USB VBUS or external source(3.3V, 5V, 7 - 12V) | |
- USB VBUS or external source(3.3 V, 5 V, 7-12 V) |
|
||
More information about the board can be found at the `Nucleo G431KB website`_. | ||
|
||
- Development support: serial wire debug (SWD), JTAG, Embedded Trace Macrocell* |
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.
Assuming this is a copy-paste from somewhere, the asterisk probably doesn't make sense here?
- Development support: serial wire debug (SWD), JTAG, Embedded Trace Macrocell* | |
- Development support: serial wire debug (SWD), JTAG, Embedded Trace Macrocell. |
|
||
- Development support: serial wire debug (SWD), JTAG, Embedded Trace Macrocell* | ||
|
||
More information about STM32G431RB can be found here: |
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.
More information about STM32G431RB can be found here: | |
More information about STM32G431KB can be found here: |
High Speed oscillator is supported. By default System clock is driven by PLL clock at 170MHz, | ||
the PLL is driven by the 16MHz high speed internal oscillator. |
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.
High Speed oscillator is supported. By default System clock is driven by PLL clock at 170MHz, | |
the PLL is driven by the 16MHz high speed internal oscillator. | |
High Speed oscillator is supported. By default System clock is driven by PLL clock at 170 MHz, | |
the PLL is driven by the 16 MHz high speed internal oscillator. |
Flashing an application to Nucleo G431kB | ||
---------------------------------------- | ||
|
||
Connect the Nucleo G431kB to your host computer using the USB port, |
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.
Flashing an application to Nucleo G431kB | |
---------------------------------------- | |
Connect the Nucleo G431kB to your host computer using the USB port, | |
Flashing an application to Nucleo G431KB | |
---------------------------------------- | |
Connect the Nucleo G431KB to your host computer using the USB port, |
|
||
.. zephyr-app-commands:: | ||
:zephyr-app: samples/hello_world | ||
:board: nucleo_g431rb |
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.
:board: nucleo_g431rb | |
:board: nucleo_g431kb |
Add support for the nucleo g431kb Board. Signed-off-by: Klaus Nagel <[email protected]>
a6cf9f1
to
72d68ad
Compare
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.
+1 for docs, thx!
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.
Thanks for your patience in making all the changes that have been requested.
Approved
Hi @nagelkl! To celebrate this milestone and showcase your contribution, we'd love to award you the Zephyr Technical Contributor badge. If you're interested, please claim your badge by filling out this form: Claim Your Zephyr Badge. Thank you for your valuable input, and we look forward to seeing more of your contributions in the future! 🪁 |
Added support for the ST Microelectronics nucleo g431kb board
The board port supports GPIO, PWM, the console and an i2c interface