-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
applications: sdp: mspi: add calculating counter value #20209
base: main
Are you sure you want to change the base?
applications: sdp: mspi: add calculating counter value #20209
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: f7d8724ee6b7a54061d0496996395948a1b04bdf more detailssdk-nrf:
Github labels
List of changed files detected by CI (4)
Outputs:ToolchainVersion: aedb4c0245 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
You can find the documentation preview for this PR at this link. Note: This comment is automatically posted by the Documentation Publish GitHub Action. |
0e04fa4
to
eb0a5a8
Compare
@magp-nordic CI is red |
eb0a5a8
to
8cb8290
Compare
8cb8290
to
c095118
Compare
After documentation is built, you will find the preview for this PR here. |
714e36a
to
7d22dfc
Compare
drivers/mspi/mspi_nrfe.c
Outdated
if (SystemCoreClock % (cfg->freq * 2) != 0) { | ||
LOG_ERR("Invalid frequency: %u. Only divisors of (CPU_FREQ / 2) are " | ||
"allowed.", | ||
cfg->freq); | ||
return -EINVAL; | ||
} |
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.
Please update
7d22dfc
to
429d26d
Compare
Add calculatng and setting VTIM top value based on desired transmission frequency. Signed-off-by: Magdalena Pastula <[email protected]>
Add checking if desired transmission frequency is possible to set. Signed-off-by: Magdalena Pastula <[email protected]>
Add temporary fix for not starting VTIM when max frequency is set (counter value 0). Signed-off-by: Magdalena Pastula <[email protected]>
429d26d
to
f7d8724
Compare
|
You can find the documentation preview for this PR here. |
@@ -174,7 +199,7 @@ static void xfer_execute(nrfe_mspi_xfer_packet_msg_t *xfer_packet) | |||
volatile nrfe_mspi_dev_config_t *device = | |||
&nrfe_mspi_devices[nrfe_mspi_xfer_config_ptr->device_index]; | |||
|
|||
xfer_params.counter_value = 4; | |||
xfer_params.counter_value = cnt0_top_calculate(device->freq); |
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 be done once, when NRFE_MSPI_CONFIG_DEV
is received, and then cached.
Add calculating VTIM CNT0 top value based on desired frequency.
Needs #20320 to make CI green.