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.

controlSUITE中HVPM_Sensorless_2833x 烧写FLASH问题

Other Parts Discussed in Thread: CONTROLSUITE

这里例程,自己提供了两个烧写方式,分别为写入2803x_RAM和2833x_RAM,我想写入28335的FLASH中,应该如何配置

  • Peng,

            右键分别点击这两个文件,选择resource configuration>exclude from build,使这两个CMD不参与编译,然后右键工程,选择add file,找到controlSUITE中的device support文件夹,再找到f2833x文件夹>Vxx(版本号)>DSP2833x_common>cmd>F28335.cmd, 把这个flash cmd文件添加到工程,rebuild all。

            如果你没有安装controlSUITE,上官网下载。

    Eric

  • Eric

        按照这么修改,是可以编译的,不过还有个问题,就是主程序HVPM_Sensorless.c里面

    #ifdef FLASH
    #pragma CODE_SECTION(MainISR,"ramfuncs");
    #pragma CODE_SECTION(OffsetISR,"ramfuncs");
    #endif

    #ifdef FLASH
    // Copy time critical code and Flash setup code to RAM
    // The  RamfuncsLoadStart, RamfuncsLoadEnd, and RamfuncsRunStart
    // symbols are created by the linker. Refer to the linker files.
        MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart);

    // Call Flash Initialization to setup flash waitstates
    // This function must reside in RAM
        InitFlash();    // Call the flash wrapper init function
    #endif //(FLASH)

    这两段话是不是也需要做相应的修改?

    peng

  • Peng,

           需要修改,这里是把一些flash中的函数复制到RAM中运行。把这里的ifdef和endif都删掉,让它们参与编译。

    Eric

  • 好的谢谢了

  • 受教了

  • peng:

               你好,请问你是买TI的套件吗?我们这边也在搞这个,可以交流下啊....QQ:895498069

  • 没有,我没有买套件,我就是自己做了个东西

  • 那能不能加一下交流一下呢??

  • 抱歉,我不怎么上qq的,有问题发我邮箱吧,cacazhe@gmail.com

  • 按照以上改了 在flash中运行输出pwm不正确