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.

f2812 flash problem



   hello

   I use the on-chip flash programmer to program the f2812 but failed.

   I have a project ,it work successed using ccs2.2.18.

   Only update  the projrct don't compile using ccs4.1, then use the on-chip flash programmer.The project work successed re-power..

   But  update and  compile the project using ccs4.1,then use the on-chip flash programmer  . The project cann't work re-power.

   The build options is    --silicon_version=28 -g --define="_DEBUG" --define="LARGE_MODEL"  --quiet --diag_warning=225 --obj_directory="./obj"  .

   How to solve the problem,thanks a lot.

  • Hello,

    seed.zhao said:

       Only update  the projrct don't compile using ccs4.1, then use the on-chip flash programmer.The project work successed re-power..

       But  update and  compile the project using ccs4.1,then use the on-chip flash programmer  . The project cann't work re-power.

    So if I understand correctly:

    Taking the out file you built from CCS 2.2.18 and loading it using CCSv4.1, it successfully flashes

    If you rebuild your project using CCSv4.1 and then try to load it using CCSv4.1, it fails.

    Is this correct? If so, could you check which version of the CGT you are using in 2.2.18 and what full version of CCSv4.1 you are using (4.1.2? 4.1.3)?

    Thanks

    ki

  • Hello,  Ki-Soo Lee

           you are correctly.

           The full version of ccs4.1 is 4.1.2.00027 and the version  of CGT  is 5.2.3 . The version  of CGT  is 3.09 in  2.2.18

          By the way , rebuid the project load it using ccs4.1. The project run correctly,but it can'nt work rre-power.

  • seed.zhao said:
    By the way , rebuid the project load it using ccs4.1. The project run correctly,but it can'nt work rre-power

    Does the flashing of the program succeed and it it fails when you try to run your program from flash?

  • hello,ki-soo Lee

    yes, the process of  flashing  using ccs4.1 is right,but the program cann't run from flash.When i using ccs2.2.18 flahing the .out file which rebuied by ccs4.1 ,the program cann't run from flash too.

    i think the .out file is wrong, but i don't know why.

    I only chang the .lib file  from  rts2800 to rts2800_ml when rebuit the program using ccs4.1 .

    I also use  rts2800.lib  file and cancel the option of "the large memory model " from the "runtime model options" ,then rebuit the program using ccs4.1.But it is failed too.

    So how can i do?

    Thanks a lot.

  • Ok, thanks for clearing that up. The 3.0.9->5.2.3 jump in CGT version is quite a big one so some changes could have impacted your executable. Can you try some debugging of the program and see where in the program the failure is occurring? You can also get more information on the two out files by running ofd2000.exe on them and study the differences. ofd2000.exe is in <INSTALL DIR>\ccsv4\tools\compiler\c2000\bin

    ki