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.

DEC6437_PSP_UART1

hi

   evmdm6437 use uart0 as rs232;

   dec6437 use uart1 as rs232;

   so, on dec6437 board when i used evmdm6437 uart sample application of psp_1.10.03, i must modify some parameter:

   1、In dm6437_uart0.tci file, i modify

         bios.UDEV.create("UART1");
         bios.UDEV.instance("UART1").fxnTableType = "IOM_Fxns";
         bios.UDEV.instance("UART1").initFxn = prog.extern("uart0_dev_init");
         bios.UDEV.instance("UART1").params = prog.extern("uart0DevParams");
         bios.UDEV.instance("UART1").fxnTable = prog.extern("UARTMD_FXNS");
    2、in dm6437_evm_uart_st_sample.tcf file, on line 121 i add sentence

         bios.UDEV.instance("UART1").deviceId = 1; 

     3、in psp_bios_uart_st_sample_main.c file i modify

           hUart_OUT = GIO_create("/UART1",IOM_OUTPUT,NULL,&chanParams,&gioAttrs);
           hUart_IN  = GIO_create("/UART1",IOM_INPUT,&echoTskStatus,&chanParams,&gioAttrs);

   after setup, build dm6437_evm_uart_st_sample.prj OK; Load out file in dec6437 board,

   Followed by implementation of the CPU RESET, RESTART, GO MAIN command, but the soft don't go to main funciton;

  • Forwarding to BIOS PSP team...

  • Hi,

     

    I hope you have made changes to the following also

     

    ·         PINMUX changes for the UART 1 instance.

    ·         uart0_dev_init function  - changes to switch ON the UART 1 in PSC.(LPSC number change to UART 1)

    ·         uart0DevParams – changes to the required device parameters (if required)

     

    Thanks & Regards,

    Imtiaz SMA

  •  

    Using psp_1.10.03 driver, I have the same UART1 problem that my program doesn't go to main function.

    (1) I changed .tci file as above.

    (2) I changed GIO_create() and PINMUX.

        /* Power up settings for UART1

         * TIMER1 = 0: VDD3P3VPWDN - bit 9

         */

        sysModuleRegs->VDD3P3V_PWDN &=  (~(0x200u));

     

        //  Pinmux setting for UART1

        //  TIM1BK = 10 :   PINMUX1 - bit 21:20

        //

        sysModuleRegs->PINMUX1  &=   (0xFFEFFFFFu);

        sysModuleRegs->PINMUX1  |=   (0x00200000u);

     

    /* Initialize UART

        * Currently is been used to display messages

        */

        hUart_OUT = GIO_create("/UART1",IOM_OUTPUT,NULL,&chanParams,&gioAttrs);

        hUart_IN  = GIO_create("/UART1",IOM_INPUT,&echoTskStatus,&chanParams,&gioAttrs);

    (3) I added EVMDM6437_init() in uart0_dev_init funtion to power on UART1

    But, it still doesn't go main function. How can I solve this problem?