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

Qspi frequency test fix #11631

Merged
merged 2 commits into from
Oct 28, 2019
Merged

Conversation

maciejbocianski
Copy link
Contributor

@maciejbocianski maciejbocianski commented Oct 4, 2019

Description

  • fix qspi_frequency_test: prevent setting frequency below QSPI_MIN_FREQUENCY
  • adjust min frequency for EFM32GG11 target for hal qspi test

Pull request type

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

Reviewers

@jamesbeyond

Release Notes

Prevent setting frequency below QSPI_MIN_FREQUENCY
according to the driver limitations
@ciarmcom ciarmcom requested review from jamesbeyond and a team October 4, 2019 11:00
@ciarmcom
Copy link
Member

ciarmcom commented Oct 4, 2019

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

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.

Why this min is set to the value 2000000?

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 17, 2019

Reviewers please look at this PR

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 18, 2019

I scheduled CI to get early test results

@mbed-ci
Copy link

mbed-ci commented Oct 18, 2019

Test run: SUCCESS

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

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 21, 2019

Tests completed.

Why this min is set to the value 2000000?

@maciejbocianski Can you answer?

Also reviewers review, lets take this in soon.

@maciejbocianski
Copy link
Contributor Author

Setting frequency below 2MHz cause that basediv gets value larger then allowed max causing undefined behavior and errors in following testcases.

/** QSPI initialization structure. */
typedef struct {
/** Enable/disable Quad SPI when initialization is completed. */
bool enable;
/**
* Master mode baude rate divisor. Values can be even numbers in the range
* [2-32] inclusive. */
uint8_t divisor;
} QSPI_Init_TypeDef;

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 25, 2019

Restarted CI

We shall progress with this fix today.

@mbed-ci
Copy link

mbed-ci commented Oct 25, 2019

Test run: SUCCESS

Summary: 5 of 5 test jobs passed
Build number : 2
Build artifacts

@0xc0170 0xc0170 merged commit 87a5e47 into ARMmbed:master Oct 28, 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.

None yet

4 participants