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.

UART BIOS not working in Release build

Other Parts Discussed in Thread: CCSTUDIO, CODECOMPOSER

Hi,

I am testing our board using DM6437, and got a strange problem on UART example that comes with BIOS_5_33_03: dvsdk_1_00_00_19\PSP_0_05_03\pspdrivers\drivers\uart\sample.

When build in Debug setting, everything works fine. Following is the response through UART0 port:

UART Demo Starts
Enter 32 characters for read write test  :
I am good.Thanks. how about you?
UART Demo End  
               

However, when build in Release setting, only "UART Demo Starts" was received at PC side, not even the following "\r\n".

Note: If I changed the PSP_OPMODE_INTERRUPT to PSP_OPMODE_POLLED, both Debug and Release builds works well.

Can anyone give me hint what may be wrong in PSP_OPMODE_INTERRUPT mode?

Thanks.

Alan

 

  • Hi Alan,

     

    Since this is a pretty old PSP, i request you to give me some time in downloading it and to go through the package. Will try to debug and let you know the results soon. 

    Also, can you please ensure that you have installed all the appropriate tools mentioned in the Userguide?. Have changed the .pjt files?(release build profile settings) or using the .pjt file as is provided by the PSP package?. What about in "PSP_OPMODE_DMAINTERRUPT" mode?.

     

    Thanks & regards,

    Raghavendra

  • Thanks for support.

    I installed all the tools correctly. I could compile other samples and run well.

    I did not change the pjt file, and PSP_OPMODE_DMAINTERRUPT has no luck either.

    I am trying to update the PSP to newer version. So I downloaded PSP 1.10.03, which again requires EDMA3_LLD_01_10_00_01 and xdctools_3_15_00_50,

    But I got a few troubles:

    1. When I compile with currently installed BIOS_5_31_02, following error message showed up:

    configuring dm6437_evm_uart_st_sample.x64P from package/cfg/dm6437_evm_uart_st_sample_x64P.cfg ...
    js: "./package/cfg/dm6437_evm_uart_st_sample_x64P.cfg", line 715: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ti.bios' along the path: 'C:/dvsdk_1_00_00_19/PSP_1_10_03/pspdrivers_1_10_03/packages/ti/sdo/pspdrivers/system/dm6437/bios/evmDM6437/uart/build;C:/dvsdk_1_00_00_19/PSP_1_10_03/pspdrivers_1_10_03/packages/ti/sdo/pspdrivers/system/dm6437/bios/evmDM6437/uart;C:/CCStudio_v3.3/bios_5_33_03/xdctools_3_15_00_50/packages;..;'. Ensure that the package path is set correctly.
    xdctools_3_15_00_50\gmake.exe: *** [package/cfg/dm6437_evm_uart_st_sample_x64P.c] Error 1
    js: "C:/CCStudio_v3.3/bios_5_33_03/xdctools_3_15_00_50/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro.ccs: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

    Can you tell me what go wrong? What changes I should make?

    2. So I downloaded the BIOS_5_33 from TI website. When I open the sample project in CodeComposer, it complained with following message:

    %BIOS_INSTALL_DIR% points to different BIOS installation C:/CCStudio_v3.3/bios_5_33 than the current BIOS selected in the Component Management for TMS320C64xx. If you don't correct this setting, your program will FAIL to BUILD CORRECTLY.

    Can you tell me where I can change the it?

     

    Thanks.

    Alan

  • Hi Alan,

     

    Firstly, you need to refer the psp_1_10_03 release  PSP_User_Guide.pdf placed in: pspdrivers_1_10_03\docs\dm6437 and install all the tools recommended.

    1. Please refer section 2.1 Installation and Usage Procedure which informs about setting up the environment variables. Go through it carefully and set the environment variables appropriately, without which you are prone to get such errors. 

    Alan said:
    %BIOS_INSTALL_DIR% points to different BIOS installation C:/CCStudio_v3.3/bios_5_33 than the current BIOS selected in the Component Management for TMS320C64xx. If you don't correct this setting, your program will FAIL to BUILD CORRECTLY.

    2. Even here, it is referring to the BIOS specified in the environment variable "BIOS_INSTALL_DIR" which you need to change appropriately. 

    All the error messages are due to incorrect build set up. Referring to the user guide and following all the procedures would certainly solve the build issues.

    Hope this helps..

     

    Thanks & regards,

    Raghavendra 

  • Thanks for pointing one out.

    Yes, I did forget to set XDCPATH environment. Now, I go through the steps in the PSP_User_Guide.pdf, and is able to compile it correctly.

    However I still got the 2nd problem:

    When I open the project, it prompt out a window, saying: %BIOS_INSTALL_DIR% points to different BIOS installation C:/CCStudio_v3.3/bios_5_33 than the current BIOS selected in the Component Management for TMS320C64xx. If you don't correct this setting, your program will FAIL to BUILD CORRECTLY.

    Can you tell me why and where is the Component Management for TMS320C64xx that I can change the setting? (FYI, I was using DVSDK dvsdk_1_00_00_19 from the disk comes with EVM DM6437.)

    Alan

     


  • Never mind.

    I found the place of Component Management in CCS: It is Start->Programs->Texas Instruments->Component Management.

    Now, I am able to compile it correctly without any error message.

    Most of all, I rebuild the UART sample program in both Debug and Release settings, and so far both runs well in my board.

    Thanks.

    Alan