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.

TMS320F28069: Booting from flash?

Part Number: TMS320F28069
Other Parts Discussed in Thread: CONTROLSUITE

Hello,

I inherited a code project from a previous team member and ,since I don't have much experience with microcontrollers, I am having trouble with a few things. We have a TMS320C2000 Experimenter Kit using a F28069 control card that we are using for PWM. I have CCS 6.2.

How do I get the control card to run its code without being plugged into my computer? Does it have something to do with the boot jumpers?


Thanks.

  • Hi,

    There are two main aspect -

    1) Code should placed in Flash so make sure proper linker cmd file (flash configuration) is used.

    2) BOOT mode pins (boot jumpers) should be set to BOOT to flash mode.

    Regards,

    Vivek Singh  

  • Thanks Vivek,


    When I set the active build configuration from active debug to active release and rebuild I still see a 28069_RAM_lnk.cmd file in the project tree. Should it be flash instead of RAM? In build settings I don't see a 28069_FLASH_lnk.cmd, just the RAM.

    Also, I was unable to find the correct position the boot jumpers in any documentation. Can you describe how they should be?


    Thanks again.

  • Yes, it should be FLASH instead on RAM for linker cmd file.

    On jumper setting, I'll have someone else look into this.

    Regards,
    Vivek Singh
  • So in my project properties - general - main, where it lists the linker command file, there is no FLASH_lnk.cmd associated with the 28069. There is only 28069_RAM_lnk.cmd


    Where/how do I find the FLASH linker cmd file?

  • Hi,

    For the boot mode concern, make sure that SW1's two switches are in the ON (closed) position.  This will ensure that the device boots up in Get Mode (defaults to boot-from-FLASH mode) after reset.  For more, the schematics can be found at the following:
    \controlSUITE\development_kits\~controlCARDs\CC2806xHWdevPkg\R1_1\

    ===

    For help changing a software project that is running from RAM into one that utilizes the on-chip flash, I might recommend looking at the following.  You'd then look at the "Executing the Examples from Flash" section:
    \controlSUITE\device_support\f2806x\v151\doc\f2806x-FRM-EX-UG.pdf

    [before trying to port your project from using RAM to using FLASH, I might recommend importing and running the flash_f28069 project from within controlSUITE.  This would be an intermediate step and allow you trust your hardware as you continue on]


    Thank you,
    Brett

  • Thanks Brett,

    I located the the correct linker cmd file and now it will go to flash. However, the code gets messed up and won't give the proper pwm waveforms like it does running from RAM.

    I have also included and linked both the IQMATH and and the FASTRTS(FPUfastRTS) as was done in the flash_f28069 example project and since this project was built using an example it looks like 3-4 of the "Executing the Examples from Flash" section are already there.

    In the description of the flash_f28069 it says "make sure any initialized sections are mapped to Flash. In SDFlash utility this can be checked by the View->Coff/Hex status utility. Any section marked as "load" should be allocated to Flash." I'm not seeing where to find this utility in CCSv6.2 Can you point me to where I can find that to check my initialized sections.

    Thanks.
  • Still having an issue.

    How can I determine with CCSv6.2 if my initialized sections are correctly linked to flash?

    Thanks!

  • .map file should have this information.
  • Thanks Manoj,

    Still haven't got it working correctly. Part of the problem is I can't easily tell from the .map file if everything is where it should be. The flash example mentioned using SDflash to see if functions were correctly put in flash. The SDFLASH281XALGOS that I found on TI's website has not been available for at least a few weeks now. Any ideas?
  • Got it working, Thanks all.