Hello,
I have a program running in linux userspace which initializes MCC (mcc_initialize). The M4 core is not running, i.e. no image was loaded.
Additionally I create two endpoints. I experience that the program crashes after this operations!
Is this because there is no application running on M4?
Or can this error have any other reasons?
Currently I do not have the appropriate M4 application ready and as a starting point I just want to initialize the MCC and its endpoints from linux side. Data transfer will not be done!
Thanks,
Johannes
已解决! 转到解答。
I found out that the problem is not related to MCC or its drivers, but to stdout. When sending a special combination of character the program hangs and ends up with a SIGHUP linux signal.
timesyssupport can you help on this case?
Hello Johannes,
Another option would be to not load the mcc module before starting your application. mcc_initialize will not return MCC_SUCCESS. You can use an if statement on mcc_initialize() to check for this - if MCC_SUCCESS is not returned, do not create any endpoints or perform other MCC related actions.
Thanks,
Timesys Support
I found out that the problem is not related to MCC or its drivers, but to stdout. When sending a special combination of character the program hangs and ends up with a SIGHUP linux signal.