Post Go back to editing

Fatal error when using exp function

Category: Software
Product Number: ADSP-21565
Software Version: CrossCore 2.11.0

Hello! I am getting a really strange fatal error so I was hoping someone could shed some light on the issue please.

I have a quite large project that works just fine, but when I try to use exp() function it just crashes most of the time! And I cannot tell where and why. This is the error that I get:

A non-recoverable error or exception has occurred.
Description: An illegal instruction has been detected.
General Type: RunTimeError
Specific Type: IllOpCodeDetected
Error PC: 0x000000a8

I am really having a hard time with this. I don't know how to interpret it, and how to figure out why it happens. For test purposes I use only exp(-1), meaning there is no issue with the provided argument and I still get an error SOMETIMES. It is not consistent. Sometimes it's OK, but most of the times the program just fails.

Another really confusing thing is that I get the same error even if I use exp() in a function that I never execute! Meaning the program fails, but it never really called exp(). Once I remove exp() (that wasn't even called), the program runs normally again.

Does anyone have any idea how to figure out what the problem is? This is really furstratating.

Thank you so much!

  • Hi,

    We are unable to simulate your issue by adding exp() in our project.

    We would recommend you to try increasing the stack size by using "customize the system heap" option which is available in the system.svc of the project. Now, build and run the project and see whether the same issue occurs.

    Also, try with different/latest version of CCES if possible.

    If still, it would be helpful for us if you could share us the project which replicates the issue here (even if the minimized project is sufficient). This will help us to assist you further.

    Regards,
    Nishanthi.V