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.

C2Prog's issue + fixing address of variable + memory error

Other Parts Discussed in Thread: TMS320F280200

Hello, I am using TMS320F280200 Mcu and we are on the final stage to complete the project.

When i programmed mcu by using hex file through C2Prog then result is :
Loading kernel... OK
Starting kernel... OK
Please wait...
Connecting with target...
-Chip ID: 0xC7
-Chip Rev: 0x01
 OK.
Unlocking target...  OK.
Loading...  OK.
Connecting with target...
-Flash API version: 200
 OK.
Erasing flash... [A] OK.
Programming...  OK.
Resetting target...  OK.

You may now close this window.

 

=> After that when i add more code to software then i face  memory error i.e.,  "Program will not fit to available memory". After clicking on that error it took me to a line of  F280200.cmd i.e., .econst             : > FLASHA      PAGE = 0
And this error gone by make a change to this line of F280200.cmd

.econst             : > FLASHA      PAGE = 0
  to
.econst             : > FLASHB      PAGE = 0


=> After that memory error gone but some variables/flags misbehaves after that. Then i found that my source code running in RAM it should be run in flash. For that i comment the line of main source code to run it in flash
i.e.,
 // #pragma CODE_SECTION(ADC_ISR, "ramfuncs");
 // #pragma CODE_SECTION(SCI_ISR, "ramfuncs");

and after that  all issues solved.


=> But after that when i program via C2Prog then it happens which i mentioned below

 

Loading kernel... OK
Starting kernel... OK
Please wait...
Connecting with target...
-Chip ID: 0xC7
-Chip Rev: 0x01
 OK.
Unlocking target...  OK.
Loading...  OK.
Connecting with target...
-Flash API version: 200
 OK.
Erasing flash... [A] OK.
Programming...  failed (write error: 31 @ 3f6000)!

 


=> And now many logics added to program and the memory error again exist and after click on error it took me on the line of F280200.cmd i.e.,  
ramfuncs            : LOAD = FLASHA,

and i also change it by FLASHB .......... error gone..... but above C2prog error remains same

 

 

and my another ques is about how to fix the variable's address to a particular location.

We are in hurry to launch the product so please provide me the solution or source code regarding to these issues.

 

 

  • Hussain,

    Flash error: 31 is described below.

    In short, it means we can't program 1 because that location has already been programmed as zero. For example, if you program a location with 0x0001 and then try to program the same location with 0x0002 the function will return this failure.

    Regards,

    Manoj