Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Dear All,
First the tools I use:
Processor: 66AK2G12
CCS 9.0.1.00004
CGT 8.3.4
XDC 3.55.0.11
SYS/BIOS 6.75.2.00
PDK 1.014
NDK 3.60.0.13
I have a problems with setting up NDK.
If i have NDK enabled and use any kind of print and additionally enable the compiler option --multithread the program gets stuck before main.
I tried to debug and this is what I found out:
- during initialisation of std::cout some stream-buffer gets allocated
- this is directed to a pthreads lock
- during accessing the semaphore of the lock the BIOS_getThreadType returns not TASK
- this leads to an assert
I have created a test project that just prints on the CCS console. You can select between 3 print modes:
- XDC System_printf
- C printf
- C++ std::cout
This is working fine as long as the --multithread option is not set. If i enable it i no longer have dumps or even are not able to reach main.
I need help to figure out what is wrong. I already tried to set BIOS.rtsGateType to GateSwi that did not help completely.
Can someone try to reproduce and have a look at my CFG file, please?demo.zip