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.

Problem with downloading code to F28335 flash

Other Parts Discussed in Thread: CONTROLSUITE

Hi

I am trying to download my output file to flash using  f28xx on chip flash programmar from ccs 3.3 Tool menu with USB2000 Black hawk Jtag, Target is TMS 320 F28335. I get follwoing error

NO SECTORS WERE FOUND THAT MAP TO FLASH.  I have been running my code with Jtag sucessfully if i just Load my programm with JTAG from File menu in CCS.

Actually i want my code to go to Flash instead of RAM. At the moment its going into RAM as i can See the address of main() function being 0x00c000.

Detailed ouput message is as following

Please help me in this regards

Shakeel

**** Begin Set Password Operation. ***
Set Password Operation completed successfully. Password set.
**** End Set Password Operation. ***
**** Begin Erase/Program/Verify Operation. ***
Erase/Program/Verify Operation in progress...
Erase operation in progress...
Erase operation was successful.
Program operation in progress...
No sections were found that map to Flash.
Load RAM operation in progress...
Load RAM operation was successful.
Warning: This program contains initialized RAM data.
It may run successfully under Code Composer Studio
but not as a standalone system because of this. If
your Flash program requires initialized data in RAM,
you will need to write Flash code to initialize RAM memory.
Erase/Program/Verify Operation succeeded
**** End Erase/Program/Verify Operation. ***

  • It looks like you have not converted your command linker file to load code into FLASH sectors instead of RAM sectors.. 

    There are instructions on how to do this in the following application note:

    Running an Application from Internal Flash Memory on the TMS320F28xx DSP (http://www-s.ti.com/sc/techlit/spra958)

    Or you can look at the Header Files and Peripheral Examples Quickstart Readme in controlSUITE under device_support/f2833x/doc directory which also includes a chapter on converting examples from RAM to Flash.

  • Dear Chrissy Chang

    Thank you for the reply, I have explored the Spra 958 and quick example as you suggested. It seems they are not bios based. I learnt in Spra 958 that i have to configure bios so that i can run my code from flash. Can i get some exapmle  or help what specific section need to be linked to memory map of F28335 device using bios configuration from dialouge boxes to get my code running from flash. Please guide me about this, follwoing is the snapshot of my current confguration in ccs 3.3.

    Regargds                                                                                                                                                                                                                                                                                 Ahmed Shakeel

     

  • Ahmed Shakeel said:
    Thank you for the reply, I have explored the Spra 958 and quick example as you suggested. It seems they are not bios based. I learnt in Spra 958 that i have to configure bios so that i can run my code from flash. Can i get some exapmle  or help what specific section need to be linked to memory map of F28335 device using bios configuration from dialouge boxes to get my code running from flash. Please guide me about this, follwoing is the snapshot of my current confguration in ccs 3.3.

    Hi Ahmed,

    The app note that Chrissy mentioned does have BIOS information.  Please take a look at 3.2 DSP/BIOS Projects to see a listing of which sections should go into flash for a BIOS project.

    -Lori

  • Hi

    Thank you for the suggestion, I have configered bios as in spra 958i section 3.2 after that i have tried to  copy the .hwi_vec Section (DSP/BIOS projects only) as in section 4.2 but i get follwoing error when i compile my code , and add following code just after my main()

         asm(" EALLOW");                   /* Enable EALLOW protected register access */
         memcpy(&hwi_vec_runstart, &hwi_vec_loadstart, &hwi_vec_loadsize);
         asm(" EDIS");                     /* Disable EALLOW protected register access */

    also i have declared the variables as in seciton 4.2 spra 958i

    error: argument of type "unsigned int *" is incompatible with parameter of type "unsigned long"

    Please help me in this regards

    Ahmed shakeel