Skip to content

dsp_adaptive_nlms error when the input source_sample is a very low value #134

@QuinnWang

Description

@QuinnWang

In the app_adaptive.xc, change the first input parameter in dsp_adaptive_nlms from Q31(0.08) to Q31(0.0008), then will encounter the problem:
Normalized LMS 5
Unhandled exception: ARITHMETIC, data: 0x00000000

The problem should be the input value is too small to cause the dsp_math_divide to have a 0 divider.

This will happen when customer using the real world PCM samples (mute audio or very low amplitude audio samples)

Please advise if it is usage problem or lib code problem, thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions