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.

[参考译文] TMDSCNCD280049C:闪存不适用

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1165274/tmdscncd280049c-flash-not-fit

器件型号:TMDSCNCD280049C

您好!

我们正在 CPU1_Flash 中运行我们的程序。  我们发现问题如下所示。  

说明资源路径位置类型
#10099-D 程序不能放入可用存储器中、或者该段包含需要无法为此段生成的 trampoline 的调用站点。 对齐/分块方式放置在".text"大小为0x351f PAGE 0中失败。 可用存储器范围:28003x_general_flash_lnk.cmd /wolfspeed_modeled_platform_evaluation _FW 93 C/C++ problem

您能否提供、我们需要哪些更改?

此致-

Sudip  

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

    您好、Sudip、

    如果您使用的是 TMDSCNCD280049C、则应使用 28004x_generic_flash_lnk.cmd

    为.text 段添加一个闪存扇区。

    .text:>> flash_BANK0_sec2 | flash_BANK0_SEC3 | flash_BANK0_SEC5 | flash_BANK0_SEC6,page = 0,align (4)
    谢谢、此致、
    桑托什
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Santosh、

    感谢您的回复。 添加另一个部分并不能解决我们的问题。 我们尝试了几次排列、如下所示。

    错误似乎是在我执行一些浮点数学运算时出现的。 请检查以下步骤和结果、并推荐可执行的操作。

    void funct_1(float var1, float var2);
    // this function takes float input, does some calculations and writes those in EPWM register
    
    uint16_t new_var = 100;
    
    funct_1(100, 100);
    // works fine
    
    funct_1(100, 100*100);
    // works fine
    
    funct_1(100, 100*0.01);
    // works fine
    
    funct_1(100, new_var * 100);
    // works fine
    
    funct_1(100, new_var * 0.01);
    // throws the snapshoted error

    请检查并回复。 正在等待您的回答。

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

    Sudip、

    [引用 userid="35062" URL"~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1165274/tmdscncd280049c-flash-not-fit/4382571 #4382571"] TMDSCNCD280049C、则应使用 28004x_general_flash_lnk.cmd[/quot]

    您能否确认您是否为器件使用了正确的链接器命令文件?

    此外、当您添加新分区时、它是否更改了所需的大小? 请 检查控制台日志。  

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

    您好、Santosh、

    我们使用的是"28003x_general_flash_lnk.cmd"文件。

    请参阅以下控制台、了解如何使用两个附加部分生成

    原始

    添加两个部分

    请给出建议。

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

    您好、Sudhip、

    [引用 userid="452796" URL"~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1165274/tmdscncd280049c-flash-not-fit/4382662 #4382662"]我们使用的是"28003x_general_flash_lnk.cmd"文件。

    您的器件是  TMDSCNCD280049C ???

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

    你好、santosh、

    很抱歉、错误输入了处理器编号。   

    它是  TMDSCNCD280039CSPZ。

    此致-

    Sudip

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

    您好、Sudip、

    [引用 userid="452796" URL"~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1165274/tmdscncd280049c-flash-not-fit/4382699 #4382699"]它是  TMDSCNCD280039CSPZ.

    好的。 好极了。

    您能否按如下方式组合闪存存储器部分:

    FLASH_BANK0_SEC12_14:origin = 0x08C000、length = 0x004000
    然后修改文本部分:
    .text:>> flash_BANK0_SEC12_14,align (8)
    请告诉我它是否可以解决问题?
    谢谢、此致、
    桑托什
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Santosh、

    我们的问题已经解决。

    非常感谢您的快速响应。

    此致-

    Sudip