Skip to content

Conversation

@mif1-nordic
Copy link
Contributor

depends on #20602

@mif1-nordic mif1-nordic requested review from a team as code owners March 4, 2025 15:37
@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 Mar 4, 2025
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Mar 4, 2025

CI Information

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

Inputs:

Sources:

sdk-nrf: PR head: eb9018bfd298c4fda423fab402454d8981c29ed9

more details

sdk-nrf:

PR head: eb9018bfd298c4fda423fab402454d8981c29ed9
merge base: 1d5fa93d98afc9d70656ac6b9311f01180d94a46
target head (main): 648c06e61f46d5f2f56ff94db222762c663fd519
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 (8)
applications
│  ├── sdp
│  │  ├── mspi
│  │  │  ├── boards
│  │  │  │  │ nrf54l15dk_nrf54l15_cpuflpr.overlay
│  │  │  ├── src
│  │  │  │  ├── hrt
│  │  │  │  │  ├── hrt-nrf54l15.s
│  │  │  │  │  ├── hrt.c
│  │  │  │  │  │ hrt.h
│  │  │  │  │ main.c
drivers
│  ├── mspi
│  │  │ mspi_nrfe.c
include
│  ├── drivers
│  │  ├── mspi
│  │  │  │ nrfe_mspi.h
snippets
│  ├── sdp
│  │  ├── mspi
│  │  │  ├── soc
│  │  │  │  │ nrf54l15_cpuapp.overlay

Outputs:

Toolchain

Version: 4ffa2202d5
Build docker image: docker-dtr.nordicsemi.no/sw-production/ncs-build:4ffa2202d5_e579f9fbe6

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: 29
  • ✅ Integration tests
    • ✅ test-low-level
Disabled integration tests
    • desktop52_verification
    • doc-internal
    • test-fw-nrfconnect-apps
    • 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_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-wifi
    • test-secdom-samples-public

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

@github-actions
Copy link

github-actions bot commented Mar 4, 2025

You can find the documentation preview for this PR here.

@masz-nordic masz-nordic added this to the 3.0.0 milestone Mar 6, 2025
@mif1-nordic mif1-nordic force-pushed the rx_fLow branch 6 times, most recently from 3b6d9cf to 3a72ed1 Compare March 11, 2025 08:57
@mif1-nordic mif1-nordic mentioned this pull request Mar 11, 2025
@mif1-nordic mif1-nordic force-pushed the rx_fLow branch 6 times, most recently from 7d6bc30 to 27c9038 Compare March 12, 2025 15:05
@mif1-nordic mif1-nordic requested a review from a team as a code owner March 12, 2025 15:05
@mif1-nordic mif1-nordic force-pushed the rx_fLow branch 2 times, most recently from 22b33e4 to 3970be6 Compare March 13, 2025 12:01
@mif1-nordic mif1-nordic force-pushed the rx_fLow branch 2 times, most recently from 3d7957c to 2499e70 Compare March 13, 2025 13:46
Copy link
Contributor Author

@mif1-nordic mif1-nordic left a comment

Choose a reason for hiding this comment

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

reviewed during meeting

@mif1-nordic mif1-nordic force-pushed the rx_fLow branch 2 times, most recently from 5278151 to 6b7ac9f Compare March 17, 2025 16:39
@mif1-nordic mif1-nordic force-pushed the rx_fLow branch 2 times, most recently from 2b7e509 to f160adf Compare March 18, 2025 08:22
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if this will work correctly without the __packed attribute on every compiler.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed opcode to be uint32_t

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cnahged nrfe_mspi_opcode_t size to 32 bits

.user_data = NULL,
.flags = 0,
.ticks = counter_us_to_ticks(flpr_fault_timer, CONFIG_MSPI_NRFE_FAULT_TIMEOUT)
.ticks = counter_us_to_ticks(flpr_fault_timer, CONFIG_MSPI_NRFE_FAULT_TIMEOUT),
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't use auto formatting on the whole file. Only use it on the parts of the file that you have changed.
-> The rule is to not add such unnecessary changes to the PR. In the long run it disrupts/makes it harder to merge the whole file with the code of others.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Comment on lines 98 to 99
nrfe_mspi_opcode_t opcode; /* Same as application's request. */
unsigned reserved : 24; /* Reserved to ensure proper alignment of data field. */
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
nrfe_mspi_opcode_t opcode; /* Same as application's request. */
unsigned reserved : 24; /* Reserved to ensure proper alignment of data field. */
nrfe_mspi_opcode_t opcode : 32; /* Same as application's request. */

What about this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this does not compile

Copy link
Contributor

@jaz1-nordic jaz1-nordic Mar 19, 2025

Choose a reason for hiding this comment

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

I confirm, it does not compile due to the added short-enums compiler flag. Another solution is to use a union. This is a transparent solution, and it causes the field size to be correct and the data is shifted by 32 bits.

typedef struct {
union {
nrfe_mspi_opcode_t opcode; /* Same as application's request. */
unsigned : 32;
};
uint8_t data;
} nrfe_mspi_flpr_response_msg_t;

But I think the least intrusive thing to do would be to simply add the value NRFE_MSPI_OPCODES_MAX = 0xFFFFFFFF at the end of nrfe_mspi_opcode_t, which would force the enum size to 32bits.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed using this solution: NRFE_MSPI_OPCODES_MAX = 0xFFFFFFFF

@mif1-nordic mif1-nordic force-pushed the rx_fLow branch 2 times, most recently from dac73d9 to de9df28 Compare March 19, 2025 09:15
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed switch to for

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
penultimate_word = (penultimate_word >> (penultimate_word_shift)) |
penultimate_word = (penultimate_word >> penultimate_word_shift) |

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Comment on lines 258 to 262
Copy link
Contributor

Choose a reason for hiding this comment

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

Can be only declared here and defined later?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* counter stops 1 clock to early.
* counter stops 1 clock too early.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Comment on lines 27 to 28
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add comments describing those defines.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can limit the max possible freq to 21 MHz on the APP side, but can be left as is for now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please describe in comment how this is different from alignment done above.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Comment on lines 27 to 28
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can limit the max possible freq to 21 MHz on the APP side, but can be left as is for now.

Copy link
Contributor

@magp-nordic magp-nordic left a comment

Choose a reason for hiding this comment

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

Overall LGTM, just the recent changes need to be pushed.

@mif1-nordic mif1-nordic force-pushed the rx_fLow branch 2 times, most recently from 0720d3c to bc42eff Compare March 24, 2025 07:54
Modified hrt rx flow to use write function for command,
address and dummy cycles. Modified Rx function to work
in 32 bit mode instead of 8 bit.

Signed-off-by: Michal Frankiewicz <[email protected]>
Modified return buffer alignment.

Signed-off-by: Michal Frankiewicz <[email protected]>
Added no copy functionality to RX.

Signed-off-by: Michal Frankiewicz <[email protected]>
Added no copy functionality to RX.

Signed-off-by: Michal Frankiewicz <[email protected]>
Increased partition size for flipper code.

Signed-off-by: Michal Frankiewicz <[email protected]>
Increased partition size for flipper code.

Signed-off-by: Michal Frankiewicz <[email protected]>
@sonarqubecloud
Copy link

@masz-nordic masz-nordic requested a review from nordicjm March 24, 2025 11:17
@masz-nordic masz-nordic merged commit 9255061 into nrfconnect:main Mar 24, 2025
14 checks passed
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.

7 participants