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

boards: arm: Add support for Arduino Nicla Sense ME #42143

Conversation

benjaminbjornsson
Copy link
Member

This commit adds support for the Arduino Nicla Sense ME board.
The board functionality has been tested with various samples
such as hello_world, philosophers and peripheral_dis.

Signed-off-by: Benjamin Björnsson benjamin.bjornsson@gmail.com

Copy link
Collaborator

@tejlmand tejlmand left a comment

Choose a reason for hiding this comment

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

Thanks for this contribution.

A minor request for removing an optional empty file.

@@ -0,0 +1,8 @@
# Arduino Nicla Sense ME board configuration
Copy link
Collaborator

Choose a reason for hiding this comment

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

This file is optional, so as it is anyway empty it can simply be removed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, thank you 👍

Copy link
Contributor

@mbolivar-nordic mbolivar-nordic left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! I noticed a few issues, but I'd be glad to see support for this board added.

Comment on lines 25 to 27
aliases {

};
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this node if you don't intend to define aliases here.

@@ -0,0 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

set(OPENOCD_NRF5_SUBFAMILY "nrf52")
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this here if you are not including openocd support? Please either remove this line or add openocd support to the board.

Copy link
Member Author

@benjaminbjornsson benjaminbjornsson Feb 19, 2022

Choose a reason for hiding this comment

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

I probably thought it had some effect on pyocd... I'll just remove that line since it works without it 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

Regarding support for openocd, I just can't get anything other than pyocd working.

Comment on lines 17 to 18
# enable sam-ba bootloader
CONFIG_BOOTLOADER_BOSSA=y
Copy link
Contributor

Choose a reason for hiding this comment

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

board.cmake is only declaring support for pyocd, so why is this enabling bossa here? I would have expected support for the bossac runner enabled in board.cmake.

Copy link
Member Author

Choose a reason for hiding this comment

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

To my understanding bossa doesn't support SAMD11 so I'll just remove this line 👍

@benjaminbjornsson
Copy link
Member Author

@tejlmand ping

tejlmand
tejlmand previously approved these changes Mar 14, 2022
Copy link
Collaborator

@tejlmand tejlmand left a comment

Choose a reason for hiding this comment

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

lgtm

@benjaminbjornsson
Copy link
Member Author

benjaminbjornsson commented Mar 17, 2022

Is there anything I should do about the failed test in order for this to get merged? Seems to me like it's unrelated to my pull request?

@MaureenHelm
Copy link
Member

Is there anything I should do about the failed test in order for this to get merged? Seems to me like it's unrelated to my pull request?

Please rebase to pick up the fix

@benjaminbjornsson
Copy link
Member Author

Should I re-request review?

tejlmand
tejlmand previously approved these changes Mar 18, 2022
Copy link
Collaborator

@tejlmand tejlmand left a comment

Choose a reason for hiding this comment

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

lgtm - re-approved

Copy link
Member

@gmarull gmarull left a comment

Choose a reason for hiding this comment

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

All in-tree boards have now been ported to pinctrl, so please do the same here. You can refer to #43926 for more details.

@carlescufi
Copy link
Member

All in-tree boards have now been ported to pinctrl, so please do the same here. You can refer to #43926 for more details.

Sorry for this @benjaminbjornsson, your PR landed in the middle of a pinctrl transition.

@gmarull
Copy link
Member

gmarull commented Mar 21, 2022

You can try with:

python scripts/utils/pinctrl_nrf_migrate.py -i boards/arm/arduino_nicla_sense_me/arduino_nicla_sense_me.dts --no-backup --header $'/*\n * Copyright (c) 2022 Benjamin Björnsson <benjamin.bjornsson@gmail.com>.\n * SPDX-License-Identifier: Apache-2.0\n */\n\n'

and add CONFIG_PINCTRL=y to the board defconfig

This commit adds support for the Arduino Nicla Sense ME board.
The board functionality has been tested using the samples:
- hello_world
- philosophers
- peripheral_dis
- spi_flash

Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
Copy link
Member

@carlescufi carlescufi left a comment

Choose a reason for hiding this comment

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

LGTM now, thank you!

@carlescufi
Copy link
Member

@benjaminbjornsson ignore the compliance check failure, it's unrelated to your patches.

@carlescufi carlescufi merged commit ab6f5cf into zephyrproject-rtos:main Mar 21, 2022
@gmarull
Copy link
Member

gmarull commented Mar 21, 2022

looks like you'll need to rebase after #44042 (hotfix)...

@benjaminbjornsson benjaminbjornsson deleted the add_support_arduino_nano_sense_me branch July 1, 2022 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants