{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/8438","repository_url":"https://api.github.com/repos/ARMmbed/mbed-os","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/8438/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/8438/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/8438/events","html_url":"https://github.com/ARMmbed/mbed-os/issues/8438","id":370446670,"node_id":"MDU6SXNzdWUzNzA0NDY2NzA=","number":8438,"title":"CMSIS-RTOS Error: C/C++ library libspace not available","user":{"login":"bqam-ublox","id":21259672,"node_id":"MDQ6VXNlcjIxMjU5Njcy","avatar_url":"https://avatars0.githubusercontent.com/u/21259672?v=4","gravatar_id":"","url":"https://api.github.com/users/bqam-ublox","html_url":"https://github.com/bqam-ublox","followers_url":"https://api.github.com/users/bqam-ublox/followers","following_url":"https://api.github.com/users/bqam-ublox/following{/other_user}","gists_url":"https://api.github.com/users/bqam-ublox/gists{/gist_id}","starred_url":"https://api.github.com/users/bqam-ublox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bqam-ublox/subscriptions","organizations_url":"https://api.github.com/users/bqam-ublox/orgs","repos_url":"https://api.github.com/users/bqam-ublox/repos","events_url":"https://api.github.com/users/bqam-ublox/events{/privacy}","received_events_url":"https://api.github.com/users/bqam-ublox/received_events","type":"User","site_admin":false},"labels":[{"id":28847983,"node_id":"MDU6TGFiZWwyODg0Nzk4Mw==","url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/type:%20question","name":"type: question","color":"cccccc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-16T05:37:06Z","updated_at":"2018-11-22T10:01:04Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Description\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nI faced the following issue: **Standard C/C++ library libspace not available**. To resolve this, I changed value of **OS_THREAD_LIBSPACE_NUM** from 4 to 6. This probably increases the number of threads that access the C/C++ library and hence resolves the issue.\n\nHowever, I could not find a way to define the **OS_THREAD_LIBSPACE_NUM** through mbed_app.json or any other configuration file since [OS_THREAD_LIBSPACE_NUM](https://github.com/ARMmbed/mbed-os/blob/master/rtos/TARGET_CORTEX/rtx5/RTX/Config/RTX_Config.h#L537) is defined inside an if condition and its scope is also limited within RTX_Config.h. \n\nIs there any way to make it work without making changes in mbed source/rtos file? \n\n### Issue request type\n\n[x] Question \n[ ] Enhancement \n[ ] Bug \n"},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments/440976770","html_url":"https://github.com/ARMmbed/mbed-os/issues/8438#issuecomment-440976770","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/8438","id":440976770,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDk3Njc3MA==","user":{"login":"0xc0170","id":2963726,"node_id":"MDQ6VXNlcjI5NjM3MjY=","avatar_url":"https://avatars0.githubusercontent.com/u/2963726?v=4","gravatar_id":"","url":"https://api.github.com/users/0xc0170","html_url":"https://github.com/0xc0170","followers_url":"https://api.github.com/users/0xc0170/followers","following_url":"https://api.github.com/users/0xc0170/following{/other_user}","gists_url":"https://api.github.com/users/0xc0170/gists{/gist_id}","starred_url":"https://api.github.com/users/0xc0170/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xc0170/subscriptions","organizations_url":"https://api.github.com/users/0xc0170/orgs","repos_url":"https://api.github.com/users/0xc0170/repos","events_url":"https://api.github.com/users/0xc0170/events{/privacy}","received_events_url":"https://api.github.com/users/0xc0170/received_events","type":"User","site_admin":false},"created_at":"2018-11-22T10:01:04Z","updated_at":"2018-11-22T10:01:04Z","author_association":"MEMBER","body":"Quick one would be to define a macro via config `OS_THREAD_OBJ_MEM` , this should overwrite the default one.\r\n\r\nYou can create a new config value and set macro name to `OS_THREAD_OBJ_MEM` and assign a value you need."}}
{"actor":{"display_login":"0xc0170"}}