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.
Hi,
I am using a customized board of TI DSC F28335 running at 24.576 MHz. I am able to execute my program successfully from RAM but it gives issues when running from internal Flash. Simple programs works fine from Flash. And when i wrote whole code, compiler or linker does nt give any warning related to memory. So i assume my .cmd file is correct. starting portion of the code works properly but in the major part where the board takes the data from sensors and pass it on serial port does not work. while the same code is working properly from RAM.
Any help will be highly appreciated because my deadline for the project is coming. And i am struck with the same problem for more than week. according to my understanding .cmd file is write, there is no memory issue and the program is correct as well but it just does not work from flash.
Thanks in anticipation.
Adnan,
Make sure you are using the correct .cmd file. And also check if you have a section of a code that copies program or data from flash to RAM. and make sure you call the appropriate function to copy from flash to RAM.
Thanks
Noah
Thanks Noah for your suggestions. I checked the .map file and that portion of code is being copy from flash to ram according to map file. And other programs are working correctly from flash so I suppose .cmd file is right. I followed sprs958 for writing .cmd file. I used polling based algorithm but now I am trying to check it on Interrupt driven program. Is it possible that there is some initializations issues when running from flash while when running from RAM, CCS takes care of it ?
Hi,
I am using code composer studi v 3.3 built in feature to burn on Flash. Project settings are following.
Flash Random Wait State = 1
Page Wait State = 1
OTP Wait state = 2 (It gives error while verification code if i select "1")
OSCCLK = 24.576 MHz
DIVSEL = /1
PLLCR Value = 0
SYSCLKOUT = 24.576 MHz
I am using a customized board which has 24.576 MHz crystal and same system frequency. Do wait state settings looks fine with respect to OSCCLK AND SYSCLK or i am making some error in it which results in the wrong execution of code from FLASH ? i have tested all other possibilities. cmd file is correct and the program in which it does not take real time data from serial works fine from flash so I assume it can be some issue related to wait states.
Kind regards,