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.

CCS/TMS320C6678: Debug Windows status when loading OpenMP programs and Using platform library ...

Part Number: TMS320C6678

Tool/software: Code Composer Studio

Hi.

I develope a TMS320C6678 in OpenMP project type.

- CCS 6.11

- MCSDK 2.1.2.6

- OpenMP Runtime 2.x library 2.1.16.3

     ; RTSC tab window ... platform selected "ti.runtime.openmp.platforms.evm6678"

- IPC 1.24.3..32

- PDK 6678 1.1.2.6

- SYS/BIOS 6.33.6.50

My source code is ...

int main (int argc, char *argv[])
{
 uint32_t CoreNUM = 0;

 CoreNUM = platform_get_coreid();

 TestOMP();   // ###>>  OpenMP example code

 if(CoreNUM==0){
  platform_uart_init();
  platform_uart_set_baudrate(115200);
  platform_write_configure(PLATFORM_WRITE_UART);
  platform_write(">> Test Console start\n");
 }

 BIOS_start();    /* does not return */

 return 0;
}

>> debug window status at Load program (Core 0 is suspend status, Other core Running)

  [Question1] Is corrent load program status at OpenMP project type???

OpenMP example code execution status is good. But serial port execute status is wrong.  (Only One character output and stop)

> Include header file is ...

#include <ti/platform/platform.h>
#include <ti/platform/resource_mgr.h>

> Pre-define

SOC_C6678

DEVICE_C6678

> include lib file is

ti.platform.evm6678l.ae66

ti.csl.ae66

> Include my *.cfg file contents

var ti_csl_Settings = xdc.useModule('ti.csl.Settings');
ti_csl_Settings.useCSLIntcLib = true;

var PlatformLib  = xdc.loadPackage('ti.platform.evmc6678l');

Program.sectMap["platform_lib"]    = "DDR3";

 [Question2] How to use platform_write() function??? (platform library)

                   There are the following error phenomena: Please give me some advice.

>>> error status ... suspeded screen

    I also saw red error messages and added a path to the platform.c file.(path info ... C:\ti\pdk_C6678_1_1_2_6\packages\ti\platform\evmc6678l\platform_lib\src)

 

platform_write_configure() function ... PLATFORM_WRITE_PRINTF option is good.


PLATFORM_WRITE_UART option is wrong!@~

//****************************************************************************************************************

Is this an error in platform_lib?
There seems to be no problem with the source of the platform.c file.
The PLATFORM_WRITE_PRINTF option confirms that it works well, but the above error persists with the PLATFORM_WRITE_UART option.

 


After testing platform_lib, there is an error:
The write_type was confirmed to be PLATFORM_WRITE_UART but did not enter the block.

 

if ((write_type == PLATFORM_WRITE_UART) || (write_type == PLATFORM_WRITE_ALL)) {

....

printf( "\n -UART");//################################

... 

}

It's strange!~~

Please advice on what to do.    For debugging.

... 

Test result is my mistake that not called platform_init() ... @@