Part Number:RM46L852
Tool/software: Code Composer Studio
Hello All!
I was trying to use the RAND() function in stdlib.h and rand.c in my code but the resource lock halts everything and it stalls there.
Properly moves into rand.c and in the check: #if !defined(__TI_USE_TLS) decides it is not defined and attempts to execute:
__TI_resource_lock(__TI_LOCK_RAND);
Stepping through the debugger it halts on this line.
_mutex.h contains the details on this resource lock call.
I have no idea why it is halting here. I've never called RAND on a micro-controller before, so I don't know if such a call on this hardware is even valid.
I also don't know if the fact that I'm doing it on a Hercules with two "locksetup" cores has implications of its own.
//////////////////////////////////////////////////////
Include options I have:
"${CG_TOOL_ROOT}/include"
"${CG_TOOL_ROOT}/lib"
"${workspace_loc:/${ProjName}/include}"
////////////////////////////////////////////////////
Thank you for whatever help you can give.