-
Notifications
You must be signed in to change notification settings - Fork 8.2k
boards: beagle: beagleconnect_freedom: Add rev C5 support #99489
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
base: main
Are you sure you want to change the base?
Conversation
| if("${BOARD_QUALIFIERS}" MATCHES "/cc1352p7$" AND "${BOARD_REVISION}" STREQUAL "C5") | ||
| set(ACTIVE_BOARD_REVISION "C7") | ||
| message(WARNING "C5 only supports CC1352P. Using C7 instead.") | ||
| endif() | ||
|
|
||
| if("${BOARD_QUALIFIERS}" MATCHES "/cc1352p$" AND "${BOARD_REVISION}" STREQUAL "C7") | ||
| set(ACTIVE_BOARD_REVISION "C5") | ||
| message(WARNING "C7 only supports CC1352P7. Using C5 instead.") | ||
| endif() |
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.
this should check from the first character until either the end of the line or until a /, this code prevents users extending a board out of tree, and it should also not be changing the revision, if there is no revision provided then there can be a default set but do not override what the user has put, throw an error
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, throwing the error breaks CI since there was no way I could find to tie an soc to a specific revision.
It was discussed here: #95065
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.
It uses the twister files you have, if there is no .yaml for a board target then twister will not try to use it, and you need to have the revisions in the .yaml files for the twister board name. You should probably not set a default revision anyway since it isn't valid for one of the SoCs, people should provide the correct revision
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.
It uses the twister files you have, if there is no .yaml for a board target then twister will not try to use it, and you need to have the revisions in the .yaml files for the twister board name. You should probably not set a default revision anyway since it isn't valid for one of the SoCs, people should provide the correct revision
Do you mean this file boards/beagle/beagleconnect_freedom/beagleconnect_freedom_cc1352p7.yaml? It can have a revisions field?
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.
Yes, rename and change like so: https://github.com/zephyrproject-rtos/zephyr/blob/main/boards/nordic/nrf9160dk/nrf9160dk_nrf9160_0_7_0.yaml
There seem to be a decent number of C5 boards around. So add support for it while keeping C7 as the default version. The main difference between C7 and C5 is that C5 uses CC1352P instead of CC1352P7 Signed-off-by: Ayush Singh <ayush@beagleboard.org>
|



There seem to be a decent number of C5 boards around. So add support for it while keeping C7 as the default version.
The main difference between C7 and C5 is that C5 uses CC1352P instead of CC1352P7