Skip to content

QSPI write alignment fix for nRF52x #9866

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

Merged
merged 1 commit into from
Mar 1, 2019
Merged

Conversation

j3hill
Copy link
Contributor

@j3hill j3hill commented Feb 26, 2019

Description

If the start address of the data buffer for a QSPI write operation is not WORD/4-byte aligned, use an aligned 16 x WORD length buffer on the stack

Pull request type

[X] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

@j3hill j3hill requested review from 0xc0170 and offirko February 26, 2019 21:34
@ciarmcom ciarmcom requested review from screamerbg and a team February 26, 2019 22:00
@ciarmcom
Copy link
Member

@j3hill, thank you for your changes.
@screamerbg @ARMmbed/mbed-os-maintainers please review.

if (ret != NRF_SUCCESS ) {
return QSPI_STATUS_ERROR;
}
pos+=diff;
Copy link
Contributor

Choose a reason for hiding this comment

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

small change request : following coding style, using space around operators (pos < *length) and similar

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've made the change, and I'll be sure to make the spacing consistent going forward.

If the data buffer for a write is not 4-byte aligned, use an aligned 16 byte buffer on the stack
@0xc0170
Copy link
Contributor

0xc0170 commented Mar 1, 2019

CI started while idle and waiting for master fix .

@mbed-ci
Copy link

mbed-ci commented Mar 1, 2019

Test run: SUCCESS

Summary: 13 of 13 test jobs passed
Build number : 1
Build artifacts

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.

5 participants