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

[K32W] Save PDM to external flash on the DK6 board #7307

Merged
merged 4 commits into from
Jun 7, 2021

Conversation

doru91
Copy link
Contributor

@doru91 doru91 commented Jun 2, 2021

Problem
What is being fixed?

Decrease the usage of the internal flash space (640K).

Change overview
Move Persistent Data Manager (PDM) from the internal flash to the external flash available on the DK6 development board.
Basically, we saved 32.5K of internal flash.

Testing
Created a large application (almost 640K) and run it ok. Before, it was impossible to run it because only PDM required 32.5K of the internal flash.

Copy link
Contributor

@woody-apple woody-apple left a comment

Choose a reason for hiding this comment

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

Can you please fill out the PR template? Thanks!

@doru91 doru91 requested a review from woody-apple June 3, 2021 09:14
@doru91
Copy link
Contributor Author

doru91 commented Jun 3, 2021

Can you please fill out the PR template? Thanks!

Done.

@doru91 doru91 force-pushed the feature/PDM_move branch from b367e23 to 68a46d4 Compare June 3, 2021 11:21
@@ -328,5 +320,6 @@ SECTIONS
PROVIDE(Chip_LOWPOWER_ChipSoftwareReset = 0x03003fa1);

__StackLimit = _vStackTop - STACK_SIZE;
ASSERT(__StackLimit >= _end_boot_resume_stack, "Possible stack corruption with data/bss/boot_stack")
/* ASSERT(__StackLimit >= _end_boot_resume_stack, "Possible stack corruption with data/bss/boot_stack") */
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: remove commented code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, @LuDuda . I refactored this code a little.

@doru91 doru91 force-pushed the feature/PDM_move branch 2 times, most recently from d1dcb71 to b91362d Compare June 4, 2021 13:57
doru91 and others added 4 commits June 6, 2021 23:23
@doru91 doru91 force-pushed the feature/PDM_move branch from b91362d to 1c5a39c Compare June 7, 2021 06:24
@woody-apple woody-apple merged commit 86a0a8b into project-chip:master Jun 7, 2021
Damian-Nordic pushed a commit to Damian-Nordic/connectedhomeip that referenced this pull request Jun 9, 2021
* [K32W] Save PDM to external flash on the DK6 board

This will free up 32.5K of internal flash space.

Signed-off-by: Doru Gucea <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Restyled by gn

Signed-off-by: Doru Gucea <[email protected]>

Co-authored-by: Restyled.io <[email protected]>
nikita-s-wrk pushed a commit to nikita-s-wrk/connectedhomeip that referenced this pull request Sep 23, 2021
* [K32W] Save PDM to external flash on the DK6 board

This will free up 32.5K of internal flash space.

Signed-off-by: Doru Gucea <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Restyled by gn

Signed-off-by: Doru Gucea <[email protected]>

Co-authored-by: Restyled.io <[email protected]>
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.

7 participants