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.

OMP critical section causes hang in Simulator when stacks placed in cached DDR3

When running OMP executables in the simulator with the following configuration:


var stackRegionId = SharedRegion.numEntries
SharedRegion.numEntries = stackRegionId + 1;
SharedRegion.setEntryMeta( stackRegionId,
                            {   base: 0x89000000,
                                len:  0x0100000,
                                ownerProcId: 0,
                                cacheEnable: true,
                                createHeap: true,
                                isValid: true,
                                name: "stack-ddr3-cached",
                            }

);

OpenMP.stackRegionId = stackRegionId;
OpenMP.stackSize = 32768;


and the "ti.omp.examples.platforms.evm6678_ddr" platform definition,
reaching omp critical causes the simulator to hang in "invAllL2".

I've prepared a simple isolated testcase project, which can be found here: 6644.omp_critical.zip

On the real evm6678 hw the executable works as expected.

Thanks, Clemens