Closed pan- closed 8 years ago
It seems this issue is affecting the tests on multiple platforms during OOB. We should remove the limitation on using a small build when selecting gcc
@sg- please comment on this
why would we remove this restriction? They are single threaded because of a memory limitation or are misconfigured.
why would we remove this restriction? They are single threaded because of a memory limitation or are misconfigured.
@MarceloSalazar meant that this example should provide a better indication for single thread targets (either error that the example is not for single thread targets, and how to enable it) ? Or just provide a documentation update to document this behavior. A crash does not say much for a user
@pan- Anyway, as we provide single thread option, how does the app crash? I would imagine it would not create any thread, neither start it, and app would just continue executing?
The current blinky requires 2 threads. If we see this a problem for constrained devices, may need to have a single-thread-blinky app where the LED state is swapped in main.
may need to have a single-thread-blinky app where the LED state is swapped in main.
@bogdanm or me will send a patch to resolve this
This should be fixed now since blinky
doesn't create any additional threads, can you please check?
Checked on NRF51, it works. Thanks.
If the target
default_build
option is set tosmall
then if the program is compiled with the instructions provided in the readme and run, it will crash at the instantiation of the thread.A
small
build will force the use of nanolib and restrict the number of threads to one, the main thread. In that configuration, instantiating a thread will crash the application.One easy fix would be to update the compilation instruction to:
mbed compile -m <target_name> -t GCC_ARM -o big-build
Or provide and errata indicating the list of targets concerned by this issue and that
-o big-build
should be added to the command line.The list of the targets using nano lib is:
That is a total of 119 targets out of the 184 available in
targets.json
.