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.

请教:28335程序比较大超过内部sram的大小34K字,所以外扩了sram,请问程序如何固化在flash中,然后代码全部运行在外部sram?

Other Parts Discussed in Thread: CONTROLSUITE

请教大家一个问题:

我使用的是28335芯片 ,由于程序比较大超过了内部sram的大小,为了使全部程序运行在sram中,提高运行速度,所以我扩展了外部sram,现在我需要实现的功能为:程序固化在内部的flash,然后全部运行在外部的sram中,该如何进行处理呢?

我的现在的想法是:设置启动方式为Jump to flash,首先程序在flash中运行初始化xintf总线,然后再复制flash代码到外部sram中,然后再从sram中运行。

我现在的问题是如何在复制代码到sram之前,初始化相关的xintf寄存器?必须使用汇编语言不?以及相关的设置?谢谢!

  • 你好。

    Flash拷贝程序到SRAM中运行,请参考Controlsuit里面的例程:C:\ti\controlSUITE\device_support\f2833x\v133\DSP2833x_examples_ccsv4\flash_f28335

    XINTF初始化请参考Controlsuit里面的例程:C:\ti\controlSUITE\device_support\f2833x\v133\DSP2833x_examples_ccsv4\xintf_run_from