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.
