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.

TMS320F280049C: 280049在CLA中调用CLAsin,接上仿真器跑时正常,不接仿真器运行时CLAsin结果一直为0.

Part Number: TMS320F280049C

280049在CLA中调用CLAsin,接上仿真器跑时正常,不接仿真器运行时CLAsin结果一直为0.

  • 已解决,将CLA1mathTables : > RAMLS1, PAGE = 1注释,

    保留CLA1mathTables : LOAD = FLASH_BANK1_SEC15,
    RUN = RAMLS1,
    LOAD_START(CLA1mathTablesLoadStart),
    RUN_START(CLA1mathTablesRunStart),
    LOAD_SIZE(CLA1mathTablesLoadSize),
    PAGE = 1, ALIGN(4)

    并且在main.c加上memcpy((uint32_t *)&CLA1mathTablesRunStart, (uint32_t *)&CLA1mathTablesLoadStart,
    (uint32_t)&CLA1mathTablesLoadSize);

  • 感谢分享~

    一般来说,仿真器连接时工作正常、而不连仿真器运行在FLASH时异常,大概率与函数或者代码的搬运有关。