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.

F28xx on chip flash programmer problem

Hi

I need an urgent support regarding the F28035 piccolo link file and load .out file.

I can not continue with the project because of this problem.

 I load the out file from the "F28xx on chip flash programmer" in the CC but the program is not running..

The program stuck on an outside memory area or on "_DSP28x_usDelay" function  - without running!

 I use the "F28035_CLA_lnk.cmd" link file because Im using the CLA + CPU  memory.

 Please advice what to do,

  • Hi,

    I think you should be a bit more precise what you would like to do, and what the problem is... It is very difficult to guess from your description.

    Best regards

    Andreas

  • Hi Andreas

    Sorry for the bad description.

    1) I had a project that works fine with the "F28035_RAM_lnk.cmd" link file

    2) I added another module and variables which take a lot of RAM space, therefore the prject did not link

    3) In order to solve this problem i changed the link file to "F28034_CLA_lnk.cmd"  - now the program links but i can not burn it in the usual way (file > load program) 

    4) In order to load the program i actives the option "Tools > F28xx on chip programmer" - the program load without an error

    5) However the program does not seem to run OK - when i halt the program it stops in various places e.g "ILLEGAL_ISR",  "_DSP28x_usDelay"

    6) The program never gets to the main function (it does not stop in breakpoint in the first line of main)

    Thanks for your kind help,

    Eyal Ben Artsi

     

     

  • OK this make things more clear...

    Did you change the linker command file, such that you mapped all your code/data into flash sections, or is probably still a part residing in RAM?? You can check this by inspecting the map file that is generated by the linker.


    There is a very good FAQ and Application notes available under http://processors.wiki.ti.com/index.php/Category:Flash_for_C2000 

    Best regards

    Andreas

  • Andreas Hi

    Our project use the CLA and the CPU memory, thus i use the "F28035_CLA_lnk.cmd" link file that define the correct memory sections.

    All the code/data are mapped well in this file and there is no conflict in the map file, but still the program does not get to the main function!

    Best Regards

    Eyal

     

  • The code for the "_DSP28x_usDelay" function is default executed from RAM and called from DeviceInit(), BEFOR MemCopy().

    Leave the Delay function in Flash or execute MemCopy() first.

     

    Best regards, Leo Bosch

  • Hi

    Execute the memcopy() first or leave the delay in flash does not solve the problem.

    The main issue is when i load the program from the "F28xx on chip programmer" (the compile and  link are OK) - the program load without an error!

    However  the program does not seem to run OK - when i halt the program it stops in various places e.g "ILLEGAL_ISR",  "_DSP28x_usDelay" 

    The program never gets to the main function! (it does not stop in breakpoint in the first line of main)

    When i check the map file it seem that everything is OK and there is no conflicts

    What is the problem?

    Thanks,

    Eyal Ben Artsi
     
     

  • Hi,

    Did you configure the boot selection Pins to boot from FLASH? Does your hardware boot from flash when you download one of the TI example projects?

    Best regards

    Andreas

  • Hi

    Yes i did

    I set SW2 to ON ON position - in order to boot from flash

    Now things work OK - Mr Leo Bosch was right !

    The memcopy() and memset() shuold be execute before DSP28x_usDelay, which is located in RAM.

    I did not notice that i had another calling of InitADC (which include the DSP28x_usDelay)  after memcopy() and memset() 

    I thank you and  Mr Leo Bosch 

    Best Regards,

    Eyal

     

  • Hi Leo

    You right!

    Thanks and Best Regards

    Eyal