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.

Compiler/TMDXRM46HDK: I am seeing infinite looping in vListInsert for FreeRTOS 8.2 code generated by HalCoGen 4.6.1

Part Number: TMDXRM46HDK

Tool/software: TI C/C++ Compiler

A pair of inserts to list with zero items enters a state of infinite looping in vListInsert after two items are inserted (third insert loops).

I know the list size should be 10.

I have inverted the priorities per comments in the generated code (no change).

I have enabled stack checking and added a hook for overflow per comments in the generated code (which does not occur)

Is there a specific compiler version or optimization setting that is required?

Do I need to test the inserted items to avoid duplicates?