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.

c6748 running slower

Dear:

     Now I faced a strange problem. Simulation speed of running the program run much faster than offline. I use AISgen for D800k002 tools create. bin file, and then programmed to flash in spiflash_writer_dsp.pjt program. However, the power automatically load programs, running speed significantly slower . I do not know where the problem?

 In AISgen for D800k002 ,Configuration is as follows:
 In General,I choose SPI1 Flash, Crystal 24MHz,Configure PLL0,Configure PLL1,Configure DDR,Configure PSC.
 In Peripheral, Module Clock 150 MHz,SPI Clock 1MHz.
 In PLL0,parameters are 1,25,2,1,3,6
 In PLL1,parameters are 11,2,1,2,3
 In DDR,  Memory Type is mDDR,DRPYC1R is 0x000000C4,SDCR is 0x0A034622,SDCR2 is 0x00000000,SDTIMR1 is 0x184929C8,SDTIMR2 is 0x380FC700,SDRCR is 0x00000406.
  In PSC,PSC0 choose 0;1;2,PSC1 choose 3;5;10

Compile the program does not gel content!

   please help me!

    Thanks!

  • Can you connect to CCS after boot and print out the PLL0 registers, 0x01c11000 through 0x01c111F4? This will tell us if the PLL is configured at the speed you wanted.

    Jeff

  • Hi,Jeff:

            I follow your way,found the PLL0 registers is correct.

         Follow  the program.In the simulation state, GPIO output cycle is 1.4us; in the offline state, GPIO output cycle is 5us.

     #include "types.h"
    #include "evmc6748.h"
    #include "evmc6748_gpio.h"
    #include "c6x.h"
    #include "evmc6748_pll.h"
    main()
    {

    uint32_t i;
     EVMC6748_init();
     EVMC6748_pinmuxConfig(17, 0xf0, 0x80);
     GPIO_setDir(7, 8, 0);
     
     while(1)
     {
      GPIO_setOutput( 7,  8, 0);
      i=0;i=1;i=2;i=3;i=4;i=5;
      i=6;i=7;i=8;i=9;i=10;i=11;
      GPIO_setOutput( 7,  8, 1);

    }

    }

  • Check to make sure the cache is enabled. That could be a reason why the code is running slower than the simulation.

    Jef

  • Hi,Jef

    How to enable the cache?

    Thanks!

  • Can you define what you mean by "simulation state?" Do you mean you are executing your code using the simulator in CCS with no device attached? Or do you mean you are running in emulation mode with the device connected via JTAG running in CCS on actual hardware?

    Jeff