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.

TMS320F28P650SK: TMS320F28P650SK copy all code from flash to ram,and run in ram.

Part Number: TMS320F28P650SK
Other Parts Discussed in Thread: C2000WARE

Tool/software:

I have very little code, and I want the program stored in Flash and re-run with power off to have exactly the same performance as it does in RAM emulation mode.

TMS320F28P650SK I used the same method as 28335, DSP2833x_CodeStartBranch_Flash.asm and DSP28xxx_SectionCopy_nonBIOS.asm move all code and variables from Flash to RAM before c_c_int00, which works on 28335 without any problems. But on the 28p65, this method fails, which seems to be related to the 28p65's use of eabi. Or is it something else? How do I achieve this?

  • Hello,

    Each of the examples in the C2000Ware SDK for F28P65x should have different build configurations including Flash.

    For example in the bitfield type of examples:

    C:\ti\c2000\C2000Ware_5_04_00_00\device_support\f28p65x\examples\cpu1

    If the Build Configuration is set to 'CPU1_FLASH', the Flash cmd file is used in the project and within the InitSysCtrl function you will see the memcpy function and InitFlash()

    Can you please try this method and let me know if you run into any issues. 

    Best Regards,

    Marlyn

  • Thank you, my original intention was to run all programs in RAM without emulator. Now my problem has been solved, it seems that there is a BUG in the chip itself. Just reduce the operating frequency of the chip by 10M, from 200M to 190M.
    Same question as my post. e2e.ti.com/.../tm s320f28p650sk-epwm-clk-can-not-work-at-200m

  • Hello,

    Let's continue the discussion on the other thread to avoid duplicate conversations. The EPWM should be able to operate at 200MHz so it could be a different issue that you are facing which is not enabling you to run your EPWM clock at 200MHz.

    Best Regards,
    Marlyn