Tool/software: Code Composer Studio
The blow code does not print the 0 character, but hangs:
#include <string.h>
#include <xdc/std.h>
#include <xdc/runtime/System.h>
#include <ti/sysbios/BIOS.h>
#include <ti/drivers/Board.h>
#include <ti/sysbios/knl/Task.h>
#include <xdc/runtime/Error.h>
Task_Handle taskHandle;
void taskFxn(UArg a, UArg b){
System_printf("taskFxn started.\n");
System_printf("-%c-.\n", 0); // <<<<<<<<<<<<<<<<< This line does not work.
System_printf("taskFxn exited.\n");
System_flush();
}
int main()
{
/* Call driver init functions */
Board_init();
System_printf("hello world\n");
Task_Params taskParams;
Error_Block eb;
/* Configure pack task. */
Task_Params_init(&taskParams);
Error_init(&eb);
taskParams.stackSize = 512;
taskParams.priority = 3;
taskHandle = Task_create(taskFxn, &taskParams, &eb);
BIOS_start();
return(0);
}
