Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Revert "Adjusting Stack size Allocation (IAR, LPC176x)" #5037
This reverts commit fce2ca2. With the current heap for IAR (no dynamic yet), 2 tcp/udp tests fail with not enough heap memory.
parallel tests fail, they allocate on heap Echo class
Should Arch PRO decrease any config there in those tests ,as not having enough heap ? With previous heap, there was not enough memory left for cellullar application, with the current our 2 tests fail due to not enough heap. I do not see the requirements for parallel testing - how much heap these test require. I can spot there 2x buffers 64bytes plus other objects, multiplied by 3, makes t he test to require lets assume something below 1k of heap... the target has at the moment 7k.
We may be able to decrease the thread stack size for the threads.
Other than that, I'm not sure, we don't have a way for tests to require memory sizes. At best we can use the increasingly popular "MBED_EXTENDED_TESTS" define to skip the parallel tests by default, although this is the only test that is checking that the network stack is thread-safe.
Sep 7, 2017
OK, I'll talk to @hasnainvirk once he is back, as this revert might affect cellular example (updating to IAR 8.x will fix it so soon enough !)