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

hal-qspi_test: move frequency setting before flash init #9229

Merged
merged 1 commit into from
Jan 4, 2019

Conversation

maciejbocianski
Copy link
Contributor

@maciejbocianski maciejbocianski commented Jan 3, 2019

Description

Fix for #9075

Frequency setting just after erase operation was causing some data
inconsistencies during write/read operations on some targets (frdm-k82f).

To fix this, frequency setting was moved before flash memory init.
Frankly, setting frequency before every write/read operation was pointless.

Tested on:
DISCO_F769NI
DISCO_F413ZH
DISCO_L475VG_IOT01A
nrf52840_dk

Pull request type

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

Reviewers

@0xc0170
@ARMmbed/mbed-os-storage
@ARMmbed/mbed-os-hal

@ciarmcom
Copy link
Member

ciarmcom commented Jan 3, 2019

@maciejbocianski, thank you for your changes.
@0xc0170 @ARMmbed/mbed-os-hal @ARMmbed/mbed-os-test @ARMmbed/mbed-os-maintainers please review.

@ciarmcom ciarmcom requested review from a team January 3, 2019 10:00
Copy link
Contributor

@0xc0170 0xc0170 left a comment

Choose a reason for hiding this comment

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

astyle error needs to be addressed

Frequency setting just after erase operation was causing some data
inconsistencies during write/read operations on some targets (frdm-k82f).
To fix this, frequency setting was moved before flash memory init.
@maciejbocianski
Copy link
Contributor Author

astyle fixed

Copy link
Contributor

@cmonr cmonr left a comment

Choose a reason for hiding this comment

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

🎉

Copy link
Contributor

@cmonr cmonr left a comment

Choose a reason for hiding this comment

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

🎉

@cmonr
Copy link
Contributor

cmonr commented Jan 3, 2019

Will likely run the greentea tests multiple times to confirm, but this is exciting!

@cmonr
Copy link
Contributor

cmonr commented Jan 3, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Jan 4, 2019

Test run: SUCCESS

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

@0xc0170 0xc0170 merged commit acd69ae into ARMmbed:master Jan 4, 2019
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