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.

TMS570LS0714模拟EEPROM使用问题

Other Parts Discussed in Thread: TMS570LS0714, HALCOGEN

您好:

我在TMS570LS0714芯片中使用的TI官方库的模拟EEPROM,现出现了两个问题想请您解答下:

1、在一个控制器上出现了一个写EEPROM一直失败的现象,且只有写那个block会一直失败,写其他block是正常的。

2、在多次读写EEPROM的过程中,出现了EEPROM内的所有内容被清除的现象(除了正在写的block,其余block读出的值为全FF),目前出现了两次,且出现此问题后第一个问题就不存在了。

请问什么情况下会出现上述两种情况,我在读写EEPROM时改变了外部电路的电压会导致上述问题吗?或者是我的EEPROM配置可能有问题。

  • runli du 说:

    您好:

    我在TMS570LS0714芯片中使用的TI官方库的模拟EEPROM,现出现了两个问题想请您解答下:

    1、在一个控制器上出现了一个写EEPROM一直失败的现象,且只有写那个block会一直失败,写其他block是正常的。

    请问这些block是固定的吗?还是每次的block都不一样?

  • 您好:

    每次写失败的block是固定的,在出现此问题后没有更新过程序,配置是一直没有变化。

    有关第二个问题,我有如下猜想,请您帮忙确认下是否正确:

    在开发板中有BOOT和APP两种程序,BOOT可更新APP程序,若BOOT中的FEE配置与APP中的FEE配置不同,在程序经过BOOT->APP->BOOT的变化后,在BOOT下一直写EEPROM,当需要搬移数据的时候,会不会导致BOOT的一些数据。

    BOOT与APP配置不同点如下:

    BOOT配置如下:

    const Fee_VirtualSectorConfigType Fee_VirtualSectorConfiguration[TI_FEE_NUMBER_OF_VIRTUAL_SECTORS] =
    {

        /* Virtual Sector 1 */
        {
           /* Virtual sector number */      1U,
           /* Bank                  */      7U,     
           /* Start Sector          */      (Fapi_FlashSectorType)0U,
           /* End Sector            */      (Fapi_FlashSectorType)0U
        },
        /* Virtual Sector 2 */
        {
            /* Virtual sector number */     2U,
            /* Bank                  */     7U,
            /* Start Sector          */     (Fapi_FlashSectorType)1U,           
      /* End Sector            */     (Fapi_FlashSectorType)1U
        },
        /* Virtual Sector 3 */
       {
          /* Virtual sector number */      3U,
          /* Bank                  */      7U,
          /* Start Sector          */      (Fapi_FlashSectorType)2U,
          /* End Sector            */      (Fapi_FlashSectorType)2U
       },
       /* Virtual Sector 2 */
       {
           /* Virtual sector number */     4U,
           /* Bank                  */     7U,
           /* Start Sector          */     (Fapi_FlashSectorType)3U,
           /* End Sector            */     (Fapi_FlashSectorType)3U
       },
       /* Virtual Sector 1 */
          {
             /* Virtual sector number */      5U,
             /* Bank                  */      7U,
             /* Start Sector          */      (Fapi_FlashSectorType)4U,
             /* End Sector            */      (Fapi_FlashSectorType)4U
          },
          /* Virtual Sector 2 */
          {
              /* Virtual sector number */     6U,
              /* Bank                  */     7U,
              /* Start Sector          */     (Fapi_FlashSectorType)5U,
              /* End Sector            */     (Fapi_FlashSectorType)5U
          },
          /* Virtual Sector 1 */
             {
                /* Virtual sector number */      7U,
                /* Bank                  */      7U,
                /* Start Sector          */      (Fapi_FlashSectorType)6U,
                /* End Sector            */      (Fapi_FlashSectorType)6U
             },
             /* Virtual Sector 2 */
             {
                 /* Virtual sector number */     8U,
                 /* Bank                  */     7U,
                 /* Start Sector          */     (Fapi_FlashSectorType)7U,
                 /* End Sector            */     (Fapi_FlashSectorType)7U
             },
             /* Virtual Sector 1 */
            {
               /* Virtual sector number */      9U,
               /* Bank                  */      7U,
               /* Start Sector          */      (Fapi_FlashSectorType)8U,
               /* End Sector            */      (Fapi_FlashSectorType)8U
            },
            /* Virtual Sector 2 */
            {
                /* Virtual sector number */     10U,
                /* Bank                  */     7U,
                /* Start Sector          */     (Fapi_FlashSectorType)9U,
                /* End Sector            */     (Fapi_FlashSectorType)9U
            }
    };

    APP配置如下:

    const Fee_VirtualSectorConfigType Fee_VirtualSectorConfiguration[TI_FEE_NUMBER_OF_VIRTUAL_SECTORS] =
    {

        /* Virtual Sector 1 */
        {
           /* Virtual sector number */      1U,
           /* Bank                  */      7U,     
           /* Start Sector          */      (Fapi_FlashSectorType)0U,
           /* End Sector            */      (Fapi_FlashSectorType)7U
        },
        /* Virtual Sector 2 */
        {
            /* Virtual sector number */     2U,
            /* Bank                  */     7U,
            /* Start Sector          */     (Fapi_FlashSectorType)8U,
      /* End Sector            */     (Fapi_FlashSectorType)15U
        }
    };

    以及在配置不同时,会不会出现写EEPROM时异常复位的情况。

    非常感谢您的支持。

  • 您在HALCoGen中是如何配置的呢?

    您可以先看一下

    processors.wiki.ti.com/.../TI_FEE

    另外E2E上也有一些相关的帖子

    e2e.ti.com/.../420146