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.

[参考译文] LAUNCHXL-F280049C:对 ITRAP 处理程序的原因进行故障排除 (loopInterrupt_illegalOperationHandler)

Guru**** 2853310 points

Other Parts Discussed in Thread: SFRA

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1586354/launchxl-f280049c-troubleshooting-the-cause-of-itrap-handler-loopinterrupt_illegaloperationhandler

器件型号: LAUNCHXL-F280049C
主题: SFRA 中讨论的其他器件

尊敬的 TI 团队:

我正在从事一个与数字降压/升压转换器相关的项目。 我认为我正确配置了 CMD 文件、因为我可以通过组合闪存存储体 8 9 10 11 (FLASH_BANK0_SEC8_9_10_11) 来生成代码。 在将它们组合到一个源之前、我接收到链接器错误、因为没有空间容纳在代码中。

现在问题是在进入 DCL_setup() 时在主块内初始化期间以及在尝试执行 buck_ DCL_update (&buck_ctrl) 时; 我正在循环执行 ITRAP 处理程序。
 
您能帮我找到导致此问题的原因吗? 我的 flash.cmd 文件如下。 我使用的是 Lauchpad_f280049C
 
很重要
  codestart    :> begin, align(8)
  .text       :>> FLASH_BANK0_SEC8_9_10_11、 ALIGN (8)
  .cinit      :> FLASH_BANK0_SEC1、 ALIGN (8)
  .switch      :> FLASH_BANK0_SEC1、 ALIGN (8)
  .reset      :>重置、          TYPE = DSECT /*未使用、*/

  .stack      :> RAMM1

#if defined (__TI_EABI__)
  .init_array   :> FLASH_BANK0_SEC1、 ALIGN(8)
  .bss       :> RAMLS0LS1
  .bss:output   :> RAMLS0LS1
  .bss:CIO     :> RAMLS0LS1
  .data       :> RAMLS0LS1
  .sysmem      :> RAMGS2
  .const      :> FLASH_BANK0_SEC4、 ALIGN (8)
#else
  .pinit      :> FLASH_BANK0_SEC1、 ALIGN (8)
  .ebss       :> RAMLS5
  .esysmem     :> RAMLS5
  .cio       :> RAMLS0
  .econst      :> FLASH_BANK0_SEC4、 ALIGN (8)
#endif

  ramgs0 :> RAMGS0GS1.
  ramgs1 :> RAMGS0GS1.

  /* 分配 IQ 数学区域:*/
  IQmath      :> FLASH_BANK0_SEC1、ALIGN (8)
  IQmathTables  :> FLASH_BANK0_sec2, align(8)

  业务线经理
  {
    .TI.ramfunc
    {
      l sfra_F32_tmu_eabi.lib
    }
    ramfuncs

  } LOAD = FLASH_BANK0_SEC1、
    RUN = RAMGS0GS1、
    LOAD_START (RamfuncsLoadStart)、
    load_size (RamfuncsLoadSize)、
    LOAD_END (RamfuncsLoadEnd)、
    RUN_START (RamfuncsRunStart)、
    RUN_SIZE (RamfuncsRunSize)、
    RUN_END (RamfuncsRunEnd)、
      对齐 (4)

  SFRA_F32_Data :> RAMLS0LS1、align = 64

  FPUmathTables :> FLASH_BANK0_SEC12

  .scratchpad  :> RAMLS0LS1
  .bss_cla    :> RAMLS0LS1
  controlVariables  :> RAMLS0LS1

  .const_cla   : load = FLASH_BANK1_SEC8_9_10、
            RUN = RAMLS2LS3LS4LS5、
            RUN_START (Cla1ConstRunStart)、
            LOAD_START (Cla1ConstLoadStart)、
            load_size (Cla1ConstLoadSize)

  业务线经理
  {
     isrcodefuncs
    dclfuncs
  } LOAD = FLASH_BANK1_SEC8_9_10、
    RUN = RAMLS2LS3LS4LS5、
    LOAD_START (isrcodefuncsLoadStart)、
    load_size (isrcodefuncsLoadSize)、
    LOAD_END (isrcodefuncsLoadEnd)、
    RUN_START (isrcodefuncsRunStart)、
    run_size (isrcodefuncsRunSize)、
    RUN_END (isrcodefuncsRunEnd)、
      对齐 (4)

  /* CLA 特定段*/
  Cla1Prog: load = FLASH_BANK1_SEC8_9_10、
        RUN = RAMLS2LS3LS4LS5、
        LOAD_START (Cla1ProgLoadStart)、
        RUN_START (Cla1ProgRunStart)、
        load_size (Cla1ProgLoadSize)、
          对齐 (4)

}

 

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

    因为我错误加载 DCL 函数而找到了分辨率