-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Conversation
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.
Can you please fill out the PR template? Thanks!
Done. |
@@ -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") */ |
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.
nit: remove commented code?
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.
thanks, @LuDuda . I refactored this code a little.
d1dcb71
to
b91362d
Compare
This will free up 32.5K of internal flash space. Signed-off-by: Doru Gucea <[email protected]>
Signed-off-by: Doru Gucea <[email protected]>
* [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]>
* [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]>
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.