-
Notifications
You must be signed in to change notification settings - Fork 3k
Change stack sizes of threads used in tests. GR_LYCHEE failing CI #11417
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,18 +26,14 @@ | |
#else | ||
|
||
#define THREAD_STACK_SIZE 512 | ||
#if defined(__CORTEX_A9) | ||
#if defined(__CORTEX_A9) || defined(__CORTEX_M23) || defined(__CORTEX_M33) || defined(TARGET_ARM_FM) || defined(TARGET_CY8CKIT_062_WIFI_BT_PSA) | ||
#define PARALLEL_THREAD_STACK_SIZE 512 | ||
#elif defined(__CORTEX_M23) || defined(__CORTEX_M33) | ||
#define PARALLEL_THREAD_STACK_SIZE 512 | ||
#elif defined(TARGET_ARM_FM) | ||
#define PARALLEL_THREAD_STACK_SIZE 512 | ||
#elif defined(TARGET_CY8CKIT_062_WIFI_BT_PSA) | ||
#define PARALLEL_THREAD_STACK_SIZE 512 | ||
#define CHILD_THREAD_STACK_SIZE 512 | ||
#else | ||
#define PARALLEL_THREAD_STACK_SIZE 384 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do we get There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could, but i tried to remove too many #if statements as it was working on STM32F070RB and the size of the stack was reduced to make it pass on this target. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Such targets should be optimized in the way as it was done here: |
||
#endif | ||
#define CHILD_THREAD_STACK_SIZE 384 | ||
#endif | ||
|
||
|
||
using namespace utest::v1; | ||
|
||
|
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 don't see the link between core and memory size....?
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.
Targets with these cores have their RAM enough size.
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 add a comment above stating this assumption.
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.
Done