-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
boards: arm: add initial support for NUCLEO-L152RE board #15609
boards: arm: add initial support for NUCLEO-L152RE board #15609
Conversation
Found the following issues, please fix and resubmit: Gitlint issuesCommit 80a98632c5: |
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.
Few comments aside from the bot ones.
Changes introduced in ecdeae6
|
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 this addition.
Please see my comment on HAL fix.
Then, in order to be integrated your board addition misses the doc.
@frantony, are you still interested in pushing this PR? |
ecdeae6
to
29fc247
Compare
All checks are passing now. checkpatch (informational only, not a failure)
Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
ad5e384
to
343140d
Compare
The PR has "Changes requested" status. IMHO I have made necessary changes:
Please review the PR. |
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.
@frantony can you add a board.cmake
file so board can be flashed using west ?
343140d
to
c9df9ee
Compare
just did it! |
@frantony, can you fix the issue reported by Nits bot? |
c9df9ee
to
a4558a7
Compare
The STM32L151 and STM32L152 differ in that the STM32L152 features an LCD controller. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
The board features a STM32L152RET6 MCU. Tested samples: * hello_world * basic/blinky * basic/button * gui/lvgl + SHIELD=ssd1306_128x64 * philosophers * sensor/hmc5883l * subsys/shell/shell_module + CONFIG_EEPROM_SHELL=y * synchronization Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
a4558a7
to
e15e89d
Compare
Please review! |
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.
stm32l152xe soc has also a gpio port g and port f that maybe should be enabled also in the soc's defconfig. Additions are also necessary in the dts_fixup.h for this.
Port d, port e and port h is common for the l1 series so this part of code, which is duplicated now, could be moved to the defconfig.series
`
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTH
default y
`
This PR adds initial support for NUCLEO-L152RE board with STM32L152RET6 MCU. Please see this STM32CubeMX screenshort: The GPIO ports D, E, G and F are not connected to pins of STM32L152RET6! The GPIOH1 can't be used as GPIO on this board. The GPIOH0 is used as external clock input. Please look at STM32CubeMX NUCLEO-L152RE standard configuration: Only GPIO ports A, B and C are available on NUCLEO-L152RE board! Adding D, E, F and G GPIO ports support has no relation to this PR and has to be done separately. |
@frantony Ok you're right. I was mislead by the mcu's datasheet memory map |
@galazari If you're on line with the change, can you approve it ? |
Please review! |
Thanks for the port. However, I have issues running the board. For me all tests including multiple threads (e.g. 'samples/synchronization' and 'samples/philosophers/') fail. There seems to be an error and the board goes into an endless loop (arch_system_halt in fatal.c). |
@maxschuh,I suspect an issue with the clock_control driver. |
The board features a STM32L152RET6 MCU.
Tested samples:
TODO
boards/arm/nucleo_l152re/nucleo_l152re.dts
(greparduino_serial
for details);See also: