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.

CCS/TMS320F28027F: Trying to run a application in standalone mode but getting some error as 'No source available for "0x3ff754" '

Part Number: TMS320F28027F
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: Code Composer Studio

Hello,

Taking a reference to given example in controlsuite to run a program from flash I builded my own project and tried to simple led blinking code.

The code is being successfully loaded in launchpad but when I start running it gives some error about resource allocation.

I have provided the image to be more clear.

The code is simple of just using GPIO pins which already connected to led pins on board and I have taken care of linking both .cmd files i.e. 'F2802x_Headers_nonBIOS.cmd' and 'C:\ti\controlSUITE\development_kits\C2000_LaunchPad\f2802x_common\cmd\F2802x_generic_flash.cmd'.

#ifdef _FLASH
    // Copy time critical code and Flash setup code to RAM
    // This includes the following ISR functions: EPwm1_timer_isr(), EPwm2_timer_isr()
    // and FLASH_setup();
    // The  RamfuncsLoadStart, RamfuncsLoadSize, and RamfuncsRunStart
    // symbols are created by the linker. Refer to the F2280270.cmd file.
    memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);

    // Call Flash Initialization to setup flash waitstates
    // This function must reside in RAM
    FLASH_setup(myFlash);
#endif // end #ifdef _FLASH

The above code snippet shows the flash setting.

Please make me understand whats happening over their as I am not getting it run successfully.

Thaks. 

Kiran.

  • Hi, Kiran

    Actually this is not an error. This just means, that you have no source code (*.c or *.asm files) that represents the part of program, which is executed at the moment. For example, if you press "Pause" when "memcpy" is executed, you will get this message, because "memcpy" is a part of the pre-compiled "rts2800.lib". You can search for the source code of that lib and add source files into your project. In this case, the IDE knows, that source code is in your project and it will show it to you. The same thing is with Boot-Up sequence code. If you reset the MCU you will get message "No source available". But again, you can find the source code files and add them into your project.

    So the message is ok. And what about the led? Does it blink, when you run the program? Does the program stop with no reason, or it stops when you click "Pause"?

  • Thanks for your reply.
    The blinking of LED stops with no reason and when I pause or terminate the execution the above error comes with 'source not found' warning as shown in image with a question.
    Can you clarify how should I clear the above-mentioned error?
    Thanks.
    Kiran

  • Hm. So does the led actually blink for some time and then suddenly stops? Or does just turns on and the the program stops? Do you have ISRs in your program? What are the errors in "Problrms" window at your screenshot?
  • Thanks for quick reply.
    No, I haven't used in ISR but I am planning to use some in my next code.
    Here is the link which I found useful and that resolve my issue for blinking led at least.
    e2e.ti.com/.../1269440

    It seems I have to define some symbol and tell the compiler where to start. Still, I am unclear about what does actually happen over there but it solved the issue for now.

    Thanks.

    Kiran