This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS1224: DSP FIR not working properly for envelope high order

Part Number: TMS570LS1224

Hi

Im trying to do an envelope to a signal. The envelope is a FIR filter with 256 order but when running it, it crashes... 

Why is that happening? is the order too high?

How could I solve it?

Thanks!

  • Can you provide a more descriptive explanation rather than it crashes? What are the symptoms of the issue?

    Do you get an abort? If so what type of abort? Can you trace the abort to a specific instruction?

    Does the MCU hang? If so what code is it hung on? Does it clear on a soft reset or does it take a power on reset?

    Does the algorithm simply return garbage answers but otherwise MCU execution continues?

    More information is needed for us to provide help.
  • It gets an abort
    dabort
    stmfd r13!, {r0 - r12, lr}; push registers and link register on to stack

    In this part.
    Could it be the order? that is too big?

    best regards
  • ok... it already worked... I just changed the order to 255 and worked
    So... Two options:
    1)The filter order MUST be an odd number so the FIR_STATE be even
    2)The counter inside is a char and that caused the problem
    I don't know which one it was but... well.. its working.
    It would be nice to know which one was. But... for what I have seen on the source codes from the DSP library, they didn't used chars for counters. So... for the record: USE ODD NUMBERS for the filter order.

    Thanks!