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.

[参考译文] TMS320F28379D:DSS 允许2.OUT'驻留在闪存中

Guru**** 2524550 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1353946/tms320f28379d-dss-allow-2-out-s-to-reside-in-flash

器件型号:TMS320F28379D

我有一个引导加载程序、它位于闪存扇区 A、B 中。

我的应用程序位于闪存扇区 C-N 中。

当我使用 DSS 的 com.ti.debug.engine.scripting.Memory.loadProgram ()加载应用程序.out 时,它会擦除引导加载程序扇区 A 和 B。

如何在 DSS 会话中将两个.out 保留在闪存中?  loadProgram()有没有其它方法不会擦除所有闪存扇区?

谢谢!

Diane

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

    您好!

    [quote userid="586168" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1353946/tms320f28379d-dss-allow-2-out-s-to-reside-in-flash 如何在 DSS 会话中将两个.out 同时保存在闪存中?  loadProgram()的另一个选项不会擦除所有闪存扇区吗?

    您可以通过使用 DSS 闪存 API 来配置闪存选项、从而对此进行控制:

    /ccs/ccs_base/scripting/docs/DS_API/com/ti/debug/engine/scripting/Flash.html

    设置这些选项的工作方式与设置调试器选项类似:

    https://software-dl.ti.com/ccs/esd/documents/users_guide/sdto_dss_handbook.html#debugger-properties

    不同之处在于您可以改用闪存 API。

    谢谢

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

    谢谢 Ki。

    修复后:

            self.debug_session.flash.options.setString("FlashEraseSelection", "Selected Sectors Only")
            
            # Don't erase the sectors where the bootloader resides
            self.debug_session.flash.options.setBoolean("FlashC28Bank0Sector0", False)
            self.debug_session.flash.options.setBoolean("FlashC28Bank0Sector1", False)

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

    太棒了! 感谢您分享您的解决方案、让他人受益!