-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
mbed-os 5 Thread::start
creates osErrorResource
on LPC1549
- Type: BUG
I cannot even get the sample program to execute correctly on the LPCXpresso1549 board. Is there something easy I am missing, like, "oh yea, this is totally not suppose to work for LPC1549!"? Platform specific help is hard to come by for mbed.
Bug
Target
LPC1549
Toolchain:
GCC_ARM (Also online compiler)
Toolchain version:
(latest as of 10/1/16)
mbed-cli version:
0.9.10
Expected behavior
Receive osOK
back from Thread::start
Actual behavior
Thread::start
is only returning osErrorResource
(0x81). I have reduced the stack size to just about nothing, and it that doesn't help.
Steps to reproduce
Run this sample program. I don't have any other platforms to run on:
#include "mbed.h"
struct Foo {
void work() { printf("Foo::member_work()"); }
};
void free_work()
{
printf("free_work()");
}
int main()
{
Thread member_function_thread(osPriorityNormal, 256);
Thread free_function_thread(osPriorityNormal, 256);
Foo foo;
osStatus err = member_function_thread.start(callback(&foo, &Foo::work));
if (err) {
printf(" ERROR: 0x%x\r\n", err);
}
err = free_function_thread.start(free_work);
if (err) {
printf(" ERROR: 0x%x\r\n", err);
}
member_function_thread.join();
free_function_thread.join();
}
Metadata
Metadata
Assignees
Labels
No labels