-
Notifications
You must be signed in to change notification settings - Fork 3k
Add HAL CRC test and header file #6831
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
Conversation
@scartmell-arm hal/crc_api.h exists in both this PR and #6708. Was that the intention, or is this PR only suppose to contain tests? |
This PR provides test and header file. The header file has been added since original header file (from PR #6708) dose not provide requirements section in form which is common for all other HAL APIs (e.g. Lines 58 to 90 in 9fdb5c2
I allowed myself to create such requirements for testing purposes and requested @scartmell-arm for review. So this PR adds only testing requirements to original header file. |
In that case, it could be added as part of this PR being merged? |
Probably yes. |
Awaiting the rebase! Two things. 1) Generally, tests can come in at any time. It would have probably been better to bring this in with the other PR as a single commit, but that's alright. |
OK not sure I totally agree with this but he is tech lead for Hal so his call. |
Taking this outside of 5.9. Build failures indicate IAR linker issues with the new test. Tests can come in during patch releases. |
@mprse As the CRC was integrated, can you review the build failures? |
@mprse Ping |
I was out of office and I returned today. |
…RB/IAR Allocate test case array on stack since memory limits on some boards.
…es CRC width It looks like the intention was to return false when CRC width is different than: {16, 32} bits.
According to the test results final XOR was incorrectly handled by the CRC driver. This patch fixes this issue.
Provided fix for NUCLEO_F070RB, NUCLEO_F072RB/IAR - out of memory issue. |
/morph build |
Build : SUCCESSBuild number : 2325 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 1946 |
Test : SUCCESSBuild number : 2104 |
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.
LGTM
Description
Add CRC HAL API test and test header file.
Since the testing requirements were not provided in PR #6708 I allowed myself to define them here.
@scartmell-arm Please review the test and testing requirements and update if something is wrong or should be additionally tested.
Status
READY
Related PRs
#6708 - provides CRC HAL API definition and example driver for K64F. Needs to be merged before this one.
Pull request type