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
Solved! Go to Solution.
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,
Can you try running the following on the command-line before running your application:
# modprobe mcc
Thanks, and let me know how it goes.
Timesys Support
Hi,
I loaded the kernel module everytime before starting the program, but this brings no improvement. Any other ideas?
(I'm using MCC version 1.0.3)
BR,
Johannes
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.