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.

[参考译文] TMS320F280049:CAN 引导和闪存引导

Guru**** 2652535 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1586876/tms320f280049-can-boot-and-flash-boot

器件型号: TMS320F280049

尊敬的专家:

我们希望从闪存引导、但很怀疑 GPIO32 上存在问题、该问题可能导致 CAN 引导、但我们无法验证该子系统。 确定我们是从闪存引导还是从 CAN 引导的最有效、最快速的方法是什么?

Joyce

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Joyce、

    下面是一些可能的方法:

    1. 通过在后台循环中切换 GPIO 来刷写一个简单应用程序。 查看复位时是否观察到切换(如果是,则器件引导至闪存)。
    2. 在位于 CCS (ccs2031\ccs\ccs_base\emulation\gel\f280049.gel) 中的 F280049.gel 中、注释掉 OnTargetConnect () 中的以下行。 此外、在调试配置属性中验证未选中“Reset the target on a connect“。 这将防止 JTAG 调试器在连接时复位器件、并且您可以看到器件的执行位置(CAN 引导加载程序位于 ROM 中或闪存中)。
      1.  
      2. OnTargetConnect()
        {
        
            // *(int *)0x5F412 =0x0003;      /* RAM INIT FOR M0/M1 Memory        */
            // *(int *)0x5F432 =0x00FF;      /* RAM INIT FOR LS0..LS7  Memory    */
            // *(int *)0x5F452 =0x000F;      /* RAM INIT FOR GS0..GS3 Memory     */
        
            if (GEL_IsInRealtimeMode())     /* If in real-time-mode */
            {
            }
            else                            /* Put device into C28x Mode */
            {
                C28x_Mode();   
            }
        
            F280049_Memory_Map();        /* Initialize the CCS memory map */
        
        /* Check to see if CCS has been started-up with the DSP already */
        /* running in real-time mode.  The user can add whatever        */
        /* custom initialization stuff they want to each case.          */
        
            if (GEL_IsInRealtimeMode())     /* Do real-time mode target initialization */
            {
        
            }
            else                            /* Do stop-mode target initialization */
            {
                // GEL_Reset();                /* Reset DSP */
            }
        }
         

    此致、

    马特