-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
SDP MSPI driver #18893
base: main
Are you sure you want to change the base?
SDP MSPI driver #18893
Conversation
The following west manifest projects have changed revision in this Pull Request:
⛔ DNM label due to: 1 project with PR revision Note: This message is automatically posted and updated by the Manifest GitHub Action. |
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 3b113cda86c5c5486e91b12671c641afd8a68035 more detailssdk-nrf:
zephyr:
Github labels
List of changed files detected by CI (33)
Outputs:ToolchainVersion: b77d8c1312 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds. Note: This comment is automatically posted by the Documentation Publishing GitHub Action. |
e660c0e
to
04e12ea
Compare
04e12ea
to
55aedeb
Compare
You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds. Note: This comment is automatically posted by the Documentation Publish GitHub Action. |
uint8_t *buffer = (uint8_t *)data; | ||
uint8_t opcode = *buffer++; |
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.
I'm not a fan of copying everything to a buffer; it is quite misleading. What if we sent a structure that would have an opcode and a union of Zephyr structures (mspi_cfg , mspi_dev_cfg, mspi_xfer and mspi_xfer_packet ) since sending a pointer will not work on H20?
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.
@jaz1-nordic have you changed it? It looks still the same.
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.
There is no more buffer-to-buffer copying. One exception is opcode
reading, because it is used in many places. The rest is casting the pointer to a pointer of another type uint8_t
, so that you can cast to a struct with a single byte precision. Wasn't that your suggestion?
91bb39f
to
c2e11f9
Compare
Memory footprint analysis revealed the following potential issuessample.matter.template.release[nrf7002dk/nrf5340/cpuapp]: High ROM usage: 811934[B] - link (cc: @kkasperczyk-no @ArekBalysNordic @markaj-nordic) Note: This message is automatically posted and updated by the CI (latest/sdk-nrf/PR-18893/3) |
c2e11f9
to
eedb55d
Compare
2df40f2
to
81dc879
Compare
uint8_t *buffer = (uint8_t *)data; | ||
uint8_t opcode = *buffer++; |
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.
@jaz1-nordic have you changed it? It looks still the same.
@@ -11,6 +11,7 @@ add_subdirectory(hw_cc3xx) | |||
if (CONFIG_MPSL AND NOT CONFIG_MPSL_FEM_ONLY) | |||
add_subdirectory(mpsl) | |||
endif() | |||
add_subdirectory_ifdef(CONFIG_MSPI mspi) |
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.
Why this is added only if CONFIG_MSPI is enabled, while gpio is included by default? Is it because gpio should be enabled by default by Zephyr rules? @masz-nordic
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.
Because the SDP implementation depends on MSPI KConfigs and structures. So MSPI must be enabled.
54d3dba
to
22dc924
Compare
Added initial mspi implementation with hard real time task running on interrupts. Signed-off-by: Michal Frankiewicz <[email protected]> Signed-off-by: Magdalena Pastula <[email protected]>
Add changes related with SDP MSPI driver API test. Signed-off-by: Jakub Zymelka <[email protected]>
Add SDP MSPI driver, dts and include files. Signed-off-by: Jakub Zymelka <[email protected]>
Add new snippet files for SDP MSPI. Signed-off-by: Jakub Zymelka <[email protected]>
Add cmake files to be able to include the SDP MSPI application in solutions where SDP MSPI is required. Signed-off-by: Jakub Zymelka <[email protected]>
Add IPC solution based on icmsg to application for FLPR core to communicate with SDP MSPI driver. Signed-off-by: Jakub Zymelka <[email protected]>
Add yaml configuration to enable SDP MSPI API test. Signed-off-by: Jakub Zymelka <[email protected]>
22dc924
to
3b113cd
Compare
SDP MSPI driver
Based on and blocked by: