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

tests: spi_loopback: Fix high RAM usage #72895

Merged

Conversation

krish2718
Copy link
Collaborator

Display diff of contents for large buffers is not quite helpful and takes up huge RAM, and if a board has less RAM then this causes the test module build failures.

So, disable display of diff and just log a failure, small buffer tests can be used to debug such basic issues and large buffer tests can act as a smoke test for debugging other issues. This saves about 80K of RAM.

Fixes #72792.

Display diff of contents for large buffers is not quite helpful and
takes up huge RAM, and if a board has less RAM then this causes the test
module build failures.

So, disable display of diff and just log a failure, small buffer tests
can be used to debug such basic issues and large buffer tests can act as
a smoke test for debugging other issues. This saves about 80K of RAM.

Fixes zephyrproject-rtos#72792.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Copy link
Contributor

@rlubos rlubos left a comment

Choose a reason for hiding this comment

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

Just hit the issue, thanks

rlubos pushed a commit to rlubos/sdk-zephyr that referenced this pull request May 21, 2024
Display diff of contents for large buffers is not quite helpful and
takes up huge RAM, and if a board has less RAM then this causes the test
module build failures.

So, disable display of diff and just log a failure, small buffer tests
can be used to debug such basic issues and large buffer tests can act as
a smoke test for debugging other issues. This saves about 80K of RAM.

Fixes #72792.

Upstream PR: zephyrproject-rtos/zephyr#72895

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos pushed a commit to rlubos/sdk-zephyr that referenced this pull request May 22, 2024
Display diff of contents for large buffers is not quite helpful and
takes up huge RAM, and if a board has less RAM then this causes the test
module build failures.

So, disable display of diff and just log a failure, small buffer tests
can be used to debug such basic issues and large buffer tests can act as
a smoke test for debugging other issues. This saves about 80K of RAM.

Fixes #72792.

Upstream PR: zephyrproject-rtos/zephyr#72895

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos pushed a commit to rlubos/sdk-zephyr that referenced this pull request May 22, 2024
Display diff of contents for large buffers is not quite helpful and
takes up huge RAM, and if a board has less RAM then this causes the test
module build failures.

So, disable display of diff and just log a failure, small buffer tests
can be used to debug such basic issues and large buffer tests can act as
a smoke test for debugging other issues. This saves about 80K of RAM.

Fixes #72792.

Upstream PR: zephyrproject-rtos/zephyr#72895

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos pushed a commit to rlubos/sdk-zephyr that referenced this pull request May 23, 2024
Display diff of contents for large buffers is not quite helpful and
takes up huge RAM, and if a board has less RAM then this causes the test
module build failures.

So, disable display of diff and just log a failure, small buffer tests
can be used to debug such basic issues and large buffer tests can act as
a smoke test for debugging other issues. This saves about 80K of RAM.

Fixes #72792.

Upstream PR: zephyrproject-rtos/zephyr#72895

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos pushed a commit to rlubos/sdk-zephyr that referenced this pull request May 23, 2024
Display diff of contents for large buffers is not quite helpful and
takes up huge RAM, and if a board has less RAM then this causes the test
module build failures.

So, disable display of diff and just log a failure, small buffer tests
can be used to debug such basic issues and large buffer tests can act as
a smoke test for debugging other issues. This saves about 80K of RAM.

Fixes #72792.

Upstream PR: zephyrproject-rtos/zephyr#72895

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos pushed a commit to rlubos/sdk-zephyr that referenced this pull request May 23, 2024
Display diff of contents for large buffers is not quite helpful and
takes up huge RAM, and if a board has less RAM then this causes the test
module build failures.

So, disable display of diff and just log a failure, small buffer tests
can be used to debug such basic issues and large buffer tests can act as
a smoke test for debugging other issues. This saves about 80K of RAM.

Fixes #72792.

Upstream PR: zephyrproject-rtos/zephyr#72895

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos pushed a commit to rlubos/sdk-zephyr that referenced this pull request May 23, 2024
Display diff of contents for large buffers is not quite helpful and
takes up huge RAM, and if a board has less RAM then this causes the test
module build failures.

So, disable display of diff and just log a failure, small buffer tests
can be used to debug such basic issues and large buffer tests can act as
a smoke test for debugging other issues. This saves about 80K of RAM.

Fixes #72792.

Upstream PR: zephyrproject-rtos/zephyr#72895

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos pushed a commit to rlubos/sdk-zephyr that referenced this pull request May 25, 2024
Display diff of contents for large buffers is not quite helpful and
takes up huge RAM, and if a board has less RAM then this causes the test
module build failures.

So, disable display of diff and just log a failure, small buffer tests
can be used to debug such basic issues and large buffer tests can act as
a smoke test for debugging other issues. This saves about 80K of RAM.

Fixes #72792.

Upstream PR: zephyrproject-rtos/zephyr#72895

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
rlubos pushed a commit to rlubos/sdk-zephyr that referenced this pull request May 27, 2024
Display diff of contents for large buffers is not quite helpful and
takes up huge RAM, and if a board has less RAM then this causes the test
module build failures.

So, disable display of diff and just log a failure, small buffer tests
can be used to debug such basic issues and large buffer tests can act as
a smoke test for debugging other issues. This saves about 80K of RAM.

Fixes #72792.

Upstream PR: zephyrproject-rtos/zephyr#72895

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
@henrikbrixandersen henrikbrixandersen merged commit ef533e2 into zephyrproject-rtos:main May 29, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: SPI SPI bus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

spi_loopback test fails on MCUs with SRAM blocks smaller than 128KB
6 participants