Skip to content

Conversation

@galak
Copy link
Contributor

@galak galak commented Sep 11, 2019

samples/shields/x_nucleo_iks01a2/sample.shields.x_nucleo_iks01a2 fails to build on a number of boards because they lack arduino_header in their dts. Make the sample depend on arduino_header and update various boards to say they support this.

Copy link
Contributor

@avisconti avisconti left a comment

Choose a reason for hiding this comment

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

what about arm/stm32mp157c_dk2?
It includes arduino_r3_connector.dtsi where arduino_header is defined, but it does not
specify it as supported in the yaml file. Isn't it?

Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

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

As mentionned in comments, arduino_gpio would be a better fit

Change arduino_header depend to arduino_gpio as that is more meaningful.
Its easy to mistake arduino_header to mean the board has an arduino
header in general.  What we want to depend on is that we have the gpio
connector in the dts that has 'arduino_header' as the node label.

Signed-off-by: Kumar Gala <[email protected]>
There are build issues with this sample now that it requires that the
board dts have an arduino_header node.  Add depends_on: arduino_gpio
to sample.yaml so we only build this if the board has that header.

Also remove a duplicate line for excluding the disco_l475_iot1 platform.

Signed-off-by: Kumar Gala <[email protected]>
@galak
Copy link
Contributor Author

galak commented Sep 11, 2019

what about arm/stm32mp157c_dk2?
It includes arduino_r3_connector.dtsi where arduino_header is defined, but it does not
specify it as supported in the yaml file. Isn't it?

Missed it, now fixed.

@galak galak requested review from avisconti and erwango September 11, 2019 11:48
Copy link
Contributor

@avisconti avisconti 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

@galak galak added the Hotfix Fix for issues blocking development, i.e. upstream CI issues, tests failing in upstream CI , etc. label Sep 11, 2019
Update a number of boards that have arduino_gpio and arduino_i2c
support in their dts files to show that they support that in the
board.yaml file.  This allows coverage on several shield tests that
utilize the tags 'arduino_gpio' and 'arduino_i2c'.

Exlucde stm32mp157c_dk2 from some of the samples right now since the
connector on the board doesn't support A2/A3.  Also remove the duplicate
of exluding disco_l475_iot1.

Signed-off-by: Kumar Gala <[email protected]>
Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

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

Proposing an alternative to stm32mp157c_dk2 exclusion from shield sanitycheck

depends_on: arduino_i2c arduino_header
platform_exclude: disco_l475_iot1
depends_on: arduino_i2c arduino_gpio
platform_exclude: disco_l475_iot1 stm32mp157c_dk2
Copy link
Member

Choose a reason for hiding this comment

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

Thinking again about it, I think we could also add a stm32mp157c_dk2 dedicated overlay in the shield removing the pins that don't match, rather than excl
This would allow to keep using the board wit the shield (which totally works).
What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed, but more work needs to be done for that, let's address that after we get this merged to fix the build issues.

See but #19078

Copy link
Member

Choose a reason for hiding this comment

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

I tested successfully the following:
boards/shields/x_nucleo_iks01a2/boards/stm32mp157c_dk2.overlay

&arduino_i2c {
	lsm303agr-magn@1e {
		/delete-property/ irq-gpios;	/* A3 */
	};

	lsm303agr-accel@19 {
		/delete-property/ irq-gpios;	/* A3 */
	};
};

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, the x_nucleo_iks01a3 is the harder one to solve right now.

@galak
Copy link
Contributor Author

galak commented Sep 11, 2019

@erwango Going to merge this and handle fixing up stm32mp157c_dk2 as a post PR.

@galak galak merged commit 702325d into zephyrproject-rtos:master Sep 11, 2019
@galak galak deleted the fix-shields branch September 11, 2019 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Boards area: Samples Samples Hotfix Fix for issues blocking development, i.e. upstream CI issues, tests failing in upstream CI , etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants