static tU08 getCheckSum(tU08 const array[])
{
    tU16  index;
    tU16 sum = 0U;
    tU08 checksum;
    for(index = 0; index < 511U; index++)
    {
        sum = sum + array[index];
    }
    checksum = (tU08)(sum & 0xffU);
    return checksum;
}

When executing the test of a function that takes a variable array as an argument as above, a signal error may occur.
In this case, you need to check whether you are accessing the array received as an argument in the function by index.
When accessing an index larger than the array length specified in the Test Info, you must adjust the index value in [Test Info] > [Test Structure]> [Test Info Edit] of variable array.

If you rerun the test after adjusting the index value, you can see that the signal error has disappeared.

Need more help with this?
Don’t hesitate to contact us here.

Thanks for your feedback.