Skip to content

Conversation

@marekmatej
Copy link
Contributor

@marekmatej marekmatej commented Nov 5, 2024

This PR fixes how the APPCPU is being built in IPM samples. C array encapsulation is removed and instead normal build procedure is used. Fixing the sysbuild builds as well.

Fixes #80890

@zephyrbot
Copy link

zephyrbot commented Nov 5, 2024

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
hal_espressif zephyrproject-rtos/hal_espressif@23c17a8 zephyrproject-rtos/hal_espressif@174547e (zephyr) zephyrproject-rtos/[email protected]

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@zephyrbot zephyrbot added manifest manifest-hal_espressif DNM This PR should not be merged (Do Not Merge) labels Nov 5, 2024
@marekmatej marekmatej force-pushed the bugfix/amp_s3_sample_basic branch from ac2bc4c to b355dfa Compare November 5, 2024 01:07
Copy link
Member

@uLipe uLipe left a comment

Choose a reason for hiding this comment

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

Great to see this being sent.

I just left some initial commits.

@marekmatej marekmatej force-pushed the bugfix/amp_s3_sample_basic branch 5 times, most recently from 9771fe2 to 6433c35 Compare November 5, 2024 12:27
@marekmatej marekmatej requested a review from uLipe November 5, 2024 12:27
@zephyrbot zephyrbot removed the DNM This PR should not be merged (Do Not Merge) label Nov 5, 2024
@marekmatej marekmatej force-pushed the bugfix/amp_s3_sample_basic branch from b50d570 to c17cb8f Compare November 6, 2024 13:31
@marekmatej marekmatej changed the title IPM fix for esp32s3_devkitm target IPM fix for esp32s3 targets Nov 6, 2024
uLipe
uLipe previously approved these changes Nov 6, 2024
@marekmatej marekmatej added this to the v4.0.0 milestone Nov 6, 2024
Fetch latest features to support fixes.

Signed-off-by: Marek Matej <[email protected]>
Align the shared memories with the memory.h layout.
Reorder nodes to show memory related nodes together.

Signed-off-by: Marek Matej <[email protected]>
Fix missing flash and code partition.
Add missing dts entries and use common partition tables to all related
non-Espressif boards, previously ommited.
Add uart1 node in pinctrl for APPCPU.

Signed-off-by: Marek Matej <[email protected]>
Avoid APPCPU to interact with a clock settings.
Fix warning when LOG_LEVEL_DBG.

Signed-off-by: Marek Matej <[email protected]>
Updates and fixes to support APPCPU.
- fix ld scripts
- fix and update memory layout
- fix build issues
- fix sysbuild

Signed-off-by: Marek Matej <[email protected]>
Updates and fixes to support IPM sample on ESP32:

- fix IPM sample code for APPCPU and PROCPU
- align with memory layout, add flash awarenes
- shell commands to stop/start APPCPU
- reorganize overlays

Signed-off-by: Marek Matej <[email protected]>
@uLipe
Copy link
Member

uLipe commented Nov 6, 2024

@mmahadevan108 any chance to put this into the 4.0?

Thank you :)

@mmahadevan108
Copy link
Contributor

pinging @nordicjm for a review from HWV2 side as these samples were broken since the switch to HWV2.

@mmahadevan108
Copy link
Contributor

@uLipe . This is a fairly big change. Is everything required for fixing the bug?
It might be easier to pull this into 4.0 if we can focus this PR to only include the changes needed to fix the bug and move the remaining to a separate PR that can be merged post 4.0 release.

@marekmatej
Copy link
Contributor Author

This is a fairly big change.

@mmahadevan108 you are right, and the reason it is so hefty is it not only fixes the IPM build itself but also stuff related to HWMv2, eg using sysbuild for multi-image builds.

@uLipe
Copy link
Member

uLipe commented Nov 8, 2024

@mmahadevan108 as @marekmatej explained this change fixes the IPM but unfortunately it was necessary to address the sysbuild and hmv2 stuff to get this working propey, other direction from that would lead to hacky fixes.

Although this change carries lots of change, most of them are espressif localized changes that impact only the esp32 IPM part, the only more generic change is the IPM sample which got simplified which we see low impact on the overall zephyr release, but a significant change for people interested that are waiting the esp32 side IPM to get fixed.

Although we feel this is a specific change that only affects espressif platform, I will understand if you prefer to postpone this change due its size :)

@mmahadevan108
Copy link
Contributor

@uLipe @marekmatej thank you for clarifying. This PR needs approval from @kartben as he is the assignee before we can merge

@kartben kartben assigned sylvioalves and unassigned kartben Nov 8, 2024
@marekmatej
Copy link
Contributor Author

Now that assignee has been updated, I guess we can proceed as is? @mmahadevan108

@uLipe
Copy link
Member

uLipe commented Nov 8, 2024

I'd say the same thing :)

@mmahadevan108 mmahadevan108 merged commit a8ab8b4 into zephyrproject-rtos:main Nov 8, 2024
25 checks passed
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.

IPM sample for esp32s3_devkitm remote build error

8 participants