You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a Mail object for one of my threads for inter-thread communications.
The message type struct basically contains two enums (result and command).
I have been testing the functionality in the online compiler where my main() function is very simple as to just show that the program runs without problems:
static Mail<message_t, 10> mailBox;
int main() {
int i = 0;
while (1) {
printf("asd %d\r\n", i++);
}
return 0;
}
However, when I compile the program (mbed online compiler), the program output to the serial port is:
mbed assertation failed: _id, file: /extras/mbed-os.lib/rtos/MemoryPool.h, line 58
Now, when I add some padding to lengthen the message struct like this:
Do you have any idea as to what causes this?
I have also tested this with the offline compiler using the GCC_ARM toolchain - same results, although the serial output is:
Memory Pool 0x0 error -10
The text was updated successfully, but these errors were encountered:
Description
Target
NUCLEO_F429ZI
I am using a Mail object for one of my threads for inter-thread communications.
The message type struct basically contains two enums (result and command).
I have been testing the functionality in the online compiler where my main() function is very simple as to just show that the program runs without problems:
However, when I compile the program (mbed online compiler), the program output to the serial port is:
Now, when I add some padding to lengthen the message struct like this:
The program runs correctly with output:
Do you have any idea as to what causes this?
I have also tested this with the offline compiler using the GCC_ARM toolchain - same results, although the serial output is:
The text was updated successfully, but these errors were encountered: