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.
