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

applications: sdp: mspi: add calculating counter value #20209

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

magp-nordic
Copy link
Contributor

@magp-nordic magp-nordic commented Feb 5, 2025

Add calculating VTIM CNT0 top value based on desired frequency.
Needs #20320 to make CI green.

@magp-nordic magp-nordic requested review from a team as code owners February 5, 2025 13:57
@github-actions github-actions bot added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Feb 5, 2025
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Feb 5, 2025

CI Information

To view the history of this post, clich the 'edited' button above
Build number: 11

Inputs:

Sources:

sdk-nrf: PR head: f7d8724ee6b7a54061d0496996395948a1b04bdf

more details

sdk-nrf:

PR head: f7d8724ee6b7a54061d0496996395948a1b04bdf
merge base: f79bb54aa27859dc46886f75d8afa760096d794a
target head (main): 0a5fa170d3a31422d09ba1b07c5eccad114820ae
Diff

Github labels

Enabled Name Description
ci-disabled Disable the ci execution
ci-all-test Run all of ci, no test spec filtering will be done
ci-force-downstream Force execution of downstream even if twister fails
ci-run-twister Force run twister
ci-run-zephyr-twister Force run zephyr twister
List of changed files detected by CI (4)
applications
│  ├── sdp
│  │  ├── mspi
│  │  │  ├── src
│  │  │  │  ├── hrt
│  │  │  │  │  ├── hrt-nrf54l15.s
│  │  │  │  │  │ hrt.c
│  │  │  │  │ main.c
drivers
│  ├── mspi
│  │  │ mspi_nrfe.c

Outputs:

Toolchain

Version: aedb4c0245
Build docker image: docker-dtr.nordicsemi.no/sw-production/ncs-build:aedb4c0245_bece0367df

Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped; ⚠️ Quarantine

  • ◻️ Toolchain - Skipped: existing toolchain is used
  • ✅ Build twister - Skipped: Skipping Build & Test as it succeeded in a previous run: 10
  • ✅ Integration tests
    • ✅ test-low-level
Disabled integration tests
    • desktop52_verification
    • doc-internal
    • test_ble_nrf_config
    • test-fw-nrfconnect-apps
    • test-fw-nrfconnect-ble_mesh
    • test-fw-nrfconnect-ble_samples
    • test-fw-nrfconnect-boot
    • test-fw-nrfconnect-chip
    • test-fw-nrfconnect-fem
    • test-fw-nrfconnect-nfc
    • test-fw-nrfconnect-nrf-iot_cloud
    • test-fw-nrfconnect-nrf-iot_libmodem-nrf
    • test-fw-nrfconnect-nrf-iot_lwm2m
    • test-fw-nrfconnect-nrf-iot_mosh
    • test-fw-nrfconnect-nrf-iot_positioning
    • test-fw-nrfconnect-nrf-iot_samples
    • test-fw-nrfconnect-nrf-iot_serial_lte_modem
    • test-fw-nrfconnect-nrf-iot_thingy91
    • test-fw-nrfconnect-nrf-iot_zephyr_lwm2m
    • test-fw-nrfconnect-nrf_crypto
    • test-fw-nrfconnect-proprietary_esb
    • test-fw-nrfconnect-ps
    • test-fw-nrfconnect-rpc
    • test-fw-nrfconnect-rs
    • test-fw-nrfconnect-tfm
    • test-fw-nrfconnect-thread
    • test-fw-nrfconnect-zigbee
    • test-sdk-audio
    • test-sdk-dfu
    • test-sdk-find-my
    • test-sdk-mcuboot
    • test-sdk-pmic-samples
    • test-sdk-sidewalk
    • test-sdk-wifi
    • test-secdom-samples-public

Note: This message is automatically posted and updated by the CI

@NordicBuilder
Copy link
Contributor

You can find the documentation preview for this PR at this link.

Note: This comment is automatically posted by the Documentation Publish GitHub Action.

@magp-nordic magp-nordic force-pushed the NRFX-6703-tx-timing-alignment-for-l15 branch from 0e04fa4 to eb0a5a8 Compare February 5, 2025 14:36
@masz-nordic masz-nordic added this to the 3.0.0 milestone Feb 7, 2025
@masz-nordic
Copy link
Contributor

@magp-nordic CI is red

Copy link

After documentation is built, you will find the preview for this PR here.

@magp-nordic magp-nordic force-pushed the NRFX-6703-tx-timing-alignment-for-l15 branch 2 times, most recently from 714e36a to 7d22dfc Compare February 25, 2025 17:10
Comment on lines 417 to 422
if (SystemCoreClock % (cfg->freq * 2) != 0) {
LOG_ERR("Invalid frequency: %u. Only divisors of (CPU_FREQ / 2) are "
"allowed.",
cfg->freq);
return -EINVAL;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update

@magp-nordic magp-nordic force-pushed the NRFX-6703-tx-timing-alignment-for-l15 branch from 7d22dfc to 429d26d Compare February 26, 2025 13:53
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]>
@magp-nordic magp-nordic force-pushed the NRFX-6703-tx-timing-alignment-for-l15 branch from 429d26d to f7d8724 Compare February 26, 2025 13:55
Copy link

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);
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants