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.

Program running from Flash not working when taking data from Serial

Other Parts Discussed in Thread: CONTROLSUITE

hey

I am using customized board of F28335 running at 24.576 MHz. The program takes the data from serial port at 9600kbps from the sensors. Same program is running fine from Ram but it doe not work from flash. If I omit the line in which program takes the data from serial port and give constant values, the program works fine. Any help is highly appreciated.

Kind Regards,

  • Not working means what? Is the program polling for character forever and stop doing other tasks? 

    What about ISR functions, working? If it works from RAM, setup seems fine, baud etc.

    Use interrupt based, sample available here. C:\ti\controlSUITE\device_support\f2833x\v133\DSP2833x_examples_ccsv4\scia_loopback_interrupts

    The serial functions can be moved to RAM, normal practice for ISR functions. Load in flash & run from RAM.

    Cheers

    Joy

  • yes, the program waits forever on polling while running from flash whereas while running from RAM, the same program receives the data correctly.

    I am going to try Interrupt based communication as you suggested and will get back to you soon.

    thanks

    Adnan

  • 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,