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,
IDE : CCS v4.0 (32K MCU Core) Target : TMS320F2812 Emulator : SD SPI 515 Parallel Port JTAG Emulator
I have migrated CCS v3.3 project to CCS v4.0 and build the target successfully with the guidelines from ti web. Now I want to Debug the target. I'm using SD SPI 515 Parallel Port Emulator. I have some problems
1. While creating Target Configuration there's no a Spectrum Digital SPI Parallel Port Emulator listed in the pull down menu. I got a reply from Spectrum Digital Support Team to select XDS 510 PP - PCI Parallel Port Emulator while configuring the target and I followed it.
2. When I tried to start a Debug Session for above Target Configuration I received the following message window indicating You are not licensed to use the currently cofigured target as below
3. Also I notice Unlicensed at the top of the window header
Why it says unlicensed even it is 32K license free? Does it mean Debugging need license?
I found a similar screen shot to activate a free license for XDS100 USB at
http://wiki.davincidsp.com/index.php/XDS100#Q:_Can_I_use_Code_Composer_Studio_v4_with_XDS100.3F
I could successfully Test and Reset the Emulator through SDConfigEx that comes along with CCS v4.0 installation.
Please help to solve the Emulator License Problem. Any web link specifying this?
Thanks in advance
-SBS
Sinoj,
Are you using the "free limited license" if so that won't work with the SPI515 emulator. If you downloaded the MCU Core image for CCS it should have automatically setup the code size limited license. If you download the Platinum/Microcontroller (DVD) image it does not have the option for the code size limited license. That free limited license listed in that dialog is for working with XDS100 class emulators, simulators or a number of development cards that have emulators built onto them.
Regards,
John
Hi,
Thanks John.
I took Step2 to specify a license file and browsed to the Install Directory/DebugServer/license.lic. Then the following Error Message appeared.
I think it is a problem with FLEXnet License Management Tool, a conflict with other license files that also use FLEXnet. In the same Desktop there were some earlier installed ModelSim Development Tools.
The problem got solved temporarily by creating a User Variable in Environment Variables with Value as the location of the CCSv4.0 license.lic file. Now the above message no longer comes.
Any idea about the root cause?
Regards,
John,
It is "Licensed" in normal setup and it turns to "Unlicensed" when I start a Debug Session. But I can successfully debug the Target. But some problem is still there: sometimes CCS itself gets closed while debugging and I had to manually restart CCS, also the PC got restarted once when Debug Session was in progress.
The other problems facing now are:
1. I can't see the values of some Local Variables in "Locals" window. I don't use CSM password and also tried Unlock_CSM from GEL>Script. No change.
2. How to view all the Peripheral Registers (GPIO, ADC etc.,) in CCSv4.0? In CCSv3.3 I was using GEL_WatchAdd() which is no longer supported in CCSv4.0. Adding each peripheral's sturcture from header file to Watch Window, each time, feels awesome.
Thanks
-SBS
Sinoj,
Could the locals be getting optimized out?
For the peripheral registers take a look in the register view. In 3.3 we used GEL to display them in the watch window but in v4 they are in the register view. For F2812 these should be visible in CCSv4.0.2 and later. If they are not showing up try changing your target configuration to directly use the device file. i.e. when you select your emulator for the connection then type 2812 in the filter box and it will show you all the matches. There is likely one for an eZdsp kit and there will be one for the F2812 device it self. If you are not seeing the peripheral registers it could be that the item you have selected there is not specifying the registers.
Regards,
John
John,
1. Yes it seems like Build-Time-Optimization is causing the problem. But in Build-Options/Settings optimization is NULL. Actually this is a v3.3 migrated project in which the optimization was NULL. I see some more check boxes in v4.0 Build/Link-Settings. I was keeping the Build and Linker Settings as such as the migration resulted execpt for the modifications suggested in 'Known Issues' with migration in wiki. Can anyone explain specifically the different levels of optimizations in v4.0 and where are they configured?
A snippet of my problem is:
void LocalFun(void)
{
Uint16 t1, t2, t3;
- - -
for (t1 = 0; t1 < 256; t1++)
{
do some calc with t2;
do some calc with t3;
}
}
In the above piece of code, in most cases, t2 and t3 could be viewed in the 'Local Watch' window. But not t1, for which its showing 'identifier not found' in value column. t1 is only used for loop-indexing. Seems like t1 got optimized out.
Which specific optimization might be causing this? How this type of optimization could be disabled?
2. I updated to v4.0.2.010003. Now it appears to be 'Licensed' in both Normal-Session and Debug-Session. Now I'm happy with the 'Registers View'. I can see all the Peripheral Regiters.
-Thanks
-Sinoj
John,
I have posted the problem in a new thread titled "CCSv4.0.2.01003 + F2812 + Can't see all local variables values in 'Local' watch windo"'
-Thanks
-Sinoj