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.

help:about memory hardware initization!!!!

Other Parts Discussed in Thread: TMS570LS20216, HALCOGEN

    About TMS570LS20216,I can not hardware init Mibspi module's SRAM!!  HALCOGEN config MINITGCR 0x657F(do not include Misbspi module's SRAM).If i config MINITGCR 0x757F(Mibspi hardware memory init),inization can not complete,why???

  • Shawn,

    There are two ways to initialize MIBSPI RAM.

    (1) MiBSPI RAM is initialized every time a MIBSPI reset is performed. You can use the following C-code:

       MIBSPI_Ptr->SPIGR0_UN.SPIGR0_ST.RESET_B1 = 1;

       while(MIBSPI_Ptr->SPIFLG_UN.SPIFLG_ST.BUF_INIT_ACTIVE_B1 == 1);

    (2) Via the system module.

        SYS_Ptr->MINITGCR_UN.MINITGCR_UL = 0xA;    
        SYS_Ptr->MSINENA_UL = (0x01<<MIBSPI_RAM_INIT);
        while (SYS_Ptr->MINISTAT_UL == 0);    
        SYS_Ptr->MINITGCR_UN.MINITGCR_UL = 0x5;

    MIBSPI_RAM_INIT equals 7 for MIBSPI1 module. After initialization, all RAM content should be zero. I assume that you can find the addresses and definitions of the registers listed above from TRM. I do not know why HALCOGEN does not work. I will also forward your question to HALCOGEN developers.

    Thanks and regards,

    Zhaohong

  • Hello Shawn:

    Did the information provided by Zhaohoang answer your questions? If so, please mark the suggested answer as verified so that we may close the thread and others with similar questions can have confidence in the answer.